Closed whit-colm closed 8 months ago
Testing badge colours:
/url/
/url/
/url/
/url/
/url/
/url/
/url/
fields that expect base64 will use a color coded logo
Reworked GET /objs/uid/
-> GET /objs/profile/
; which also includes a few more fields if useful.
As of 19:07:49 EST, api version askhole.api.dotfile.sh/v0alpha0
is complete. Awaiting peer review.
An outline of all endpoints which need to be made. These will be documented on the wiki with expected requests and responses.
Notes:
Current API version is
askhole.api.dotfile.sh/v0alpha0
, this won't be used in code, but in documentation it helps keep track of what's been updated when.User classes
Permissions are broken into 3 levels; calls may return different information depending on the permission level of the authorization barer token.
Common Objects
Common objects aren't ever exposed themselves, but are used frequently enough throughout the documentation as to necessitate a definitive source in documentation
author
message
report
Object Endpoints
Objects aren't meant to be shown to the user directly, but are necessary to consume in other views. All objects will have a prefix
/objs/
./objs/profile/
/objs/tags/
/objs/tags/new/
/objs/tags/{tag}/
{tag}
;/objs/reporttags/
User Endpoints
User endpoints are the primary way to get information which should be displayed directly to the user.
/reports/
/reports/new/
/report/{reportID}/
{reportID}
;/report/{reportID}/hide/
{reportID}
;/threads/
/threads/new/
/thread/{threadID}/
{threadID}
;/thread/{threadID}/award/
threadID
only): add author award to message in thread;/thread/{threadID}/new/
{threadID}
;/thread/{threadID}/{msgID}/vote/
{msgID}
in thread with UUID{threadID}
;