I am using Spring MVC and want to develop a website that uses REST API provided by LinkedIn. I am very new to REST and have no Idea of how to use REST and retrieve data. I want a full tutorial so as to start up with my REST application. Please help me out through this.
相关问题
- Design RESTful service with multiple ids
- Axios OPTIONS instead of POST Request. Express Res
- Plain (non-HTML) error pages in REST api
- Laravel 5.1 MethodNotAllowedHttpException on store
- Can I parameterize labels and properties on CREATE
相关文章
- Got ActiveRecord::AssociationTypeMismatch on model
- Multiple parameters in AngularJS $resource GET
- Global Exception Handling in Jersey & Spring?
- REST search interface and the idempotency of GET
- Getting error detail from WCF REST
- Send a GET request with a body in JavaScript (XMLH
- GuzzleHttp Hangs When Using Localhost
- JAX-RS (Jersey) ExceptionMapper - @Context injecti
For consuming RESTful services the core class provided by spring is
RestTemplate
The spring blog has a pretty good article on how to use the RestTemplate.
A very simplified example is:
Try out rest4j. It integrates with Spring, but unlike Spring MVC, rest4j can generate documentation and client libraries for different programming languages.
There is also a flexible mechanism for mapping your internal Java object to external JSON representation, which is very important when using an ORM.