Publish a Swagger specification

Adds a new endpoint (`/spec`) which returns a the specification of the
API in Swagger-formatted JSON.

This means we will have something to point frontends at, so we can
evaluate which ones we like.

Right now it’s all hand-defined. If we were consistent about our use of
Marshmallow we could generated the spec from the Marshmallow schemas.
This commit is contained in:
Chris Hill-Scott
2016-06-22 13:48:59 +01:00
parent 340abae82c
commit 7c3d25a87a
6 changed files with 352 additions and 1 deletions

View File

@@ -6,5 +6,6 @@ pytest-cov==2.2.0
coveralls==1.1
mock==1.0.1
moto==0.4.19
flex==5.6.0
freezegun==0.3.6
requests-mock==0.7.0