Sun Guangdong 2015.12.23Social APIThe social API is a point social feature that accesses unity, such as:? User Configuration Files? Friends List? Achievement? Statistics/LeaderboardIt offers different social backend, such as XBox Live or Gamecenter, a unified interface, primarily for use by programmers on game projects
TechCrunch has been informed of details about Google's new social network project, called "opensocial" (which will be released on Thursday in the United States ). Opensocial itself is not a social network, but more like another common API (Application Program Programming Interface), which allows developers to enjoy the following core functions and information.Pag
Use Spring Boot to implement e-commerce system Web API (1) Hello World, spring e-commerce
Let's start with Hello World! Start.I. Build tools
Assume that Java SDK 8 has been installed.
Install build tools
We chose gradle to build the project.
Https://gradle.org/install this web page will tell you how to install.
We can also choose to manually install, first downlo
Article Address: http://www.haha174.top/article/details/258083Project Source: Https://github.com/haha174/jwt-token.gitSpecific practical effects can be seen here at present a personal test machine has been deployed above:Http://cloud.codeguoj.cn/api-cloud-server/swagger-ui.html#!/token45controller/loginUsingPOSTBelieve that many people have called the API, the general basic step is to first use the login to
@Controller: Modifier class, used to create an object that handles HTTP requests@RestController: Spring4 added after the note, originally returned in @controller JSON needs @responsebody to cooperate, If you replace @controller directly with @restcontroller, you do not need to configure the @ResponseBody, which returns the JSON format by default.@RequestMapping: Configuring URL MappingsBelow we try to use spring MVC to implement a restful
Original: documenting a Spring Data REST API with Springfox and Swagger
With spring date REST, you can quickly create rest APIs for spring date repositories, and provide crud and more functionality. However, with the rigorous API development success, you also want to ha
So far, we have introduced a lot of the content of Spring cloud, Ribbon, Hystrix, feign the knowledge that everyone is familiar with, we also mentioned in the previous micro-service is to split a large project into a number of small independent modules, And then through service management let these independent modules work together. So let's think about this. Two questions: 1. If there are many independent services in my micro-service that have to be
Through the previous sharing, we learned about several core facilities of the microservices architecture, through which we can build a simple microservices architecture system. For example, through spring Cloud Eureka to build a highly available service registry and realize the registration and discovery of services;Load balance through the Spring cloud ribbon or feign, and fault-tolerant protection with
Thanks to the fast development and ease of deployment of spring boot, it is believed that a large part of Spring boot users will be used to build restful APIs. The purpose of building restful APIs is often due to multiple terminals, which share many of the underlying business logic, so we abstract this layer to serve multiple mobile or web front ends.As a result, our RESTful
This essay goes on to learn a more important Component API Gateway service in MicroServices. When we finally have to provide external access to the micro-service architecture, we need a unified access portal, to hide our internal service URL details, which is a bit like the concept of the gateway in the LAN, this is the API Gateway Service has emerged. API Gatewa
Original: Http://www.jianshu.com/p/8033ef83a8edThanks to the fast development and ease of deployment of spring boot, it is believed that a large part of Spring boot users will be used to build restful APIs. The purpose of building restful APIs is often due to multiple terminals, which share many of the underlying business logic, so we abstract this layer to serve multiple mobile or web front ends.As a resul
connection factory. In this example, spring data uses the underlying database driver, MongoDB Java driver.
Generally, such underlying database drivers have their own exception handling policies. Spring uses unchecked exceptions. Therefore, developers can decide whether to capture exceptions. The implementation of the MongoDB template is to encapsulate the caught underlying exceptions into non-checked excep
1.Adding the Maven DependencyAs mentioned above, we'll use the Springfox implementation of the Swagger specification. To add it to my Maven project, we need a dependency in the Pom.xml file.
Io.springfox
Springfox-swagger2
2.7.0
2.Integrating Swagger 2 into the Project
2.1.Java Configuration The configuration of Swagger mainly centers around the docket Bean.
Swagger 2 is enabled through the@EnableSwagger2Annotation. After the docket bean was defined, itsSelect ()method return
Thanks to the fast development and ease of deployment of spring boot, it is believed that a large part of Spring boot users will be used to build restful APIs. The purpose of building restful APIs is often due to multiple terminals, which share many of the underlying business logic, so we abstract this layer to serve multiple mobile or web front ends.As a result, our RESTful
Thanks to the fast development and ease of deployment of spring boot, It is believed that a large part of Spring boot users will be used to build restful apis. The purpose of building restful APIs is often due to multiple terminals, which share many of the underlying business logic, so we abstract this layer to serve multiple mobile or web front ENDS.As a result, our restful
Thanks to the fast development and ease of deployment of spring boot, it is believed that a large part of Spring boot users will be used to build restful APIs. The purpose of building restful APIs is often due to multiple terminals, which share many of the underlying business logic, so we abstract this layer to serve multiple mobile or web front ends.As a result, our RESTful
Brief introductionZuul is the API gateway and filtering component provided by spring Cloud, which provides the following features:
Certification
Filter
Pressure test
Canary test
Dynamic routing
Service Migration
Load Balancing
Safety
Static request Processing
Dynamic traffic Management
In this tutorial, we will use Zuul to forward the web-side request /produ
In the app backend development often need to provide a RESTful API interface for mobile clients (Android, IOS), in the late version of the rapid iterative process, the implementation of the interface must be modified synchronously modify the interface document, and the document and code in two different media, unless there is a strict management mechanism, Otherwise, it is easy to cause the code to be inconsistent with the interface document.
This art
unique to the POST request.4.8 Getting the Response object in the POST request4.9 Get the resource location after the POST request4.10 Exchanging ResourcesDifferent from the getforentity ()-or Getforobject ()--exchange () method allows header information to be set in the request.If you do not specify the header information, Exchange () Get requests for Spitter will have the following header information:Suppose we want the server to send resources in JSON format. In this case, we need to set "Ap
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.