Category : api

Gin builds Blog API’s (1) Project address:https://github.com/EDDYCJY/go … Thinking First of all, before an initial project starts, everyone should think about it All kinds of program configurations are written in code, okay Is it appropriate that the API error code is hard-coded into the program Db handle to everyoneOpen, ok Get public parameters such as ..

Read more

Add Swagger to it. A good oneAPI’s, must be inseparable from a goodAPIDocument To develop pure handwritingAPIDocument, does not exist: =) Project address:https://github.com/EDDYCJY/go … Install swag 1、go get $ go get -u github.com/swaggo/swag/cmd/swag If$GOPATH/binNot joined$PATHIn, you need to execute the move of its executable file to$GOBINunder mv $GOPATH/bin/swag /usr/local/go/bin 2、gopm get This package has referencesgolang.orgIf ..

Read more

Last articleEureka Cache MechanismThis paper introduces the caching mechanism of Eureka. I believe everyone has a better understanding of Eureka. This paper will introduce in detail how API gateway realizes real-time sensing of service downline. I introduction In cloud-based microservice applications, the network locations of service instances are dynamically allocated. Moreover, due to automatic scaling, ..

Read more

Why do headlines always carry the keyword “API security”? Because I think I’d like to. In fact, this article and the previous one can both be regarded asThe Lazy Beginner-Level Chapter on PHP Encryption and Decryption (API Security Enhancement Chapter 1)“) only focuses on safety. If you didn’t read the last article, you must go ..

Read more

brief introduction Definition A Data Query Language for API Calls Core idea The traditional api call usually obtains a complete object assembled by the back end, but the front end may only need to use some fields, and most of the data query and transmission work is wasted. GraphQL provides a brand-new data query method, ..

Read more