POST api/P1QueryDefinition/GetQueriesByName
Get saved query list based on name
Request Information
URI Parameters
None.
Body Parameters
QueryNameExistsBinder| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| QueryName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"QueryName": "sample string 2"
}
application/xml, text/xml
Sample:
<QueryNameExistsBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <ProjectId>1</ProjectId> <QueryName>sample string 2</QueryName> </QueryNameExistsBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get saved query list based on name
API_Data_IEnumerableOfNameIdPair| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
|
| Data | Collection of NameIdPair |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
"Data": [
{
"Id": 1,
"Name": "sample string 2"
},
{
"Id": 1,
"Name": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<API_Data_ArrayOfNameIdPair xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Data>
<NameIdPair>
<Id>1</Id>
<Name>sample string 2</Name>
</NameIdPair>
<NameIdPair>
<Id>1</Id>
<Name>sample string 2</Name>
</NameIdPair>
</Data>
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</API_Data_ArrayOfNameIdPair>