Skip to content

Commit

Permalink
created postServiceRequest function interface
Browse files Browse the repository at this point in the history
  • Loading branch information
emmahuangg committed Oct 20, 2023
1 parent 6e9ce9f commit 1112594
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/typescript/services/interfaces/serviceRequest.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import { CreateServiceRequestDTO, ServiceRequestDTO } from "../../types";

interface IServiceRequest {
// get method here

// post method here
/**
* Create a serviceRequest
* @param serviceRequest the serviceRequest to be created
* @returns a ServiceRequestDTO with the created serviceRequest's information
* @throws Error if serviceRequest creation fails
*/
postServiceRequest(serviceRequest: CreateServiceRequestDTO): Promise<ServiceRequestDTO>;

/**
* Delete a serviceRequest by id
Expand Down

0 comments on commit 1112594

Please sign in to comment.