I actually meant the structure “https://cloud.squidex.io/api/docs#operation/Schemas_GetSchemas” To be clear.
This is the current response for my “test” schema. I only need (fields=>name ,and field=> properties=>isRequired)
I can’t do it with current API ,and it can be solved if we have OData ,or GraphQL for GetSchemas.
{
"scripts": {},
"previewUrls": {},
"fields": [
{
"fieldId": 1,
"name": "prop1",
"isHidden": false,
"isLocked": false,
"isDisabled": false,
"partitioning": "invariant",
"properties": {
"isUnique": false,
"inlineEditable": false,
"editor": "Input",
"isRequired": true,
"isListField": false,
"isReferenceField": false,
"fieldType": "String"
},
"_links": {
"update": {
"href": "/api/apps/app/schemas/test/fields/1",
"method": "PUT"
},
"hide": {
"href": "/api/apps/app/schemas/test/fields/1/hide",
"method": "PUT"
},
"disable": {
"href": "/api/apps/app/schemas/test/fields/1/disable",
"method": "PUT"
},
"lock": {
"href": "/api/apps/app/schemas/test/fields/1/lock",
"method": "PUT"
},
"delete": {
"href": "/api/apps/app/schemas/test/fields/1",
"method": "DELETE"
}
}
},
{
"fieldId": 2,
"name": "prop2",
"isHidden": false,
"isLocked": false,
"isDisabled": false,
"partitioning": "invariant",
"properties": {
"isUnique": false,
"inlineEditable": false,
"editor": "Input",
"isRequired": false,
"isListField": false,
"isReferenceField": false,
"fieldType": "String"
},
"_links": {
"update": {
"href": "/api/apps/app/schemas/test/fields/2",
"method": "PUT"
},
"hide": {
"href": "/api/apps/app/schemas/test/fields/2/hide",
"method": "PUT"
},
"disable": {
"href": "/api/apps/app/schemas/test/fields/2/disable",
"method": "PUT"
},
"lock": {
"href": "/api/apps/app/schemas/test/fields/2/lock",
"method": "PUT"
},
"delete": {
"href": "/api/apps/app/schemas/test/fields/2",
"method": "DELETE"
}
}
},
{
"fieldId": 3,
"name": "propdae",
"isHidden": false,
"isLocked": false,
"isDisabled": false,
"partitioning": "invariant",
"properties": {
"editor": "DateTime",
"isRequired": false,
"isListField": false,
"isReferenceField": false,
"fieldType": "DateTime"
},
"_links": {
"update": {
"href": "/api/apps/app/schemas/test/fields/3",
"method": "PUT"
},
"hide": {
"href": "/api/apps/app/schemas/test/fields/3/hide",
"method": "PUT"
},
"disable": {
"href": "/api/apps/app/schemas/test/fields/3/disable",
"method": "PUT"
},
"lock": {
"href": "/api/apps/app/schemas/test/fields/3/lock",
"method": "PUT"
},
"delete": {
"href": "/api/apps/app/schemas/test/fields/3",
"method": "DELETE"
}
}
}
],
"id": "95d39c7e-4c3d-43cc-8270-f543d1fb410a",
"name": "test",
"properties": {},
"isSingleton": false,
"isPublished": true,
"createdBy": "subject:5d96248caa09684d50ad9ddd",
"lastModifiedBy": "subject:5d96248caa09684d50ad9ddd",
"created": "2019-10-03T16:42:52Z",
"lastModified": "2019-10-03T17:00:52Z",
"version": 5,
"_links": {
"self": {
"href": "/api/apps/app/schemas/test",
"method": "GET"
},
"contents": {
"href": "/api/content/app/test",
"method": "GET"
},
"unpublish": {
"href": "/api/apps/app/schemas/test/unpublish",
"method": "PUT"
},
"fields/order": {
"href": "/api/apps/app/schemas/test/fields/ordering",
"method": "PUT"
},
"update": {
"href": "/api/apps/app/schemas/test",
"method": "PUT"
},
"update/category": {
"href": "/api/apps/app/schemas/test/category",
"method": "PUT"
},
"update/sync": {
"href": "/api/apps/app/schemas/test/sync",
"method": "PUT"
},
"update/urls": {
"href": "/api/apps/app/schemas/test/preview-urls",
"method": "PUT"
},
"fields/add": {
"href": "/api/apps/app/schemas/test/fields",
"method": "POST"
},
"update/scripts": {
"href": "/api/apps/app/schemas/test/scripts",
"method": "PUT"
},
"delete": {
"href": "/api/apps/app/schemas/test",
"method": "DELETE"
}
}
}