This database schema and therefore the API is based on IDs and KEYS. IDs are just integers which always act as an internal and unique identifier for any record. However, as optimal as integer IDs are, they are very difficult to work with when a database schema is dynamic as with EAV and make APIs equally obtuse. Where appropriate and only so, if an ID can benefit from a readable KEY name then one will be assigned.

This overhead is minimal and all data-integrity will be maintained at the API level, so should you ever change a key-name which in effect would be the same as changing a field-name, data-integrity will be preserved.

All documentation web-pages are only partially responsive and desktop-designed.

C.M.S.

https://vshop.vadoo.co.uk/api/cms/getImage

_data = { mediaURL : '....' };
    fetch('https://vshop.vadoo.co.uk/api/cms/getImage', {
      method: "post",
      headers: { "Content-Type": "application/json; charset=utf-8" },
      body: JSON.stringify(_data)}
    )
    .then( response => response.json() )
    .then( response => {
        // Returns response
        // _.isEmpty(response) [#lodash] is useful
    })

JSON | Image URL from Media Library

https://vshop.vadoo.co.uk/api/cms/GetBlock/{block-name}

fetch('https://vshop.vadoo.co.uk/api/cms/getblock/{block-id or -name}')
    .then( response => response.json() )
    .then( response => {
        // Returns response object
        // _.isEmpty(response) [#lodash] is useful
    })

JSON | Block Object for CMS Page

.. Will return a existing CMS page [rich text] of a named block.

https://vshop.vadoo.co.uk/api/cms/{block-name}

https://vshop.vadoo.co.uk/api/cms/GetMenu

fetch('https://vshop.vadoo.co.uk/api/cms/getmenu)
    .then( response => response.json() )
    .then( response => {
        // Returns response object
        // _.isEmpty(response) [#lodash] is useful
    })

JSON | Ordered blocks of CMS Pages with -- in Menu ticked --

https://vshop.vadoo.co.uk/api/cms/getmenu


https://vshop.vadoo.co.uk/api/cms/getcarousel/{id}

fetch('https://vshop.vadoo.co.uk/api/cms/getcarousel)
    .then( response => response.json() )
    .then( response => {
        // Returns response object
        // _.isEmpty(response) [#lodash] is useful
    })

JSON | [Object]

https://vshop.vadoo.co.uk/api/cms/getcarousel/{id} with a {id} of your choosing. {$id} can be either the unique MySQL #ID or its name.