Get Content Types
Get content types allowed for given path.
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/content/get-content-types.json |
Response Formats
|
JSON |
Required Role
|
N/A
|
Parameters
Name
|
Type
|
Required
|
Description
|
---|---|---|---|
site_id
|
String
|
✓
|
Site to use
|
path
|
String
|
✓
|
Path to get content types for
|
Example
Request
GET .../api/1/services/api/1/content/get-content-type.jsons?site_id=mysite&path=/site/website
Response
Status 200 OK
1[
2 {
3 "name":"/component/level-descriptor",
4 "label":"Section Defaults",
5 "form":"/component/level-descriptor",
6 "formPath":"simple",
7 "type":"component",
8 "contentAsFolder":false,
9 "useRoundedFolder":false,
10 "modelInstancePath":"NOT-USED-BY-SIMPLE-FORM-ENGINE",
11 "allowedRoles":[ ],
12 "lastUpdated":"2017-07-07T20:51:22+02:00",
13 "copyDepedencyPattern":[ ],
14 "imageThumbnail":"section-defaults.png",
15 "noThumbnail":false,
16 "pathIncludes":
17 [
18 "^/site/website/.*"
19 ],
20 "pathExcludes":[ ],
21 "nodeRef":null,
22 "deleteDependencyPattern":[ ],
23 "previewable":false
24 },
25 {
26 "name":"/page/category-landing",
27 "label":"Page - Category Landing",
28 "form":"/page/category-landing",
29 "formPath":"simple",
30 "type":"page",
31 "contentAsFolder":true,
32 "useRoundedFolder":false,
33 "modelInstancePath":"NOT-USED-BY-SIMPLE-FORM-ENGINE",
34 "allowedRoles":[ ],
35 "lastUpdated":"2017-07-07T20:51:22+02:00",
36 "copyDepedencyPattern":[ ],
37 "imageThumbnail":"page-category-landing.png",
38 "noThumbnail":false,
39 "pathIncludes":
40 [
41 "^/site/website/(?!articles/)(.*)"
42 ],
43 "pathExcludes":[ ],
44 "nodeRef":null,
45 "deleteDependencyPattern":[ ],
46 "previewable":true
47 }
48]
Responses
Status
|
Location
|
Response Body
|
---|---|---|
200
|
See example above.
|