简体   繁体   中英

How to view all the published resources of my server RESTful web services

I've received a sample Java application, which contains some RESTFul web services . I've set it up in eclipse with Tomcat and it's in running state. Unfortunately I haven't received any information about the published Resources. So my question is: How can I find out all the published resources of my app? Are they printed in any server logs at the time of server startup?

I have come to know about WADL file which serves my purpose. This file is generated automatically by Jersey-2.22 when the application is up & running. It is accessible by hitting

http://localhost:8080/<path to application>/application.wadl and

http://localhost:8080/<path to application>/application.wadl?detail in detail.

I've taken localhost because the app is deployed on my local machine and 8080 because app is deployed on Tomcat7 on that port.

Reference: https://jersey.java.net/documentation/latest/wadl.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM