• Document Up to Date

Get Sites per User

Get Crafter Studio sites available to current user with an optional range for pagination.

Resource Information

This service uses the tomcat application on port 8080 by default. To see a list of default ports click here

The context for this API is /studio, please prefix the API URLs with this context.

HTTP Verb
GET
URL
/api/1/services/api/1/site/get-per-user.json
Response Formats
JSON
Required Role
Admin, self

Parameters

Name
Type
Required
Description
start
Integer

Start offset
number
Integer

Number of records to retrieve

Example

GET .../api/1/services/api/1/site/get-per-user.json
 1{
 2  "sites": [
 3    {
 4      "id": 2,
 5      "siteUuid": "acbf5459-c5ab-4be1-be1a-a12571db9b7f",
 6      "siteId": "myeditorial",
 7      "name": "myeditorial",
 8      "description": null,
 9      "status": null,
10      "deleted": 0,
11      "liveUrl": null,
12      "lastCommitId": "ef874be1b167d229163dee4e70f1fa73a1f66401",
13      "publishingEnabled": 1,
14      "publishingStatusMessage": "ready|Ready",
15      "lastVerifiedGitlogCommitId": "ef874be1b167d229163dee4e70f1fa73a1f66401",
16      "sandboxBranch": "master",
17      "searchEngine": "Elasticsearch",
18      "publishedRepoCreated": 0,
19      "publishingLockOwner": "localhost/127.0.0.1",
20      "publishingLockHeartbeat": "2020-11-10T14:49:02-05:00",
21      "sitePublishedRepoCreated": false,
22      "siteDeleted": false
23    },
24    {
25      "id": 3,
26      "siteUuid": "b918ee26-a672-4363-989d-2743eeff4c43",
27      "siteId": "mysite",
28      "name": "mysite",
29      "description": null,
30      "status": null,
31      "deleted": 0,
32      "liveUrl": null,
33      "lastCommitId": "75f6057714737be8c9929bdb769fcb172ee769a8",
34      "publishingEnabled": 1,
35      "publishingStatusMessage": "ready|Ready",
36      "lastVerifiedGitlogCommitId": "75f6057714737be8c9929bdb769fcb172ee769a8",
37      "sandboxBranch": "master",
38      "searchEngine": "Elasticsearch",
39      "publishedRepoCreated": 0,
40      "publishingLockOwner": "localhost/127.0.0.1",
41      "publishingLockHeartbeat": "2020-11-10T14:49:01-05:00",
42      "sitePublishedRepoCreated": false,
43      "siteDeleted": false
44    }
45  ],
46  "total": 2
47  }

Response

Status
Location
Response Body
200
.../site/get-per-user.json..
See example above.
400

{ "message" : "Invalid parameter(s)" }
401

{ "message" : "Unauthorized" }
404

{ "message" : "User not found"}
500

{ "message" : "Internal server error" }