Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Retrieve a service request

Description

This method is used to retrieve a service request by service request id.

Package Details

Interface

IServiceRequestManager

Syntax

Code Block
ServiceRequestManager.GetById<T>(int serviceRequestId) where T : IServiceRequestMetadata

Returns

Task<ServiceRequest>

API Endpoint

[GET] /api/v1/servicerequests/{id}

Returns

200 - Ok

Example

Code Block
languagec#
using MTOA.BLL.Interfaces;

int myServiceId = 123;

var serviceRequest = await _serviceRequestManager.GetById<ServiceRequest>(myServiceId);