...
Retrieve a service request
Description
This method is used to retrieve service requests 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/users/{id}/servicerequests
Returns
200 - Ok
Example
Code Block |
---|
using MTOA.BLL.Interfaces;
int MyServiceId = 123;
var serviceRequest = await _serviceRequestManager.GetById<T>(MyServiceId);
|