GET api/Services/GetServiceById/{id}/{lang}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| lang | string |
Default value is en |
Body Parameters
None.
Response Information
Resource Description
ApiServiceViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceId | integer |
None. |
|
| ServiceName | string |
None. |
|
| ServiceType | string |
None. |
|
| AgencyTags | string |
None. |
|
| Description | string |
None. |
|
| RelatedSearchTerms | string |
None. |
|
| LogoUrl | string |
None. |
|
| ImageUrl | string |
None. |
|
| ServiceUrl | string |
None. |
|
| Featured | string |
None. |
|
| ContactPhone | string |
None. |
|
| ContactPhoneDisplay | string |
None. |
|
| ContactPhoneDigits | string |
None. |
|
| ContactUrl | string |
None. |
|
| AgencyName | string |
None. |
|
| Updated | date |
None. |
|
| FriendlyName | string |
None. |
|
| AgencyId | integer |
None. |
|
| Acronym | string |
None. |
|
| Keywords | string |
None. |
|
| Landing | string |
None. |
|
| ServiceNameTag | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"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",
"ContactPhoneDisplay": "sample string 12",
"ContactPhoneDigits": "sample string 13",
"ContactUrl": "sample string 14",
"AgencyName": "sample string 15",
"Updated": "2025-12-20T12:20:59.7171762+00:00",
"FriendlyName": "sample string 16",
"AgencyId": 17,
"Acronym": "sample string 18",
"Keywords": "sample string 19",
"Landing": "sample string 20",
"ServiceNameTag": "sample string 21"
}
application/xml, text/xml
Sample:
<ApiServiceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CA.GOV.AgencyProfileApi.Models"> <Acronym>sample string 18</Acronym> <AgencyId>17</AgencyId> <AgencyName>sample string 15</AgencyName> <AgencyTags>sample string 4</AgencyTags> <ContactPhone>sample string 11</ContactPhone> <ContactPhoneDigits>sample string 13</ContactPhoneDigits> <ContactPhoneDisplay>sample string 12</ContactPhoneDisplay> <ContactUrl>sample string 14</ContactUrl> <Description>sample string 5</Description> <Featured>sample string 10</Featured> <FriendlyName>sample string 16</FriendlyName> <ImageUrl>sample string 8</ImageUrl> <Keywords>sample string 19</Keywords> <Landing>sample string 20</Landing> <LogoUrl>sample string 7</LogoUrl> <RelatedSearchTerms>sample string 6</RelatedSearchTerms> <ServiceId>1</ServiceId> <ServiceName>sample string 2</ServiceName> <ServiceNameTag>sample string 21</ServiceNameTag> <ServiceType>sample string 3</ServiceType> <ServiceUrl>sample string 9</ServiceUrl> <Updated>2025-12-20T12:20:59.7171762+00:00</Updated> </ApiServiceViewModel>