# API Endpoints

When you create a Content Type you will have a certain number of REST API endpoints available to interact with it.

WARNING

Components don't have API endpoints

As an example, let's consider the following models:

Content Types:

  • Restaurant (Collection Type)
  • Homepage (Single Type)

Components:

  • Opening hours (category: restaurant)
  • Title With Subtitle (category: content)
  • Image With Description (category: content)

# Endpoints

Here is the list of endpoints generated for each of your Content Types.

# Examples

Here are some Content Type examples

# Single Types

# Collection Types

# Get entries

Returns entries matching the query filters. You can read more about parameters here.

# Get an entry

Returns an entry by id.

# Count entries

Returns the count of entries matching the query filters. You can read more about parameters here.

# Create an entry

Creates an entry and returns its value.

# Update an entry

Partially updates an entry by id and returns its value. Fields that aren't sent in the query are not changed in the db. Send a null value if you want to clear them.

# Delete an entry

Deletes an entry by id and returns its value.