POST api/Services/Query
Request Information
URI Parameters
None.
Body Parameters
QueryModelName | Description | Type | Additional information |
---|---|---|---|
lang | string |
None. |
|
name | string |
None. |
|
agencyTypeIds | Collection of integer |
None. |
|
agencyTagIds | Collection of integer |
None. |
|
page | integer |
None. |
|
pageSize | integer |
None. |
|
sortDirection | SortDirection |
None. |
Request Formats
application/json, text/json
Sample:
{ "lang": "sample string 1", "name": "sample string 2", "agencyTypeIds": [ 1, 2 ], "agencyTagIds": [ 1, 2 ], "page": 1, "pageSize": 1, "sortDirection": 0 }
application/xml, text/xml
Sample:
<QueryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CA.GOV.AgencyProfileApi.Models"> <agencyTagIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </agencyTagIds> <agencyTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </agencyTypeIds> <lang>sample string 1</lang> <name>sample string 2</name> <page>1</page> <pageSize>1</pageSize> <sortDirection>Ascending</sortDirection> </QueryModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServiceQueryResultModelName | Description | Type | Additional information |
---|---|---|---|
Results | Collection of ApiServiceViewModel |
None. |
|
Page | integer |
None. |
|
PageSize | integer |
None. |
|
SortDirection | SortDirection |
None. |
|
TotalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Results": [ { "ServiceId": 1, "ServiceName": "sample string 2", "ServiceType": "sample string 3", "AgencyTags": "sample string 4", "Description": "sample string 5", "RelatedSearchTerms": "sample string 6", "LogoUrl": "sample string 7", "ImageUrl": "sample string 8", "ServiceUrl": "sample string 9", "Featured": "sample string 10", "ContactPhone": "sample string 11", "ContactUrl": "sample string 12", "AgencyName": "sample string 13", "Updated": "2025-05-22T09:17:15.4413509+00:00", "FriendlyName": "sample string 14", "AgencyId": 15, "Acronym": "sample string 16", "Keywords": "sample string 17", "Landing": "sample string 18", "ServiceNameTag": "sample string 19" }, { "ServiceId": 1, "ServiceName": "sample string 2", "ServiceType": "sample string 3", "AgencyTags": "sample string 4", "Description": "sample string 5", "RelatedSearchTerms": "sample string 6", "LogoUrl": "sample string 7", "ImageUrl": "sample string 8", "ServiceUrl": "sample string 9", "Featured": "sample string 10", "ContactPhone": "sample string 11", "ContactUrl": "sample string 12", "AgencyName": "sample string 13", "Updated": "2025-05-22T09:17:15.4413509+00:00", "FriendlyName": "sample string 14", "AgencyId": 15, "Acronym": "sample string 16", "Keywords": "sample string 17", "Landing": "sample string 18", "ServiceNameTag": "sample string 19" } ], "Page": 1, "PageSize": 1, "SortDirection": 0, "TotalCount": 1 }
application/xml, text/xml
Sample:
<ServiceQueryResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CA.GOV.AgencyProfileApi.Models"> <Page>1</Page> <PageSize>1</PageSize> <Results> <ApiServiceViewModel> <Acronym>sample string 16</Acronym> <AgencyId>15</AgencyId> <AgencyName>sample string 13</AgencyName> <AgencyTags>sample string 4</AgencyTags> <ContactPhone>sample string 11</ContactPhone> <ContactUrl>sample string 12</ContactUrl> <Description>sample string 5</Description> <Featured>sample string 10</Featured> <FriendlyName>sample string 14</FriendlyName> <ImageUrl>sample string 8</ImageUrl> <Keywords>sample string 17</Keywords> <Landing>sample string 18</Landing> <LogoUrl>sample string 7</LogoUrl> <RelatedSearchTerms>sample string 6</RelatedSearchTerms> <ServiceId>1</ServiceId> <ServiceName>sample string 2</ServiceName> <ServiceNameTag>sample string 19</ServiceNameTag> <ServiceType>sample string 3</ServiceType> <ServiceUrl>sample string 9</ServiceUrl> <Updated>2025-05-22T09:17:15.4413509+00:00</Updated> </ApiServiceViewModel> <ApiServiceViewModel> <Acronym>sample string 16</Acronym> <AgencyId>15</AgencyId> <AgencyName>sample string 13</AgencyName> <AgencyTags>sample string 4</AgencyTags> <ContactPhone>sample string 11</ContactPhone> <ContactUrl>sample string 12</ContactUrl> <Description>sample string 5</Description> <Featured>sample string 10</Featured> <FriendlyName>sample string 14</FriendlyName> <ImageUrl>sample string 8</ImageUrl> <Keywords>sample string 17</Keywords> <Landing>sample string 18</Landing> <LogoUrl>sample string 7</LogoUrl> <RelatedSearchTerms>sample string 6</RelatedSearchTerms> <ServiceId>1</ServiceId> <ServiceName>sample string 2</ServiceName> <ServiceNameTag>sample string 19</ServiceNameTag> <ServiceType>sample string 3</ServiceType> <ServiceUrl>sample string 9</ServiceUrl> <Updated>2025-05-22T09:17:15.4413509+00:00</Updated> </ApiServiceViewModel> </Results> <SortDirection>Ascending</SortDirection> <TotalCount>1</TotalCount> </ServiceQueryResultModel>