Creating your first Back-end API
To create a back-end api all you have to do is enter the following command:
> Create <name of back-end API>
The above command creates a standard yorAPI REST Based Back-end with the following Instant API’s Created (based on what is activated on your account of course: see ‘Account’ for more on that)
- User Profile
- Gamification
- App Metrics
- MongoDB Data
- PUSH Notifications
- Email Notifications
To illustrate if an account has Metrics, Data and Gamification Instant API’s installed (done via the upgrade command) you would see the following:
> Create test-api
- Creating Back-end API (test-api)
—- Added User Profile API
—- Added Gamification API
—- Added App Metrics API
—- Enabled MongoDB Data Storage and API Support
——— To add Add a Data API type ‘Mongo Add <name of collection>’
- Back-end Created Successfully and Ready to use in less than 5 seconds!
—- API Key: 123453534534535
———— Please keep this key safe, to see this key again just type ‘api key’
>_
and well thats all there is to it, to test an API Call look up ‘test’
--------------------------------------------------------------------------------