GET api/Tickets/GetServicesForNewTicket?ticketType={ticketType}

Gets a list of available Services to which the user can submit a Ticket.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ticketType

TicketTypeEnum

Required

Body Parameters

None.

Response Information

Resource Description

GetServicesListResult
NameDescriptionTypeAdditional information
Services

Collection of ServiceItem

None.

Response Formats

application/json, text/json

Sample:
{
  "Services": [
    {
      "Id": 2,
      "Name": "IT Support",
      "Description": "Everything else",
      "Department": {
        "Id": 1,
        "Name": "Company ltd.",
        "Description": null
      }
    },
    {
      "Id": 3,
      "Name": "Supply material",
      "Description": "Toners, cartridges, papers, pencils, ....",
      "Department": {
        "Id": 1,
        "Name": "Company ltd.",
        "Description": null
      }
    }
  ]
}

application/xml, text/xml

Sample:
<GetServicesListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <Services>
    <GetServicesListResult.ServiceItem>
      <Department>
        <Description i:nil="true" />
        <Id>1</Id>
        <Name>Company ltd.</Name>
      </Department>
      <Description>Everything else</Description>
      <Id>2</Id>
      <Name>IT Support</Name>
    </GetServicesListResult.ServiceItem>
    <GetServicesListResult.ServiceItem>
      <Department>
        <Description i:nil="true" />
        <Id>1</Id>
        <Name>Company ltd.</Name>
      </Department>
      <Description>Toners, cartridges, papers, pencils, ....</Description>
      <Id>3</Id>
      <Name>Supply material</Name>
    </GetServicesListResult.ServiceItem>
  </Services>
</GetServicesListResult>