Go REST
F

title and body

Fedri Uchiha almost 2 years ago 3320 views 2 replies

how can i get the title and body fields? Please help me

2 replies
Z
zeevy almost 2 years ago

This is a rest API there is no customization of fields.

In graphql you can get what ever fields you want

Z
zeevy almost 2 years ago

GraphQl example

curl -i -H Accept:application/json -H Content-Type:application/json -H -XPOST https://gorest.co.in/public/v2/graphql -d '{query:query{posts {pageInfo {endCursor startCursor hasNextPage hasPreviousPage} totalCount nodes {id title body}}}}'

Your reply

Markdown supported