Back
>API Write sample

API Write sample

Date: 2021-03-31 08:34
Category : headless-2

API Write sample

  • ver 0.9.2移行で利用可能です。

■ create

create , content

  • curl sample
curl  -X POST http://localhost:3003/api/post/create/posts -d "title=t203a" -d "content=c203a" -H "apikey:uS277rqIEoyrQnfNd6UKBNcG"

URL : /api/post/create/content_name

  • content_name

Site > ContentType > content name

  • apikey

Site > open > apikey


■ delete

delete , content

  • curl sample
curl  -X POST http://localhost:3003/api/post/delete/posts -d "id=28" -H "apikey:qXibAfxwUCRuiihlXakpDN6w"

URL : /api/post/delete/content_name

  • content_name

Site > ContentType > content name

  • id

content.id

  • apikey

Site > open > apikey


■ update

update , content

  • curl sample
curl  -X POST http://localhost:3003/api/post/update/posts -d "id=6" -d "title=t322c" -d "content=c322c" -H "apikey:YjiCWg1gDsfwcbF5O88PG3G5"

URL : /api/post/update/content_name

  • content_name

Site > ContentType > content name

  • id

content.id

  • apikey

Site > open > apikey