Using the data store provided by Telerik Platform begins with creating a content type. Content types are sets of data items that have a similar structure.
By creating a content type you are also defining a powerful RESTful services layer which you can consume in the client app.
In this article you will learn how to create a content type in Telerik Platform.
Steps at a glance:
- Create a Content Type
- Add Fields
- Create Your First Data
- Get the App ID for Your App
- Test the RESTful Endpoint
- A Telerik Platform account
- The Data service enabled in your Telerik Platform app
Open your Telerik Platform app and navigate to Data > Types. Click the Create a Content Type button.
You will see the Create a content type dialog. Enter a name for your content type.
A content type has some predefined fields in its structure for better administration of the data. You can extend the structure of a content type with additional fields. When you finish defining or editing the structure of a type, click the Save button. You will see the data browser screen for the newly created content type.
You can create your first data item directly from the UI portal. Ensure that the data browser is showing your newly created content type and then click the Add an Item button. Fill in the input fields on the right. Click Save when you are ready.
The App ID is the unique identifier of your Telerik Platform app. You can find it in Settings. It is needed to connect your client app to your Telerik Platform data store.
You are now ready to connect your client app to data using the various Backend Services client SDKs or any other programming framework.
With the App ID and the content type name you can call a unique endpoint that exposes a full CRUD functionality over the content type—
https://api.everlive.com/v1/your-app-id/Places. Test it in your browser or with your favorite tool for making HTTP requests.