Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

devjack/example-library-specification

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Library Specification

This repository defines a simple API using OpenAPI v3.0.1.

Build Status

Setup and installation

The API spec is defined in openapi.yml. Each URL has its own endpoint in endpoints/ and JSON request/response schemas are defined in schemas/. JSON Schema is used to define responses and can be used for validation.

Setup and run the documentation

Run these commands to install npm dependencies and serve the API documentation locally.

npm install
npm run test
npm run serve

The API documentation will be available at https://localhost:5000.

To resolve and publish the API spec, run:

npm run resolve

A simple HTML document including ReDoc is available in the public/ directory. To copy across the published spec and schemas, run:

npm run publish

You can then serve /public from any static content hosting service. The current documentation is hosted on Netlify at example-library-specification.netlify.com

About

Using OpenAPI and JSON Schema to build a design-first API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.