Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 | 1x 1x 1x 2x | import ApiRoutes from "./api.routes"; import ApiBlock from "./apiblock.config"; export default class ApiRequiriments { static listEvent = (): ApiBlock => { return { url: ApiRoutes.apiEvents(), method: 'get', headers: undefined, body: undefined } }; static createEvent = (body: any): ApiBlock => { return { url: ApiRoutes.apiEvents(), method: 'post', headers: undefined, body } }; static detailEvent = (identifier: string): ApiBlock => { return { url: ApiRoutes.apiEventWith(identifier), method: 'get', headers: undefined, body: undefined } }; static deleteEvent = (identifier: string): ApiBlock => { return { url: ApiRoutes.apiEventWith(identifier), method: 'delete', headers: undefined, body: undefined } }; } |