Skip to content

Commit 67a131b

Browse files
authored
Merge pull request #50 from 4geru/4geru/separate-write-api-on-readme-md
sesparate WRITE API examples on README.md
2 parents acc4263 + 3a7f37d commit 67a131b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ yarn add microcms-js-sdk
2020

2121
CDN support.
2222

23-
```
23+
```html
2424
<script src="https://unpkg.com/microcms-js-sdk@latest/dist/umd/microcms-js-sdk.js"></script>
2525
```
2626

@@ -104,7 +104,7 @@ client
104104
.catch((err) => console.error(err));
105105
```
106106

107-
#### WRITE API
107+
#### CREATE API
108108

109109
The following is how to use the write system when making a request to the write system API.
110110

@@ -163,7 +163,11 @@ client
163163
})
164164
.then((res) => console.log(res.id))
165165
.catch((err) => console.error(err));
166+
```
167+
168+
### UPDATE API
166169

170+
```javascript
167171
// Update content
168172
client
169173
.update({
@@ -186,7 +190,11 @@ client
186190
})
187191
.then((res) => console.log(res.id))
188192
.catch((err) => console.error(err));
193+
```
189194

195+
### DELETE API
196+
197+
```javascript
190198
// Delete content
191199
client
192200
.delete({

0 commit comments

Comments
 (0)