MCPcopy Create free account
hub / github.com/LeChatErrant/API-template / getUser

Method getUser

src/appRequester.ts:69–75  ·  view source on GitHub ↗
(userId: string, statusCodeExpected = httpStatus.OK)

Source from the content-addressed store, hash-verified

67 }
68
69 async getUser(userId: string, statusCodeExpected = httpStatus.OK) {
70 const { body } = await this.request
71 .get(`/users/${userId}`)
72 .expect(statusCodeExpected);
73
74 return body;
75 }
76
77 async updateUser(userId: string, payload: any, statusCodeExpected = httpStatus.OK) {
78 const { body } = await this.request

Callers 2

userRoutes.tsFile · 0.80
user.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected