npm.io
0.1.0 • Published 6 years ago

@andoshin11/sample-petstore-api

Licence
MIT
Version
0.1.0
Deps
0
Size
13 kB
Vulns
0
Weekly
0

Swagger Petstore API Spec

A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification

Setup

Node.js v10.15.3 or above is required

$ npm install -g yarn
$ yarn install

Update specifications

  1. Run $ docker-compose up -d
  2. Go to http://localhost:3020
  3. Edit src/**/*.yml

Build specifications

This repository uses swagpack to merge all yaml files referenced by the others into one.

Either by running $ yarn run build or just simply by making a new commit to let it happen.