Last active
March 2, 2023 05:27
-
-
Save jdrago999/9b00b679444242eba58a88bb80c1c867 to your computer and use it in GitHub Desktop.
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
# API V2 | |
## GET /api/v1/tools/user-agents | |
``` | |
GET /api/v1/tools/user-agents | |
accept: application/json | |
``` | |
### Example Response: | |
``` | |
404 Not Found | |
``` | |
``` | |
401 Authorization Required | |
``` | |
``` | |
400 Invalid Request | |
``` | |
``` | |
200 OK | |
content-type: application/json | |
{ | |
"desktop_user_agents": [ | |
{ | |
"id": 20, | |
"user_agent": "Internet Explorer ..." | |
}, | |
{ | |
"id": 23, | |
"user_agent": "Mozilla ..." | |
} | |
], | |
"mobile_user_agents": [ | |
{ | |
"id": 31, | |
"user_agent": "Mobile iOS 9.2 (iPhone) / Safari" | |
}, | |
{ | |
"id": 32, | |
"user_agent": "Mobile iOS 7.1 (iPad) / Safari" | |
} | |
] | |
} | |
``` | |
## GET /api/v1/foo | |
### Example Request | |
``` | |
GET /api/v1/foo | |
accept: application/json | |
``` | |
### Example Response | |
``` | |
200 OK | |
{ | |
"data": [ | |
...list of { objects } ... | |
], | |
"pagination": { | |
"next_url": "...", | |
"previous_url": "..." | |
} | |
} | |
``` | |
## POST /api/v1/foo | |
### Example Request | |
### Example Response | |
## GET /api/v1/foo/:id | |
### Example Request | |
### Example Response | |
## PUT /api/v1/foo/:id | |
### Example Request | |
### Example Response | |
## PATCH /api/v1/foo/:id | |
### Example Request | |
### Example Response | |
## DELETE /api/v1/foo/:id | |
### Example Request | |
### Example Response | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment