Github Education
  • Github學生免費服務推薦
  • name.com免費網域申請
  • SendGrid - Email Service
  • Configcat - Global config setting
  • Transloadit - File conversion to cloud storage
  • i18n 管理平台 - lingohub
  • Push Notifications - PushBots
  • BrowserStack
  • Page
  • Ai
    • Stable diffusion
    • Changing Images Backgrounds
  • Copy of Crypto currency games
    • Gods Unchained
  • Digital Ocean
    • How to create cloud instance and access it on Digital Ocean
    • Deploy nodeJs on DigitalOcean droplet using docker
    • Deploy Redis to your local
  • Heroku
    • Heroku Cli
    • How to deploy Hello world to Heroku using docker
    • How to deploy NodeJS application to Heroku using docker
  • APIs
    • Google Geocoding API
    • FourSquare
    • Building APIs with Swagger
  • Util
    • Google Cloud Storage - Object storage
    • Google Search Console
    • Google Sign-in with Angular Front End
    • Google Sign-in with Nodejs Backend
    • Github Package
  • 推薦課程
  • Currently interested in
  • Useful info
  • Become a Front End Web Developer | Udacity
    • 2. CSS, Website Layout, Website Components
      • Lesson 2: CSS
      • Lesson 3: Flexbox
      • Lesson 4: CSS Grid
      • Lesson 5: Creating Responsive Layouts
      • How to use Adobe Design tokens - Spectrum
    • 3. Javascript & The DOM
      • Lesson 1: Syntax
      • Lesson 2: The Document Object Model
      • Lesson 3: Creating Content with JavaScript
      • Lesson 4: Working with Browser Events
  • Some tips
    • Github Blame View
  • Free
    • Openshift(WIP)
Powered by GitBook
On this page
  • Paid online course
  • Prerequisites
  • References

Was this helpful?

  1. APIs

Building APIs with Swagger

PreviousFourSquareNextGoogle Cloud Storage - Object storage

Last updated 5 years ago

Was this helpful?

Swagger分三個部分,Swagger editor、Swagger UI、Swagger Codegen。Swagger editor去定義api specification,Swagger UI把Swagger editor定義的api變成網站,方便寫程式的人看,Swagger codegen是將這些api definition變成code,讓我們之後去implement business logic。

Paid online course

Swagger基本內容先看 [1],[1] 很詳細說明Swagger UI,但沒有code generation的內容。

如果想要將swagger UI deploy到spring boot看 [2]。

Swagger code generation請看 [3],但 [3] 講的東西其實很少。其實用Maven將generated file產出之後,之後去implement即可,也不太需要學什麼。

避免部署Swagger UI的方式就是copy你的yaml file,past到swagger editor即可。

Prerequisites

  1. REST

  2. JSON

References

- Generate an SDK with Swagger

Building APIs with Swagger and the OpenAPI Specification
Spring: Spring Cloud - Document microservices with Swagger
AWS API Gateway with HTTP, Lambda, DynamoDB, and iOS
https://editor.swagger.io/
YAML
https://github.com/OAI
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schema