Rename endpoints in OpenAPI
This commit is contained in:
parent
790ee3c622
commit
f210e7b4e6
@ -59,7 +59,7 @@ paths:
|
||||
404:
|
||||
description: The users could not be found.
|
||||
|
||||
/user/{userId}/allowance:
|
||||
/user/{userId}/history:
|
||||
get:
|
||||
summary: Gets the allowance history of a user
|
||||
parameters:
|
||||
@ -114,7 +114,7 @@ paths:
|
||||
400:
|
||||
description: The allowance could not be updated.
|
||||
|
||||
/user/{userId}/goals:
|
||||
/user/{userId}/allowance:
|
||||
get:
|
||||
summary: Gets all goals
|
||||
parameters:
|
||||
@ -201,7 +201,7 @@ paths:
|
||||
404:
|
||||
description: The goals could not be found.
|
||||
|
||||
/user/{userId}/goal/{goalId}:
|
||||
/user/{userId}/allowance/{goalId}:
|
||||
get:
|
||||
summary: Gets information about a goal
|
||||
parameters:
|
||||
@ -284,7 +284,7 @@ paths:
|
||||
404:
|
||||
description: The goal could not be found.
|
||||
|
||||
/user/{userId}/goal/{goalId}/complete:
|
||||
/user/{userId}/allowance/{goalId}/complete:
|
||||
post:
|
||||
summary: Completes a goal.
|
||||
description: Completes a goal. This will subtract this goal's value from the user's allowance and then remove the goal.
|
||||
|
Loading…
x
Reference in New Issue
Block a user