GET project/getAllProjects?PageNumber={PageNumber}&PageSize={PageSize}&Token={Token}
Retrieve all project data in the system. Privilege "View" of licensed agenda "Projects" required. Data may also be restricted by record permission "View" of agenda "Projects". Paging supported
Request Information
Authorization
- Authorization by token required
Availability
- Method disabled by configuration
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
PageNumber |
Optional parameter may be omitted. All records are displayed when is omitted otherwise specific page is displayed |
integer |
Matching regular expression pattern: ([0-9]+) |
PageSize |
Optional parameter may be omitted. Define number of records in the page. |
integer |
Matching regular expression pattern: ([0-9]+) |
Token |
The action is authorized by this token. Token should generated by calling action "POST login". Expiration time of each token is 20 seconds |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Response Codes
Http Code | Error Number | Description |
---|---|---|
200 request succesfully done | 0 | Successfully done |
400 bad request | 1002 | Entry parameter missing or parameter bindigs failed |
401 unauthorized | 1000 | Token {0} not found |
401 unauthorized | 1001 | Token {0} already expired |
401 unauthorized | 1006 | Ip filter violated for ip client address [{0}] |
401 unauthorized | 1007 | Ip filter [{0}] parsing failed |
401 unauthorized | 1008 | Request rate policy violated for [{0}] |
403 server refuses to fulfill the request | 1280 | Privilege View of agenda Projects violated for [{0}] |
404 required resource does not exist on the server | 1281 | Looks up a localized string similar to Project [{0}] not found |
415 unsupported Media Type | The request entity has a media type which the server or resource does not support. Only application/json and application/xml are supported | |
500 internal error | Server exception description |
Resource Description
ProjectGetAllRespName | Description | Type | Additional information |
---|---|---|---|
Project | Collection of Project |
None. |
|
Paging | PagingResp |
None. |
Response Formats
application/json
Sample:
{"Project":[{"PlannedFrom":"2019-01-01T08:00:00","PlannedTo":"2019-02-01T08:00:00","PersonIDInCharge":"X0004","PersonIDResolver":"X0001","Code":"CODE 1001","Name":"Name of the project 1001","Type":"Name of the project Type 1001","TimeLastChange":"\/Date(1732183511616)\/"},{"PlannedFrom":"2019-01-10T08:00:00","PlannedTo":"2019-02-10T08:00:00","PersonIDInCharge":"X0002","PersonIDResolver":"X0001","Code":"CODE 1002","Name":"Name of the project 1001","Type":"Name of the project Type 1002","TimeLastChange":"\/Date(1732183511616)\/"},{"PlannedFrom":"2019-01-15T08:00:00","PlannedTo":"2019-02-15T08:00:00","PersonIDInCharge":"X0003","PersonIDResolver":"X0001","Code":"CODE 1003","Name":"Name of the project 1001","Type":"Name of the project Type 1002","TimeLastChange":"\/Date(1732183511616)\/"}],"Paging":{"CurrentPage":1,"PageSize":25,"TotalCount":3,"TotalPages":5}}
application/xml
Sample:
<Response> <Projects> <Project> <PlannedFrom>2019-01-01T08:00:00</PlannedFrom> <PlannedTo>2019-02-01T08:00:00</PlannedTo> <PersonIDInCharge>X0004</PersonIDInCharge> <PersonIDResolver>X0001</PersonIDResolver> <Code>CODE 1001</Code> <Name>Name of the project 1001</Name> <Type>Name of the project Type 1001</Type> <TimeLastChange>2024-11-21T10:05:11.6164517Z</TimeLastChange> </Project> <Project> <PlannedFrom>2019-01-10T08:00:00</PlannedFrom> <PlannedTo>2019-02-10T08:00:00</PlannedTo> <PersonIDInCharge>X0002</PersonIDInCharge> <PersonIDResolver>X0001</PersonIDResolver> <Code>CODE 1002</Code> <Name>Name of the project 1001</Name> <Type>Name of the project Type 1002</Type> <TimeLastChange>2024-11-21T10:05:11.6164517Z</TimeLastChange> </Project> <Project> <PlannedFrom>2019-01-15T08:00:00</PlannedFrom> <PlannedTo>2019-02-15T08:00:00</PlannedTo> <PersonIDInCharge>X0003</PersonIDInCharge> <PersonIDResolver>X0001</PersonIDResolver> <Code>CODE 1003</Code> <Name>Name of the project 1001</Name> <Type>Name of the project Type 1002</Type> <TimeLastChange>2024-11-21T10:05:11.6164517Z</TimeLastChange> </Project> </Projects> <Paging> <CurrentPage>1</CurrentPage> <PageSize>25</PageSize> <TotalCount>3</TotalCount> <TotalPages>5</TotalPages> </Paging> </Response>
text/json
Sample:
{ "Project": [ { "PlannedTo": "sample string 2", "PersonIDInCharge": "sample string 3", "PersonIDResolver": "sample string 4" }, { "PlannedTo": "sample string 2", "PersonIDInCharge": "sample string 3", "PersonIDResolver": "sample string 4" } ], "Paging": { "CurrentPage": 1, "PageSize": 2, "TotalCount": 3, "TotalPages": 4 } }
text/xml
Sample:
<Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Projects> <Project> <PlannedTo>sample string 2</PlannedTo> <PersonIDInCharge>sample string 3</PersonIDInCharge> <PersonIDResolver>sample string 4</PersonIDResolver> </Project> <Project> <PlannedTo>sample string 2</PlannedTo> <PersonIDInCharge>sample string 3</PersonIDInCharge> <PersonIDResolver>sample string 4</PersonIDResolver> </Project> </Projects> <Paging> <CurrentPage>1</CurrentPage> <PageSize>2</PageSize> <TotalCount>3</TotalCount> <TotalPages>4</TotalPages> </Paging> </Response>