Hi,
We have been developing our own JAX-RS runtime for WSO2 Micro Services
Server (MSS). The purpose of that runtime is not to support the full JAX-RS
specification but to support a subset of the JAX-RS specification plus a
set of additional features focusing on performance and lightweightness to
run microservices.
With latest development work currently the MSS JAX-RS runtime supports the
following features.
- The runtime can process annotated POJO JAX-RS resource classes and
their annotated methods to create REST service endpoints for valid resource
methods.
- The runtime supports the following class level annotations.
- @Path - Root path for resource methods
- @Consumes - Default consume media type(s) for resource methods
- @Produces - Default produce media type(s) for resource methods
- Supports the following method level annotations.
- @Path - Endpoint of the method relative to @Path of the class
- @Consumes - Media type(s) that the method can consume
- @Produces - Media type(s) that is produced by the method
- @GET - HTTP GET method
- @PUT - HTTP PUT method
- @POST - HTTP POST method
- @DELETE - HTTP DELETE method
- Supports the following parameter level annotations.
- @DefaultValue - Specify a default parameter value
- @Context - Inject additional objects. Currently supports injection
of io.netty.handler.codec.http.HttpRequest and
org.wso2.carbon.mss.HttpResponder
- @PathParam - /StockQuote/{*symbol*} to get value of symbol
- @QueryParam - /Students?*age=18* to get value of age
- @HeaderParam - To read HTTP request header values
- Supports returning POJO from resource methods to response by xml or
json and getting injected POJO to resource methods for request bodies that
are json or xml.
- Supports returning *javax.ws.rs.core.Response* objects from resource
methods to send HTTP responses in a more customised way.
Product-MSS repository url: https://github.com/wso2/product-mss
Best Regards,
Samiyuru
--
Samiyuru Senarathne
*Software Engineer*
Mobile : +94 (0) 71 134 6087
[email protected]
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture