Skip to content

Instantly share code, notes, and snippets.

@redaphid
Created May 10, 2019 05:49
Show Gist options
  • Save redaphid/f3ce7346f85cc58f302d05bb546d9119 to your computer and use it in GitHub Desktop.
Save redaphid/f3ce7346f85cc58f302d05bb546d9119 to your computer and use it in GitHub Desktop.
Dreaming of the old Meshblu
const routes = [
{method: 'get ', route: '/ping',},
{method: 'get ', route: '/authenticate/:uuid'},
{method: 'post ', route: '/authenticate'},
{method: 'post ', route: '/broadcasts'},
{method: 'post ', route: '/claimdevice/:uuid'},
{method: 'get ', route: '/devices'},
{method: 'post ', route: '/devices'},
{method: 'put ', route: '/devices/:uuid'},
{method: 'get ', route: '/devices/:uuid'},
{method: 'delete', route: '/devices/:uuid'},
{method: 'get ', route: '/devices/:uuid/publickey'},
{method: 'post ', route: '/devices/:uuid/token'},
{method: 'post ', route: '/devices/:uuid/tokens'},
{method: 'delete', route: '/devices/:uuid/tokens'},
{method: 'delete', route: '/devices/:uuid/tokens/:token'},
{method: 'post ', route: '/messages'},
{method: 'get ', route: '/mydevices'},
{method: 'get ', route: '/publickey'},
{method: 'post ', route: '/search/devices'},
{method: 'post ', route: '/search/tokens'},
{method: 'get ', route: '/status'},
{method: 'get ', route: '/v2/devices'},
{method: 'get ', route: '/v2/devices/:uuid'},
{method: 'patch ', route: '/v2/devices/:uuid'},
{method: 'put ', route: '/v2/devices/:uuid'},
{method: 'put ', route: '/v2/devices/:uuid/find-and-update'},
{method: 'get ', route: '/v2/devices/:uuid/subscriptions'},
{method: 'delete', route: '/v2/devices/:subscriberUuid/subscriptions'},
{method: 'post ', route: '/v2/devices/:subscriberUuid/subscriptions/:emitterUuid/:type'},
{method: 'delete', route: '/v2/devices/:subscriberUuid/subscriptions/:emitterUuid/:type'},
{method: 'get ', route: '/v3/devices/:uuid'},
{method: 'get ', route: '/v2/whoami'},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment