diff --git a/backend/openapi.html b/backend/openapi.html deleted file mode 100644 index bb77d6f..0000000 --- a/backend/openapi.html +++ /dev/null @@ -1,480 +0,0 @@ - - - -
- -Download OpenAPI specification:Download
The pronouns.cc REST API
-Get a user object. Accepts either ID or username.
-userRef required | string A user reference, either an ID or a username. -IDs are always prioritized, if a user's username is the same as another user's ID, the user with that ID is returned. - |
{- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "member_title": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "value": "string",
- "status": "string"
}
], - "members": [
- {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
]
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}
}
Get the user object associated with the provided token.
-{- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "member_title": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "value": "string",
- "status": "string"
}
], - "members": [
- {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
]
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}, - "max_invites": 0,
- "is_admin": true,
- "list_private": true,
- "discord": "string",
- "discord_username": "string",
- "tumblr": "string",
- "tumblr_username": "string",
- "google": "string",
- "google_username": "string",
- "fediverse": "string",
- "fediverse_username": "string",
- "fediverse_instance": "string"
}
Update the current user.
-name | string [ 2 .. 40 ] characters The user's username, a unique string that identifies them in URLs. - |
display_name | string [ 1 .. 100 ] characters The user's display name. - |
bio | string [ 1 .. 1000 ] characters The user's bio/description. - |
member_title | string Optional text used for the "Members" heading on the user's profile page. - |
avatar | string A hash of the user's avatar, if set. -When editing, a base64-encoded PNG, JPEG, GIF, or WebP image file. - |
links | Array of strings Links the user has added to their profile. - |
Array of objects (Root Type for FieldEntry) The user's preferred names. - | |
Array of objects (Root Type for FieldEntry) The user's preferred pronouns. - | |
Array of objects (Field) | |
object (CustomPreferences) A user's custom preferences. - | |
list_private | boolean Whether your member list is private. - |
{- "name": "string",
- "display_name": "string",
- "bio": "string",
- "member_title": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "value": "string",
- "status": "string"
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}, - "list_private": true
}
{- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "member_title": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "value": "string",
- "status": "string"
}
], - "members": [
- {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
]
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}, - "max_invites": 0,
- "is_admin": true,
- "list_private": true,
- "discord": "string",
- "discord_username": "string",
- "tumblr": "string",
- "tumblr_username": "string",
- "google": "string",
- "google_username": "string",
- "fediverse": "string",
- "fediverse_username": "string",
- "fediverse_instance": "string"
}
userRef required | string A user ID, username, or |
[- {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
]
}
]
name | string The member's unique (per-user) name, used to identify them in URLs. Case insensitive. - |
display_name | string The member's display name. - |
bio | string The member's bio/description. - |
avatar | string A hash of the member's avatar, if set. -When editing, a base64-encoded PNG, JPEG, GIF, or WebP image file. - |
links | Array of strings The member's profile links. - |
Array of objects (Root Type for FieldEntry) The member's preferred names. - | |
Array of objects (PronounEntry) The member's preferred pronouns. - | |
Array of objects (Field) The member's custom label fields. - | |
object (Root Type for PartialUser) A partial user object as returned from a member endpoint. - |
{- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "user": {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "avatar": "string",
- "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}
}
}
{- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "user": {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "avatar": "string",
- "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}
}
}
{- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "user": {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "avatar": "string",
- "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}
}
}
memberRef required | string The member's unique ID. - |
name | string The member's unique (per-user) name, used to identify them in URLs. Case insensitive. - |
display_name | string The member's display name. - |
bio | string The member's bio/description. - |
avatar | string A hash of the member's avatar, if set. -When editing, a base64-encoded PNG, JPEG, GIF, or WebP image file. - |
links | Array of strings The member's profile links. - |
Array of objects (Root Type for FieldEntry) The member's preferred names. - | |
Array of objects (PronounEntry) The member's preferred pronouns. - | |
Array of objects (Field) The member's custom label fields. - | |
object (Root Type for PartialUser) A partial user object as returned from a member endpoint. - |
{- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "user": {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "avatar": "string",
- "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}
}
}
{- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "user": {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "avatar": "string",
- "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}
}
}
userRef required | string A user ID, username, or |
memberRef required | string A member ID or name. - |
{- "id": "string",
- "name": "string",
- "display_name": "string",
- "bio": "string",
- "avatar": "string",
- "links": [
- "string"
], - "names": [
- {
- "value": "string",
- "status": "string"
}
], - "pronouns": [
- {
- "pronouns": "string",
- "display_text": "string",
- "status": "string"
}
], - "fields": [
- {
- "name": "string",
- "entries": [
- {
- "value": "string",
- "status": "string"
}
]
}
], - "user": {
- "id": "string",
- "name": "string",
- "display_name": "string",
- "avatar": "string",
- "custom_preferences": {
- "property1": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}, - "property2": {
- "icon": "string",
- "tooltip": "string",
- "size": "large",
- "muted": true,
- "favourite": true
}
}
}
}
{- "git_commit": "130a199",
- "users": {
- "total": 3985,
- "active_month": 3985,
- "active_week": 1327,
- "active_day": 276
}, - "members": 11462,
- "require_invite": false
}