-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31f648c
commit db0e613
Showing
10 changed files
with
84 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Creating a new user | ||
|
||
## Path | ||
|
||
<div align="center"> | ||
|
||
`POST /auth/newuser` | ||
|
||
</div> | ||
|
||
## Request body | ||
|
||
The request body is a json object of the schema: | ||
|
||
```go | ||
type ReqPayload struct { | ||
AvatarId int `json:"avatar_id"` | ||
TierId int `json:"tier_id"` | ||
Username string `json:"username"` | ||
Mail string `json:"mail"` | ||
Passwd string `json:"pwd"` | ||
} | ||
``` | ||
|
||
The owner Id will be decoded from the token that was used and the `avatar_id` | ||
field represents a `file::id` value, so the caller probably wants to use | ||
`/file/new` before calling this endpoint. | ||
|
||
Adding an avatar is totally optional. | ||
|
||
## Response body | ||
|
||
If succesful, the server will respond with the auth token to be used in future | ||
requests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Downloading individual Files | ||
|
||
## Path | ||
|
||
<div align="center"> | ||
|
||
<img src="jwt_logo.png" height="10px"/> `GET /file/dl` | ||
|
||
</div> | ||
|
||
## Request body | ||
|
||
The request body is a json object of the schema: | ||
|
||
```go | ||
type ReqPayload struct { | ||
FileId int `json:"file_id"` | ||
} | ||
``` | ||
|
||
The owner Id will be decoded from the token that was used | ||
|
||
## Response body | ||
|
||
If succesful, the server will respond with the full file. | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters