Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 480 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 480 Bytes

RESTFull_API

REST APIs demo. REST API implementation using

0. Java

1. Jersey

2. Servlet Container: Tomcat 8.5

3. JSON: XMLRootElement

Rules regarding "return" returning Object from the REST API method().

    1. MediaType.TEXT_PLAIN,MediaType.TEXT_HTML MUST return String.
    1. MediaType.APPLICATION_XML, APPLICATION_JSON MUST return Object, with class annoted with XMLRootElement.
    1. MediaType.TEXT_XML can either return String or an Object.