gpaste/api/json.go
Torjus Håkestad db41f565ca
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add list to api
2022-01-21 14:11:47 +01:00

25 lines
488 B
Go

package api
type RequestAPIUserCreate struct {
Username string `json:"username"`
Password string `json:"password"`
}
type RequestAPILogin struct {
Username string `json:"username"`
Password string `json:"password"`
}
type ResponseAPILogin struct {
Token string `json:"token"`
}
type ResponseAPIFilePost struct {
Message string `json:"message"`
ID string `json:"id"`
URL string `json:"url"`
}
type ResponseAPIUserList struct {
Usernames []string `json:"usernames"`
}