ProJect - Get project schema
API Url
Used for loading schema model data related to project resources.
http://localhost:16010/ProMarkREST/rest/ProJect/schemas/{type}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| type | String | The schema type. "project""extra-info-values" |
Query parameters
| Field | Type | Description |
|---|---|---|
fieldsoptional | String | List of fields to return, if empty returns all fields. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| any | Object | Field name, depending on schema type (any = can be anything). It's the object containging settings for this field. |
| title | String | Field title/header. |
| type | String | The field variable type. "string""number""date""boolean""time" |
| fields | Object | Object containing the field objects. |
| id | String | The field name to use as internal id (value field). |
| objectName | String | The json object name containing the data. |
| text | String | The description to show (used for drop-down, combo-box etc.). |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"objectName": "projects","id": "id","text": "description","fields": {"id": {"type": "string","title": "ID"},"description": {"type": "string","title": "Description"},"ref1": {"type": "string","title": "Ref1"},"plannedTime": {"type": "time","title": "Planned time"}}},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |