gpaste/api/json.go

30 lines
594 B
Go
Raw Permalink 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"`
}
2022-01-27 10:36:16 +00:00
2022-01-20 16:50:56 +00:00
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"`
}