gpaste/api/json.go

29 lines
593 B
Go
Raw Normal View History

2022-01-20 16:50:56 +00:00
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 {
2022-01-24 18:15:43 +00:00
Message string `json:"message"`
Files []ResponseAPIFilePostFiles `json:"files"`
}
type ResponseAPIFilePostFiles struct {
ID string `json:"id"`
URL string `json:"url"`
2022-01-20 16:50:56 +00:00
}
2022-01-21 13:11:47 +00:00
type ResponseAPIUserList struct {
Usernames []string `json:"usernames"`
}