Apollolife Content Management System

Rest Api

  1. http://cms.apollolife.com/wp-json - main rest api url
  2. http://cms.apollolife.com/wp-json/wp/v2/articles?_embed - list all articles in json format
  3. http://cms.apollolife.com/wp-json/wp/v2/articles/:id?_embed - return a specific article in json format
    ex: http://cms.apollolife.com/wp-json/wp/v2/articles/38?_embed
  4. http://cms.apollolife.com/wp-json/wp/v2/bits?_embed - list all bits in json format
  5. http://cms.apollolife.com/wp-json/wp/v2/bits/:id?_embed - return a specific bit in json format
    ex: http://cms.apollolife.com/wp-json/wp/v2/bits/18?_embed

Rest APIs are secured by Authorization Tokens.
For Authorization Token:
POST to the below URL: http://cms.apollolife.com/wp-json/jwt-auth/v1/token
and pass username as ‘username’ and password as ‘password’.
In response you will get the Authorization Token.

Pass the Authorization token to access content using the above APIs (ALL GETs).

For featured image associated with the article, use the following JSON element variable.