1 Replies - 278 Views - Last Post: 20 May 2017 - 02:22 AM

#1 wtp  Icon User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 319
  • Joined: 08-December 11

Java Tomcat Servelet REST API - Welcome Page

Posted 19 May 2017 - 03:56 PM

I wrote a Java servlet REST API. I want them to be able to hit a webpage at my webservice base context @WebServlet("/api")(myservice.com/api) that will explains the available functions. I've not done this before, so I'm not sure how to host a webpage on a servlet like this. I probably don't need a detailed explanation just something to point me in the right direction.
Is This A Good Question/Topic? 0
  • +

Replies To: Java Tomcat Servelet REST API - Welcome Page

#2 ndc85430  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 564
  • Posts: 2,316
  • Joined: 13-June 14

Re: Java Tomcat Servelet REST API - Welcome Page

Posted 20 May 2017 - 02:22 AM

So, basically you want a page that contains the documentation for your API? Look into Swagger.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1