parent
47c182ff4b
commit
574b760ff7
10 changed files with 278 additions and 90 deletions
|
@ -17,6 +17,9 @@ Before making API requests, set your API key and service domain:
|
|||
|
||||
Use `define-list-client` macro to define functions for list-type content.
|
||||
|
||||
`query` and `content` must be provided as property list (plist), with keys written in kebab-case (e.g., `:draft-key`).
|
||||
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)
|
||||
```
|
||||
|
@ -30,8 +33,6 @@ This will generate the following functions:
|
|||
| `update-article` | (`id`, `content`) | Update an existing article by its ID with new content. |
|
||||
| `delete-article` | (`id`) | Delete an article by its ID. |
|
||||
|
||||
Note: query arguments should be provided as a property list (plist), where keys use kebab-case (e.g., `:draft-key`).
|
||||
|
||||
### Object Type Endpoint
|
||||
|
||||
Use `define-object-client` macro to define functions for object-type content.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue