Note
This help should be accurate and comprehensive. If you see anything missing or that needs to be fixed, see How to Contribute or let us know in the Juice Slack #documentation channel.
The Sites endpoints provide a way to view site details.
GET
/api/v1/jb/sites/
¶Get list of sites
Example Request:
GET /api/v1/jb/sites/
Accept: application/json
Authorization: Token 7297b3ebb0e7f7baf5f54d39908dda99f5ea8665
Example Response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript
{
"id": 2,
"domain": "localhost:8000",
"name": "localhost:8000"
}
Response JSON Array of Objects: | |
---|---|
|
|
Request Headers: | |
|
|
Response Headers: | |
|
|
Status Codes: |
|
GET
/api/v1/jb/sites/
(int: id)/
¶Get site details
Example Request:
GET /api/v1/jb/sites/2/
Accept: application/json
Authorization: Token 7297b3ebb0e7f7baf5f54d39908dda99f5ea8665
Example Response:
HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript
{
"id": 2,
"domain": "localhost:8000",
"name": "localhost:8000"
}
Parameters: |
|
---|---|
Response JSON Object: | |
|
|
Request Headers: | |
|
|
Response Headers: | |
|
|
Status Codes: |
|