- Hands-On RESTful Web Services with Go
- Naren Yellavula
- 188字
- 2021-06-24 17:04:24
Open API and Swagger
Because APIs are very common, the Open API Specification is a community-driven open specification within the OpenAPI Initiative, a Linux Foundation Collaborative Project.
The OpenAPI Specification (OAS), formerly called the Swagger Specification, is an API description format for REST APIs. An Open API file allows you to describe your entire API, including the following:
- Available endpoints
- Endpoint operations (GET, PUT, DELETE, and so on)
- Parameter input and output for each operation
- Authentication methods
- Contact information, license, terms of use, and other information.
Open API has many versions and is rapidly developing. The current stable version is 3.0.
There are two formats, JSON and YAML, that are supported by OAS. Swagger and Open API both are different. Swagger has many products, including the following:
- Swagger UI (for validating Open API files and interactive docs)
- Swagger Codegen (for generating server stubs)
Whenever we develop a REST API, it is a better practice to create an Open API/Swagger file that captures all the necessary details and descriptions of the API. The file can then be used in Swagger UI to create interactive documentation.
- Unity 2020 By Example
- .NET之美:.NET關(guān)鍵技術(shù)深入解析
- 潮流:UI設(shè)計必修課
- 軟件界面交互設(shè)計基礎(chǔ)
- Hands-On Image Processing with Python
- Designing Hyper-V Solutions
- The Computer Vision Workshop
- Flux Architecture
- C語言程序設(shè)計習題與實驗指導
- Modern C++ Programming Cookbook
- 算法超簡單:趣味游戲帶你輕松入門與實踐
- Android初級應用開發(fā)
- Java編程指南:語法基礎(chǔ)、面向?qū)ο蟆⒑瘮?shù)式編程與項目實戰(zhàn)
- 信息學奧林匹克競賽初賽精講精練
- LibGDX Game Development By Example