This repository has been archived by the owner on Feb 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Routes Account needed
Michael edited this page Jan 10, 2019
·
3 revisions
This page contains all the routes available to regular users that require authentication.
NOTE: Authentication is done by having an
Authentication
header with a valid token, or with aAuthentication
cookie with a valid token.
Incorrect information will return a403 FORBIDDEN
Method | Route | Action | Returns | Expected Data |
---|---|---|---|---|
POST | /api/v1/mods | Uploads and registers a mod |
200 OK - The mod has been registered and data has been returned400 BAD REQUEST - The mod had no file zipfle multipart content400 BAD REQUEST - POST request was missing a parameter, see reponse for more information |
file
|
PATCH | /api/v1/mods/ | Edits a mod |
200 OK - The mod has been edited and data has been returned400 BAD REQUEST - The mod had no file zipfle multipart content404 NOT FOUND - A mod with id mod_id was not found on the server |
file
|
POST | /api/v1/mods//reviews | Create a review |
200 OK - A review was placed400 BAD REQUEST - A POST parameter was missing from the request body404 NOT FOUND - A mod with id mod_id was not found on the server |
|