RESTful Java web services design scalable and robust RESTful web services with JAX-RS and Jersey extension APIs
Design scalable and robust RESTful web services with JAX-RS and Jersey extension APIs About This Book Get to grips with the portable Java APIs used for JSON processing Design solutions to produce, consume, and visualize RESTful web services using WADL, RAML, and Swagger A step-by-step guide packed w...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing
2015.
|
Edición: | Second edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629813506719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introducing the REST Architectural Style; The REST architectural style; Introducing HTTP; HTTP versions; Understanding the HTTP request-response model; Uniform resource identifier; Understanding the HTTP request methods; Representing content types using HTTP header fields; HTTP status codes; The evolution of RESTful web services; The core architectural elements of a RESTful system; Resources; URI; The representation of resources
- Generic interaction semantics for REST resourcesThe HTTP GET method; The HTTP POST method; The HTTP PUT method; The HTTP DELETE method; Hypermedia as the engine of application state; Description and discovery of RESTful web services; Java tools and frameworks for building RESTful web services; Summary; Chapter 2: Java APIs for JSON Processing; A brief overview of JSON; Understanding the JSON data syntax; Basic data types available with JSON; A sample JSON file representing employee objects; Processing JSON data; Using JSR 353 - Java API for processing JSON
- Processing JSON with JSR 353 object model APIs Generating the object model from the JSON representation; Generating the JSON representation from the object model; Processing JSON with JSR 353 streaming APIs; Using streaming APIs to parse JSON data; Using streaming APIs to generate JSON ; Using the Jackson API for processing JSON; Processing JSON with Jackson tree model APIs; Using Jackson tree model APIs to query and update data; Processing JSON with Jackson data binding APIs; Simple Jackson data binding with generalized objects; Full Jackson data binding with specialized objects
- Processing JSON with Jackson streaming APIsUsing Jackson streaming APIs to parse JSON data; Using Jackson streaming APIs to generate JSON; Using the Gson API for processing JSON; Processing JSON with object model APIs in Gson; Generating the object model from the JSON representation; Generating the parameterized Java collection from the JSON representation; Generating the JSON representation from the object model ; Processing JSON with Gson streaming APIs; Reading JSON data with Gson streaming APIs; Writing JSON data with Gson streaming APIs; Summary; Chapter 3: Introducing the JAX-RS API
- An overview of JAX-RSJAX-RS annotations; Specifying the dependency of the JAX-RS API; Using JAX-RS annotations to build RESTful web services; Annotations for defining a RESTful resource; Annotations for specifying request-response media types; Annotations for processing HTTP request methods; Annotations for accessing request parameters; Returning additional metadata with responses; Understanding data binding rules in JAX-RS; Mapping the path variable with Java types; Mapping the request and response entity body with Java types
- Using JAXB to manage the mapping of the request and response entity body to Java objects