mirror of https://github.com/zulip/zulip.git
api docs: Improve headings and organization for endpoints.
Mostly, this is a change in ordering to make more sense, but we also fix several names that were clearly confusing. We restore the convention that each endpoint has the same title at the top of the page as what we have in the sidebar menu, which appears to have been violated in many recent updates to API documentation.
This commit is contained in:
parent
9173f32a10
commit
bfc30e4214
|
@ -1,4 +1,4 @@
|
||||||
# Create linkifiers
|
# Add a linkifier
|
||||||
|
|
||||||
{generate_api_description(/realm/filters:post)}
|
{generate_api_description(/realm/filters:post)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Create User Group
|
# Create a user group
|
||||||
|
|
||||||
{generate_api_description(/user_groups/create:post)}
|
{generate_api_description(/user_groups/create:post)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Delete a queue
|
# Delete an event queue
|
||||||
|
|
||||||
{generate_api_description(/events:delete)}
|
{generate_api_description(/events:delete)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Delete stream
|
# Delete a stream
|
||||||
|
|
||||||
{generate_api_description(/streams/{stream_id}:delete)}
|
{generate_api_description(/streams/{stream_id}:delete)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# List linkifiers
|
# Get linkifiers
|
||||||
|
|
||||||
{generate_api_description(/realm/filters:get)}
|
{generate_api_description(/realm/filters:get)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Get profile
|
# Get own user
|
||||||
|
|
||||||
{generate_api_description(/users/me:get)}
|
{generate_api_description(/users/me:get)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Get a raw message
|
# Get a message's raw markdown
|
||||||
|
|
||||||
{generate_api_description(/messages/{message_id}:get)}
|
{generate_api_description(/messages/{message_id}:get)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Get global settings
|
# Get server settings
|
||||||
|
|
||||||
{generate_api_description(/server_settings:get)}
|
{generate_api_description(/server_settings:get)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Get user subscription status
|
# Get subscription status
|
||||||
|
|
||||||
{generate_api_description(/users/{user_id}/subscriptions/{stream_id}:get)}
|
{generate_api_description(/users/{user_id}/subscriptions/{stream_id}:get)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Remove linkifiers
|
# Remove a linkifier
|
||||||
|
|
||||||
{generate_api_description(/realm/filters/{filter_id}:delete)}
|
{generate_api_description(/realm/filters/{filter_id}:delete)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Add subscriptions
|
# Subscribe to a stream
|
||||||
|
|
||||||
{generate_api_description(/users/me/subscriptions:post)}
|
{generate_api_description(/users/me/subscriptions:post)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Remove subscriptions
|
# Unsubscribe from a stream
|
||||||
|
|
||||||
{generate_api_description(/users/me/subscriptions:delete)}
|
{generate_api_description(/users/me/subscriptions:delete)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Update a message's flags
|
# Update personal message flags
|
||||||
|
|
||||||
{generate_api_description(/messages/flags:post)}
|
{generate_api_description(/messages/flags:post)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Update a message
|
# Edit a message
|
||||||
|
|
||||||
{generate_api_description(/messages/{message_id}:patch)}
|
{generate_api_description(/messages/{message_id}:patch)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Update stream
|
# Update a stream
|
||||||
|
|
||||||
{generate_api_description(/streams/{stream_id}:patch)}
|
{generate_api_description(/streams/{stream_id}:patch)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Update subscription properties
|
# Update subscription settings
|
||||||
|
|
||||||
{generate_api_description(/users/me/subscriptions/properties:post)}
|
{generate_api_description(/users/me/subscriptions/properties:post)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Update User Group
|
# Update a user group
|
||||||
|
|
||||||
{generate_api_description(/user_groups/{group_id}:patch)}
|
{generate_api_description(/user_groups/{group_id}:patch)}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Update User
|
# Update a user
|
||||||
|
|
||||||
{!api-admin-only.md!}
|
{!api-admin-only.md!}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Upload a custom emoji
|
# Upload custom emoji
|
||||||
|
|
||||||
{generate_api_description(/realm/emoji/{emoji_name}:post)}
|
{generate_api_description(/realm/emoji/{emoji_name}:post)}
|
||||||
|
|
||||||
|
|
|
@ -1,58 +1,58 @@
|
||||||
#### Messages
|
#### Messages
|
||||||
|
|
||||||
* [Get messages](/api/get-messages)
|
|
||||||
* [Get a raw message](/api/get-raw-message)
|
|
||||||
* [Send a message](/api/send-message)
|
* [Send a message](/api/send-message)
|
||||||
* [Update a message](/api/update-message)
|
* [Upload a file](/api/upload-file)
|
||||||
|
* [Edit a message](/api/update-message)
|
||||||
|
* [Delete a message](/api/delete-message)
|
||||||
|
* [Get messages](/api/get-messages)
|
||||||
|
* [Construct a narrow](/api/construct-narrow)
|
||||||
* [Add an emoji reaction](/api/add-reaction)
|
* [Add an emoji reaction](/api/add-reaction)
|
||||||
* [Remove an emoji reaction](/api/remove-reaction)
|
* [Remove an emoji reaction](/api/remove-reaction)
|
||||||
* [Render a message](/api/render-message)
|
* [Render a message](/api/render-message)
|
||||||
* [Upload a file](/api/upload-file)
|
* [Get a message's raw markdown](/api/get-raw-message)
|
||||||
* [Delete a message](/api/delete-message)
|
|
||||||
* [Construct a narrow](/api/construct-narrow)
|
|
||||||
* [Get a message's edit history](/api/get-message-history)
|
* [Get a message's edit history](/api/get-message-history)
|
||||||
* [Update a message's flags](/api/update-message-flags)
|
* [Update personal message flags](/api/update-message-flags)
|
||||||
* [Mark messages as read in bulk](/api/mark-all-as-read)
|
* [Mark messages as read in bulk](/api/mark-all-as-read)
|
||||||
|
|
||||||
#### Streams
|
#### Streams
|
||||||
|
|
||||||
* [Get all streams](/api/get-streams)
|
|
||||||
* [Get subscribed streams](/api/get-subscriptions)
|
* [Get subscribed streams](/api/get-subscriptions)
|
||||||
* [Add subscriptions](/api/subscribe)
|
* [Subscribe to a stream](/api/subscribe)
|
||||||
* [Update subscription settings](/api/update-subscription-settings)
|
* [Unsubscribe from a stream](/api/unsubscribe)
|
||||||
* [Remove subscriptions](/api/unsubscribe)
|
|
||||||
* [Get subscription status](/api/get-subscription-status)
|
* [Get subscription status](/api/get-subscription-status)
|
||||||
|
* [Update subscription settings](/api/update-subscription-settings)
|
||||||
|
* [Get all streams](/api/get-streams)
|
||||||
|
* [Get stream ID](/api/get-stream-id)
|
||||||
|
* [Create a stream](/api/create-stream)
|
||||||
|
* [Update a stream](/api/update-stream)
|
||||||
|
* [Delete a stream](/api/delete-stream)
|
||||||
* [Get topics in a stream](/api/get-stream-topics)
|
* [Get topics in a stream](/api/get-stream-topics)
|
||||||
* [Topic muting](/api/mute-topic)
|
* [Topic muting](/api/mute-topic)
|
||||||
* [Create a stream](/api/create-stream)
|
|
||||||
* [Get stream ID](/api/get-stream-id)
|
|
||||||
* [Delete a stream](/api/delete-stream)
|
|
||||||
* [Update a stream](/api/update-stream)
|
|
||||||
|
|
||||||
#### Users
|
#### Users
|
||||||
|
|
||||||
* [Get all users](/api/get-users)
|
* [Get all users](/api/get-users)
|
||||||
|
* [Get own user](/api/get-own-user)
|
||||||
* [Get a user](/api/get-user)
|
* [Get a user](/api/get-user)
|
||||||
|
* [Update a user](/api/update-user)
|
||||||
|
* [Create a user](/api/create-user)
|
||||||
* [Deactivate a user](/api/deactivate-user)
|
* [Deactivate a user](/api/deactivate-user)
|
||||||
* [Reactivate a user](/api/reactivate-user)
|
* [Reactivate a user](/api/reactivate-user)
|
||||||
* [Update a user](/api/update-user)
|
|
||||||
* [Get profile](/api/get-own-user)
|
|
||||||
* [Create a user](/api/create-user)
|
|
||||||
* [Set "typing" status](/api/set-typing-status)
|
* [Set "typing" status](/api/set-typing-status)
|
||||||
* [Get user presence](/api/get-user-presence)
|
* [Get user presence](/api/get-user-presence)
|
||||||
* [Get all user groups](/api/get-user-groups)
|
* [Get attachments](/api/get-attachments)
|
||||||
* [Update notification settings](/api/update-notification-settings)
|
* [Update notification settings](/api/update-notification-settings)
|
||||||
|
* [Get user groups](/api/get-user-groups)
|
||||||
* [Create a user group](/api/create-user-group)
|
* [Create a user group](/api/create-user-group)
|
||||||
* [Update a user group](/api/update-user-group)
|
* [Update a user group](/api/update-user-group)
|
||||||
* [Delete a user group](/api/remove-user-group)
|
* [Delete a user group](/api/remove-user-group)
|
||||||
* [Get attachments](/api/get-attachments)
|
|
||||||
|
|
||||||
#### Server & organizations
|
#### Server & organizations
|
||||||
|
|
||||||
* [Get server settings](/api/get-server-settings)
|
* [Get server settings](/api/get-server-settings)
|
||||||
* [List linkifiers](/api/get-linkifiers)
|
* [Get linkifiers](/api/get-linkifiers)
|
||||||
* [Create linkifiers](/api/add-linkifier)
|
* [Add a linkifier](/api/add-linkifier)
|
||||||
* [Remove linkifiers](/api/remove-linkifier)
|
* [Remove a linkifier](/api/remove-linkifier)
|
||||||
* [Get all custom emoji](/api/get-custom-emoji)
|
* [Get all custom emoji](/api/get-custom-emoji)
|
||||||
* [Upload custom emoji](/api/upload-custom-emoji)
|
* [Upload custom emoji](/api/upload-custom-emoji)
|
||||||
|
|
||||||
|
|
|
@ -1191,7 +1191,8 @@ paths:
|
||||||
operationId: update_message_flags
|
operationId: update_message_flags
|
||||||
tags: ["messages"]
|
tags: ["messages"]
|
||||||
description: |
|
description: |
|
||||||
Add or remove flags in a list of messages.
|
Add or remove personal message flags like `read` and `starred`
|
||||||
|
on a collection of message IDs.
|
||||||
|
|
||||||
`POST {{ api_url }}/v1/messages/flags`
|
`POST {{ api_url }}/v1/messages/flags`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue