Skip to content

Commit 5d54be5

Browse files
committed
Api Platform Post should not have ID
1 parent cfdcbf2 commit 5d54be5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/__snapshots__/TypeScriptGeneratorTest__testApiPlatformWithNewApiResource__1.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export const apiHubUsersGet = (filters: any | null = null): Promise<CollectionRe
4444
.then((response) => response.data);
4545
}
4646

47+
export const apiHubUsersPost = (body: HubUserCreateInput): Promise<HubUserOutput> => {
48+
return axios
49+
.post<HubUserOutput>(`/api/hub_users`, body)
50+
.then((response) => response.data);
51+
}
52+
4753
export const apiHubUsersIdPut = (id: string, body: HubUserUpdateInput): Promise<HubUserOutput> => {
4854
return axios
4955
.put<HubUserOutput>(`/api/hub_users/${id}`, body)
@@ -62,12 +68,6 @@ export const apiHubUsersIdDelete = (id: string): Promise<HubUserOutput> => {
6268
.then((response) => response.data);
6369
}
6470

65-
export const apiHubUsersIdPost = (id: string, body: HubUserCreateInput): Promise<HubUserOutput> => {
66-
return axios
67-
.post<HubUserOutput>(`/api/hub_users/${id}`, body)
68-
.then((response) => response.data);
69-
}
70-
7171
export const apiHubUsersIdUpdateBranchContextPut = (id: string, body: BranchContextUpdateInput): Promise<HubUserOutput> => {
7272
return axios
7373
.put<HubUserOutput>(`/api/hub_users/${id}/update_branch_context`, body)

0 commit comments

Comments
 (0)