Skip to content

Commit

Permalink
docs: add content-sdk section
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadGh committed Jul 11, 2024
1 parent b1986dc commit 0999ff1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,11 @@ This sdk i.e. **`sdk.upload`** contains APIs of Strapi related to path **`/api/u
- `getFiles`: gets a list of uploaded files
- `getFileById`: gets details of a file using the file's id
- `deleteFileById`: deletes a file using the file's id

## Content Sdk (Collection Type)
This sdk i.e. **`sdk.content`** contains APIs of Strapi related to path **`/api/:pluralApiId`** and **`/api/:pluralApiId/:documentId`** for working with collection type:
- `find`: gets a list of entries stored in this `pluralApiId`.
- `create`: creates a new entry.
- `fineOne`: gets details of an entry using the entry's id
- `update`: updates details of an entry using the entry's id
- `deleteFileById`: deletes an entry using the entry's id

0 comments on commit 0999ff1

Please sign in to comment.