February 2020
Intermediate to advanced
404 pages
8h 42m
English
Swagger UI can be installed/downloaded on various operating systems, but the best way could be using Docker. A Swagger UI Docker image is available on the Docker Hub. Then we can pass our Open API/Swagger file to the Docker container we run out of the image. Before that, we need to create a JSON file. The Swagger JSON file has few sections:
Let's create a Swagger file with the preceding sections for the first service we built. Let's name it openapi.json:
{ "openapi": "3.0.0", "info": { "title": "Mirror Finder Service", "description": "API service for finding the fastest mirror from the list of given mirror sites", "version": "0.1.1" }, "servers": [ { "url": "http://localhost:8000", "description": ...Read now
Unlock full access