API docs
This page documents the API endpoints available on this domain. The following endpoints exist:
Endpoint | Description |
---|---|
/api/pronouns | Read/update my preferred pronouns. |
/api/gender | Read/update my current gender. |
Pronouns
Path: /api/pronouns
or /pronouns
This endpoint allows unauthenticated users to fetch my current preferred pronouns using a GET request. Authenticated users can alter the value of the preferred pronouns using a POST request with basic authorization.
Allowed methods
The following methods are allowed on this endpoint:
Method | Description | Auth |
---|---|---|
POST | Modify the currently preferred pronouns. | Basic |
GET | Get the currently preferred pronouns. | - |
Usage example
The following example demonstrates how to request the current pronouns from the command line using curl
.
curl -L riley.lgbt/pronouns
they/them
Gender
Path: /api/gender
or /gender
This endpoint allows unauthenticated users to fetch my current gender, and allows authenticated users to update the current gender value.
Allowed methods
The following methods are allowed on this endpoint:
Method | Description | Auth |
---|---|---|
POST | Modify the current gender. | Basic |
GET | Get the current gender. | - |
Usage example
The following example demonstrates how to request the current gender using the command line tool curl
.
curl -L riley.lgbt/gender
disaster