Skip to content

Instantly share code, notes, and snippets.

@absyah
Created February 21, 2019 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save absyah/92bcb4a69b277ae01cde067943955715 to your computer and use it in GitHub Desktop.
Save absyah/92bcb4a69b277ae01cde067943955715 to your computer and use it in GitHub Desktop.
Apisentris API Examples
Apisentris API endpoints
table name: programmers
### Get Programmers
[GET] https://apisentris.com/api/v1/programmers
example:
--------
curl -H "client_id: 141000"\
-H "access_token: 3zov2Syn0ahUfqwuFYw0VQ"\
-H "Content-Type: application/json"\
-X GET https://apisentris.com/api/v1/programmers
### Get Programmer
[GET] https://apisentris.com/api/v1/programmers/:id
example:
--------
curl -H "client_id: 141000"\
-H "access_token: 3zov2Syn0ahUfqwuFYw0VQ"\
-H "Content-Type: application/json"\
-X GET https://apisentris.com/api/v1/programmers/74
### Create Programmer
[POST] https://apisentris.com/api/v1/programmers
example:
--------
curl -H "client_id: 141000"\
-H "access_token: 3zov2Syn0ahUfqwuFYw0VQ"\
-H "Content-Type: application/json"\
-X POST https://apisentris.com/api/v1/programmers\
-d '{"resource":{"email":"parabola@apisentris.com","firstname":"Parabola","lastname":"Apisentris"}}'
### Update Programmer
[PATCH] https://apisentris.com/api/v1/programmers/:id
example:
--------
curl -H "client_id: 141000"\
-H "access_token: 3zov2Syn0ahUfqwuFYw0VQ"\
-H "Content-Type: application/json"\
-X PATCH https://apisentris.com/api/v1/programmers/74\
-d '{"resource":{"email":"brand_new@email"}}'
### Delete Programmer
[DELETE] https://apisentris.com/api/v1/programmers/:id
example:
--------
curl -H "client_id: 141000"\
-H "access_token: 3zov2Syn0ahUfqwuFYw0VQ"\
-H "Content-Type: application/json"\
-X DELETE https://apisentris.com/api/v1/programmers/74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment