Pages

Monday, February 4, 2019

JAVA Restful Service ( JAX-RS API)


Jersey implementation



--------------------------------------------------------------------------------------------------------------------------

REST stands for representation state transfer.

Principles:

1)Addressable Resource
2)Uniform Constrained Interfaces

      • GET
      • PUT
      • POST
      • HEAD
      • DELETE
      • OPTIONS

3)Representation Oriented
4)Communicate Stateless
5)HATEOS
If the service is being built up on the above principles then it is called Restful resource.

How to user rest services in java?
Java has provided JAX-RS API to develop RESTFUL services.

BootStrapping in Restfull
1) API Specific boot strapping (jersey) a) glassfish packages b) classes
2) General Boot strapping extends Application
3) Bootstrapping with resource class with web.xml with application class packages

COURSE CONTENTS

              1.  Restful Principle 

           2.  Architecture of Restful Service

           3.  Http methods

           4.  Bootstrapping in Jersey

           5.  Bootstrapping in Rest easy

           6.  Interfaces and Abstract classes driven development

           7.  Path bindings

           8.  Injections and Scopes

           9.  Sub-resource locator

           10. Jax-rs injections
          ·       Path parameters

          ·       Query parameters

          ·       Matrix parameters

          ·       DefaultValue

          ·       FormParam

          ·       HeaderParam

          ·       CookieParam

          ·       BeanParam

          ·       @Context and UriInfo

          ·       PathSegment

          ·       MultiValueMap

          ·       Custom parameter converters

           11. Content handlers

           12. Custom content handlers

           13. Server Responses

           14. Exception Management in Rest

           15. Client API

           16. Asynchronous client and server

           17. Security

           18. Caching

           19. Spring with rest integration

           20. Curl commands

           21. Swagger