Created
February 21, 2019 01:30
-
-
Save absyah/92bcb4a69b277ae01cde067943955715 to your computer and use it in GitHub Desktop.
Apisentris API Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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":"[email protected]","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