Skip to content

Instantly share code, notes, and snippets.

@jdrago999
Last active March 2, 2023 05:27
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 jdrago999/9b00b679444242eba58a88bb80c1c867 to your computer and use it in GitHub Desktop.
Save jdrago999/9b00b679444242eba58a88bb80c1c867 to your computer and use it in GitHub Desktop.
# 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