Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Latest commit

 

History

History
105 lines (59 loc) · 1.62 KB

0001-api-docs-format.md

File metadata and controls

105 lines (59 loc) · 1.62 KB

Summary

Outlines basic API documentation format.

Motivation

To propose a format that uniformly marks out the layout of all API documentation.

Detailed design

Namespace

stored in /lang/version/namespace.md

# /version/path/to/namespace/

Description of the API namespace

## formats

- Default API response formats
- `json`
- `xml`
- ...

## endpoints

### [METHOD endpoint](namespace/endpoint.md)

`METHOD https://retrospring.net/version/path/to/namespace/endpoint.json`

Short description of the API endpoint

##### last revised on: revision date

endpoint

stored in /lang/version/namespace/endpoint.md

# METHOD /version/path/to/namespace/endpoint

Description of the API endpoint and what it entails

## additional formats

- Endpoint specific formats

## request parameters

- List of request parameters

## caveats

- throttling, oauth, etc

## responses

- list of responses, each headered

## error codes

- list of error codes

##### last revised on: revision date

payload

stored in /lang/version/payload/name.md

# PayloadName

Description of the payload

## example

code block of example response

##### last revised on: revision date

Strip _ from the ending code block tags

Notes

Revision date should be either DD/MM/YYYY HH:MM or YYYY/MM/DD HH:MM unless specified otherwise, UTC+0 time, 24-hour.

Drawbacks

None as of yet

Alternatives

None as of yet

Unresolved questions