GET api/Project/GetProjectsById/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ProjectListName | Description | Type | Additional information |
---|---|---|---|
ProjectID | integer |
Required |
|
ProjectName | string |
Required |
|
ProjectNr | string |
Required |
|
InsertedDate | string |
Required |
|
OwnReports | Collection of ReportDescriptionViewModel |
None. |
|
OtherReports | Collection of ReportDescriptionViewModel |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ProjectID": 1, "ProjectName": "sample string 2", "ProjectNr": "sample string 3", "InsertedDate": "sample string 4", "OwnReports": [ { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 }, { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 } ], "OtherReports": [ { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 }, { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 } ] }, { "ProjectID": 1, "ProjectName": "sample string 2", "ProjectNr": "sample string 3", "InsertedDate": "sample string 4", "OwnReports": [ { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 }, { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 } ], "OtherReports": [ { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 }, { "IsFavorite": true, "ID": 2, "ProjectID": 3, "Name": "sample string 4", "Date": "2025-04-04T04:45:23.9184079+02:00", "DateString": "sample string 6", "Type": "sample string 7", "Rights": "sample string 8", "LoggedInID": 9 } ] } ]
text/plain
Sample:
[{"ProjectID":1,"ProjectName":"sample string 2","ProjectNr":"sample string 3","InsertedDate":"sample string 4","OwnReports":[{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9},{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9}],"OtherReports":[{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9},{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9}]},{"ProjectID":1,"ProjectName":"sample string 2","ProjectNr":"sample string 3","InsertedDate":"sample string 4","OwnReports":[{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9},{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9}],"OtherReports":[{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9},{"IsFavorite":true,"ID":2,"ProjectID":3,"Name":"sample string 4","Date":"2025-04-04T04:45:23.9184079+02:00","DateString":"sample string 6","Type":"sample string 7","Rights":"sample string 8","LoggedInID":9}]}]
application/xml, text/xml
Sample:
<ArrayOfProjectList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rtr.Entities.Model"> <ProjectList> <InsertedDate>sample string 4</InsertedDate> <OtherReports> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> </OtherReports> <OwnReports> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> </OwnReports> <ProjectID>1</ProjectID> <ProjectName>sample string 2</ProjectName> <ProjectNr>sample string 3</ProjectNr> </ProjectList> <ProjectList> <InsertedDate>sample string 4</InsertedDate> <OtherReports> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> </OtherReports> <OwnReports> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> <ReportDescriptionViewModel> <Date>2025-04-04T04:45:23.9184079+02:00</Date> <DateString>sample string 6</DateString> <ID>2</ID> <IsFavorite>true</IsFavorite> <LoggedInID>9</LoggedInID> <Name>sample string 4</Name> <ProjectID>3</ProjectID> <Rights>sample string 8</Rights> <Type>sample string 7</Type> </ReportDescriptionViewModel> </OwnReports> <ProjectID>1</ProjectID> <ProjectName>sample string 2</ProjectName> <ProjectNr>sample string 3</ProjectNr> </ProjectList> </ArrayOfProjectList>