It is headless content managment system, that will enable you to store and manage your data.
I'll post a step by step guide on how we can use it... very soon
- Easy to custmoize
- Nice documentation
- 100k API requests per Month
- 5 GB storage per project
- Perfect for medium sized projects.
Sanity Studio provides an easy way to access APIs through its built-in HTTP client. This allows you to retrieve and update data from external APIs directly within the Sanity Studio interface.
To allow a website to access an API created using Sanity.io, you will need to enable CORS (Cross-Origin Resource Sharing) for your Sanity.io project.
To enable CORS for your Sanity.io project, you can add a cors configuration object to your sanity.json file. Here's an example:
{
"api": {
"projectId": "your-project-id",
"dataset": "your-dataset-name",
"cors": {
"allowOrigins": ["https://example.com"],
"allowCredentials": true,
"allowHeaders": ["Authorization"],
"maxAge": 86400
}
}
}
Step 1: Head to the dashboard and under the the CORS orgins look out for the allowed hosts
Step 2: Grab the link of the website that you want your api to be accessed
Step 4: Done. Now your website can use the API to fetch the data
Step 1: Head to the dashboard and under the the Members look out for "Invite project members"
Step 2: Add the email and the role
Step 3: Once you are done, send the invite