Journal Star Technologies API§

Posts§

GET /api/posts/(int: user_id)/posts/(tag)§
POST /api/posts/(int: user_id)/posts/(tag)§
DELETE /api/posts/(int: user_id)/posts/(tag)§

How to Invoke§

GET /api/posts/123/posts/web HTTP/1.1
Host: jourstar.com
Accept: application/json, text/javascript
HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

[
  {
    "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"
  }
]

Resource fields§

GET /foo§
Query Parameters:
  • resource – description for resource

Status Codes:
GET /short-syntax§
Request Headers:
Request JSON Object:
  • foo (string) – Foo key value

  • bar (number) – Bar key value

Response Headers:
Response JSON Array of Objects:
  • baz (string) – Some baz field

Status Codes:

Roles§

Referring to existing directives§

GET /api/posts/(int:user_id)/posts/(tag)

POST /api/posts/(int:user_id)/posts/(tag)

DELETE /api/posts/(int:user_id)/posts/(tag)

Directives§

GET /api/users/(int: user_id)/posts/(tag)§
POST /api/users/(int: user_id)/posts/(tag)§
DELETE /api/users/(int: user_id)/posts/(tag)§

Indices and tables§