api: adjust a couple of URIs

adjusted some things, likke changing /newUser to /user/invite.
This commit is contained in:
Harvey Tindall
2024-08-21 20:35:08 +01:00
parent 2057823b7a
commit 7c808b56f7
11 changed files with 57 additions and 38 deletions
+5 -2
View File
@@ -88,6 +88,10 @@ type getProfilesDTO struct {
DefaultProfile string `json:"default_profile"`
}
type getProfileNamesDTO struct {
Profiles []string `json:"profiles"` // List of profiles (name only)
}
type profileChangeDTO struct {
Name string `json:"name" example:"DefaultProfile" binding:"required"` // Name of the profile
}
@@ -123,8 +127,7 @@ type inviteDTO struct {
}
type getInvitesDTO struct {
Profiles []string `json:"profiles"` // List of profiles (name only)
Invites []inviteDTO `json:"invites"` // List of invites
Invites []inviteDTO `json:"invites"` // List of invites
}
// fake DTO, if i actually used this the code would be a lot longer