GET api/Projects?Activerecordsonly={Activerecordsonly}&Withlocations={Withlocations}
Token sahibi kullanıcının yetkili olduğu projeleri aktiflik durumuna göre listeler.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Activerecordsonly |
Sadece aktif durumda olan kayıtların getirilip getirilmeyeceğini belirler. True gönderilirse sadece aktif kayıtlar, False gönderilirse tüm kayıtlar listelenir. Varsayılan değer True'dur. |
boolean |
Default value is True |
| Withlocations |
Projeye bağlı lokasyonlar listelensin isteniyorsa bu paramtere true olarak gönderilmelidir. Varsayılan değer False'tur. |
boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
Belirtilen kriterlere uygun proje listesini döner.
Collection of Project| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Projenin sistemdeki benzersiz kimlik (ID) numarası. |
integer |
None. |
| Integrationcode |
Projenin entegrasyon kodudur 3.parti yazılımlar veya sistemlerle entegrasyon için kullanılan alandır. |
string |
String length: inclusive between 0 and 20 |
| Name |
Projenin adı veya tanımı. Bu alan, projenin ne olduğunu veya ne amaçla kullanıldığını açıklamak için kullanılır. |
string |
String length: inclusive between 0 and 100 |
| Active |
Projenin aktiflik durumu. 1 ise aktif, 0 ise pasiftir. |
integer |
None. |
| Locations |
Projeye ait lokasyonların listesi. Bu alan, hangi lokasyonların bu projeye dahil olduğunu belirtmek için kullanılır. Her bir lokasyon, Location sınıfının bir örneği olarak temsil edilir. |
Collection of Location |
None. |
Response Formats
application/json, text/json
[
{
"Id": 1,
"Integrationcode": "sample string 2",
"Name": "sample string 3",
"Active": 4,
"Locations": [
{
"Id": 1,
"Integrationcode": "sample string 2",
"Name": "sample string 3",
"Zone": "sample string 4",
"Active": 5
},
{
"Id": 1,
"Integrationcode": "sample string 2",
"Name": "sample string 3",
"Zone": "sample string 4",
"Active": 5
}
]
},
{
"Id": 1,
"Integrationcode": "sample string 2",
"Name": "sample string 3",
"Active": 4,
"Locations": [
{
"Id": 1,
"Integrationcode": "sample string 2",
"Name": "sample string 3",
"Zone": "sample string 4",
"Active": 5
},
{
"Id": 1,
"Integrationcode": "sample string 2",
"Name": "sample string 3",
"Zone": "sample string 4",
"Active": 5
}
]
}
]
application/xml, text/xml
<ArrayOfProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IntegroV6API">
<Project>
<Active>4</Active>
<Id>1</Id>
<Integrationcode>sample string 2</Integrationcode>
<Locations>
<Location>
<Active>5</Active>
<Id>1</Id>
<Integrationcode>sample string 2</Integrationcode>
<Name>sample string 3</Name>
<Zone>sample string 4</Zone>
</Location>
<Location>
<Active>5</Active>
<Id>1</Id>
<Integrationcode>sample string 2</Integrationcode>
<Name>sample string 3</Name>
<Zone>sample string 4</Zone>
</Location>
</Locations>
<Name>sample string 3</Name>
</Project>
<Project>
<Active>4</Active>
<Id>1</Id>
<Integrationcode>sample string 2</Integrationcode>
<Locations>
<Location>
<Active>5</Active>
<Id>1</Id>
<Integrationcode>sample string 2</Integrationcode>
<Name>sample string 3</Name>
<Zone>sample string 4</Zone>
</Location>
<Location>
<Active>5</Active>
<Id>1</Id>
<Integrationcode>sample string 2</Integrationcode>
<Name>sample string 3</Name>
<Zone>sample string 4</Zone>
</Location>
</Locations>
<Name>sample string 3</Name>
</Project>
</ArrayOfProject>