GET
/api/fetch/quote/
None
http code content-type response 200
application/json
JSON
curl "https://resttless.vercel.app/api/fetch/quote/?format=json"
GET
/api/fetch/author
/{author name or id}
name type data type description name
orid
required string / int Author's name or ID
http code content-type response 200
application/json
JSON
curl "https://resttless.vercel.app/api/fetch/author/?name=Thomas+Edison&format=json"
curl "https://resttless.vercel.app/api/fetch/author/?id=5&format=json"
GET
/api/fetch/author
None
http code content-type response 200
application/json
JSON
curl "https://resttless.vercel.app/api/fetch/author/all/?format=json"
POST
/api/create/author/
None
name type data type description Authorization
required Pass the authorization token, get it from here
name type data type description name
required JSON Specify the name of the author to be created
http code content-type response 201
application/json
{id: [author_id], name: [author_name]}
405
application/json
{'detail': 'Method "<method_name>" not allowed.'}
curl -X POST -H "Authorization: Token < your_auth_token >" -H "Content-Type: application/json" -d '{"name" : "Lucas"}' "https://resttless.vercel.app/api/create/author/"
POST
/api/create/quote/
None
name type data type description Authorization
required Pass the authorization token, get it from here
name type data type description name
required JSON Specify the name of the author quote
required JSON Quote to post author_id
required JSON ID of author
http code content-type response 201
application/json
{'quote': '<quote>', 'author_id': <author id>, 'author': {'id': <author id>, 'name': '<author name>'}}
405
application/json
{'detail': 'Method "<method_name>" not allowed.'}
curl -X POST -H "Authorization: Token < your_auth_token >" -H "Content-Type: application/json" -d "{'quote': 'doing from client', 'author_id': 14, 'author': {'id': 14, 'name': 'unknown'}}" "https://resttless.vercel.app/api/create/quote/"
PUT
/api/update/author/
name type data type description id
required int Author's ID
name type data type description Authorization
required Pass the authorization token, get it from here
name type data type description name
required JSON New name of Author
http code content-type response 200
application/json
{'message':'author updated'}
405
application/json
{'detail': 'Method "<method_name>" not allowed.'}
curl -X PUT -H "Authorization: Token < your_auth_token >" -H "Content-Type: application/json" -d '{"name" : "Lucas"}' "https://resttless.vercel.app/api/update/author/100"
DELETE
/api/delete/author/
name type data type description id
required int Author's ID
name type data type description Authorization
required Pass the authorization token, get it from here
None
http code content-type response 200
application/json
{'message':'author deleted'}
405
application/json
{'detail': 'Method "<method_name>" not allowed.'}
curl -X DELETE -H "Authorization: Token < your_auth_token >" "https://resttless.vercel.app/api/delete/author/100"
DELETE
/api/delete/quote/
name type data type description id
required int Quote ID
name type data type description Authorization
required Pass the authorization token, get it from here
None
http code content-type response 200
application/json
{'message':'Quote Deleted'}
405
application/json
{'detail': 'Method "<method_name>" not allowed.'}
curl -X DELETE -H "Authorization: Token < your_auth_token >" "https://resttless.vercel.app/api/delete/quote/120"