Rename endpoints (#42)
Closes #39 Reviewed-on: #42
This commit was merged in pull request #42.
This commit is contained in:
@@ -13,12 +13,12 @@ type UserWithAllowance struct {
|
||||
Allowance int `json:"allowance"`
|
||||
}
|
||||
|
||||
type Allowance struct {
|
||||
type History struct {
|
||||
Allowance int `json:"allowance"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
}
|
||||
|
||||
type PostAllowance struct {
|
||||
type PostHistory struct {
|
||||
Allowance int `json:"allowance"`
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ type Task struct {
|
||||
Assigned *int `json:"assigned"` // Pointer to allow null
|
||||
}
|
||||
|
||||
type Goal struct {
|
||||
type Allowance struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Target int `json:"target"`
|
||||
@@ -38,7 +38,7 @@ type Goal struct {
|
||||
Weight int `json:"weight"`
|
||||
}
|
||||
|
||||
type CreateGoalRequest struct {
|
||||
type CreateAllowanceRequest struct {
|
||||
Name string `json:"name"`
|
||||
Target int `json:"target"`
|
||||
Weight int `json:"weight"`
|
||||
|
||||
Reference in New Issue
Block a user