1.9 KiB
1.9 KiB
The StackTach REST Interface
stacky/deployments
The list of all available deployments
Example request:
GET /stacky/deployments HTTP/1.1 Host: example.com Accept: application/json
Example response:
HTTP/1.1 200 OK Vary: Accept Content-Type: text/json [ { "post_id": 12345, "author_id": 123, "tags": ["server", "web"], "subject": "I tried Nginx" }, { "post_id": 12346, "author_id": 123, "tags": ["html5", "standards", "web"], "subject": "We go to HTML 5" } ]
- query sort
one of
hit
,created-at
- query offset
offset number. default is 0
- query limit
limit number. default is 30
- reqheader Accept
the response content type depends on
Accept
header- reqheader Authorization
optional OAuth token to authenticate
- resheader Content-Type
this depends on
Accept
header of request- statuscode 200
no error
- statuscode 404
there's no user