parent
d72bafbad7
commit
6736b3cd60
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -21,17 +21,17 @@ Use `define-list-client` macro to define functions for list-type content.
|
|||
The JSON response from the microCMS API are automatically converted into plist, with keys transformed from camelCase to kebab-case.
|
||||
|
||||
```lisp
|
||||
(microcms:define-list-client article)
|
||||
(microcms:define-list-client articles)
|
||||
```
|
||||
This will generate the following functions:
|
||||
|
||||
| Function Name | Arguments | Description |
|
||||
|---------------|-----------|-------------|
|
||||
| `get-article-list` | (&key `query`) | Get a list of articles. |
|
||||
| `get-article-detail` | (`id`, &key `query`) | Get details of a specific article by ID. |
|
||||
| `create-article` | (`content`, &key `query`) | Create a new article with the given content. |
|
||||
| `update-article` | (`id`, `content`) | Update an existing article by its ID with new content. |
|
||||
| `delete-article` | (`id`) | Delete an article by its ID. |
|
||||
| `get-articles-list` | (&key `query`) | Get a list of articles. |
|
||||
| `get-articles-detail` | (`id`, &key `query`) | Get details of a specific article by ID. |
|
||||
| `create-articles` | (`content`, &key `query`) | Create a new article with the given content. |
|
||||
| `update-articles` | (`id`, `content`) | Update an existing article by its ID with new content. |
|
||||
| `delete-articles` | (`id`) | Delete an article by its ID. |
|
||||
|
||||
### Object Type Endpoint
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue