POST api/projects/all
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Project| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Title | string |
None. |
|
| Description | string |
None. |
|
| ProjectImages | Collection of ProjectImage |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ID": 1,
"Title": "sample string 2",
"Description": "sample string 3",
"ProjectImages": [
{
"ID": 1,
"Path": "sample string 2",
"ProjectID": 3
},
{
"ID": 1,
"Path": "sample string 2",
"ProjectID": 3
}
]
},
{
"ID": 1,
"Title": "sample string 2",
"Description": "sample string 3",
"ProjectImages": [
{
"ID": 1,
"Path": "sample string 2",
"ProjectID": 3
},
{
"ID": 1,
"Path": "sample string 2",
"ProjectID": 3
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tabreed_API.Models">
<Project>
<Description>sample string 3</Description>
<ID>1</ID>
<ProjectImages>
<ProjectImage>
<ID>1</ID>
<Path>sample string 2</Path>
<ProjectID>3</ProjectID>
</ProjectImage>
<ProjectImage>
<ID>1</ID>
<Path>sample string 2</Path>
<ProjectID>3</ProjectID>
</ProjectImage>
</ProjectImages>
<Title>sample string 2</Title>
</Project>
<Project>
<Description>sample string 3</Description>
<ID>1</ID>
<ProjectImages>
<ProjectImage>
<ID>1</ID>
<Path>sample string 2</Path>
<ProjectID>3</ProjectID>
</ProjectImage>
<ProjectImage>
<ID>1</ID>
<Path>sample string 2</Path>
<ProjectID>3</ProjectID>
</ProjectImage>
</ProjectImages>
<Title>sample string 2</Title>
</Project>
</ArrayOfProject>
multipart/form-data
Sample:
<ArrayOfProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tabreed_API.Models"><Project><Description>sample string 3</Description><ID>1</ID><ProjectImages><ProjectImage><ID>1</ID><Path>sample string 2</Path><ProjectID>3</ProjectID></ProjectImage><ProjectImage><ID>1</ID><Path>sample string 2</Path><ProjectID>3</ProjectID></ProjectImage></ProjectImages><Title>sample string 2</Title></Project><Project><Description>sample string 3</Description><ID>1</ID><ProjectImages><ProjectImage><ID>1</ID><Path>sample string 2</Path><ProjectID>3</ProjectID></ProjectImage><ProjectImage><ID>1</ID><Path>sample string 2</Path><ProjectID>3</ProjectID></ProjectImage></ProjectImages><Title>sample string 2</Title></Project></ArrayOfProject>