Sometimes, you want to use javascript to load your assets - and we've got you covered.
We have a few endpoints:
Namespace: /api/v1
FUNCTION: LIST
METHOD: GET
ENDPOINT: /POSTS
To retrieve a list of posts, pass the same parameters you would in the liquid tags. eg. {"tag": "featured"}
FUNCTION: GET
METHOD: GET
ENDPOINT: /POSTS/:ID
To retrieve a single post, accepts both the ID and UID fields for the ID parameter.
FUNCTION: CREATE
METHOD: POST
ENDPOINT: /POSTS
To create a single post, minimum required fields are:
- Title
- Type
- Permalink
FUNCTION: UPDATE
METHOD: PATCH/PUT
ENDPOINT: /POSTS/:ID
To update a single post.
FUNCTION: DELETE
METHOD: DELETE
ENDPOINT: /POSTS/:ID
To remove a single post.