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 ..
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 ..
Basic steps for API testing Generally speaking, the basic steps of API testing mainly include the following three steps: 1. Prepare test data; 2. Initiate a request； for the tested API through a common or self-developed API testing tool; 3. Verify the response of the returned result. Common API testing tools include command line tool ..
The Hive Team of Yi Ren Loan, founded by Michael in 2013, uses Internet technology to promote the harmonious and healthy development of financial ecology. Since its establishment, it has been committed to the construction of a multi-dimensional data closed-loop platform. At present, the team has a scale of over 100 people, covering the capture ..
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, ..
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 ..
First of all, some time ago I was criticized by people (gang) in the public number. the general meaning is: you don’t always think that the ECDH is oval and prime. you just say how to use it in the actual project. we don’t want to listen to that. we all know and are proficient ..
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, ..