Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description to v2/search #1449

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add description to v2/search
  • Loading branch information
MahanRahmati committed May 22, 2024
commit e4c9b7b7dce7ab0130a6aea7042064bce82d4f95
4 changes: 3 additions & 1 deletion content/en/methods/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ aliases: [
GET /api/v2/search HTTP/1.1
```

Perform a search for content in accounts, statuses and hashtags with the given parameters.

**Returns:** [Search]({{< relref "entities/Search" >}})\
**OAuth:** Public (without `resolve` or `offset`), or User token + `read:search`\
**Version history:**\
Expand Down Expand Up @@ -231,4 +233,4 @@ Invalid or missing Authorization header.

{{< page-relref ref="methods/accounts#lookup" caption="GET /api/v1/accounts/lookup" >}}

{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v2/search_controller.rb" caption="app/controllers/api/v2/search_controller.rb" >}}
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v2/search_controller.rb" caption="app/controllers/api/v2/search_controller.rb" >}}