API for Documents
$ make setup
Server will be available at http://localhost
$ make start
$ make test
Get all documents
$ curl localhost/api/v1/documents | json_pp
Get one document
$ curl localhost/api/v1/documents/{id} | json_pp
Create draft
$ curl -X POST localhost/api/v1/documents | json_pp
Publish document
curl -X POST localhost/api/v1/documents/{id}/publish | json_pp
Update draft
curl -X POST localhost/api/v1/documents/{id}'
--form '_method="PATCH"' \
--form 'payload="{json_object}"' | json_pp