all-about-apikey/gorest
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Gorest

Description

Online REST API for Testing and Prototyping

Example Request

  • Curl
curl -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization: Bearer {{token}}" -XDELETE "https://gorest.co.in/public/v2/users/5"
  • Raw
GET /public/v2/users/5 HTTP/1.1
Host: gorest.co.in
Accept: application/json
Content-Type: application/json
Authorization: Bearer {{token}}

Response

  • Success

the response doesn't have body and the status code is 204

  • Error
{
    "message":"Resource not found"
}

Regex

[a-z0-9]{65}

Example API key

7ee098783b36b76b471bd47bee1ff16e1f63db2267fc105c145daa7cca5981580