You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/controllers/api/v1
Eugen Rochko 5d2fc6de32
Add REST API for creating an account (#9572)
* Add REST API for creating an account

The method is available to apps with a token obtained via the client
credentials grant. It creates a user and account records, as well as
an access token for the app that initiated the request. The user is
unconfirmed, and an e-mail is sent as usual.

The method returns the access token, which the app should save for
later. The REST API is not available to users with unconfirmed
accounts, so the app must be smart to wait for the user to click a
link in their e-mail inbox.

The method is rate-limited by IP to 5 requests per 30 minutes.

* Redirect users back to app from confirmation if they were created with an app

* Add tests

* Return 403 on the method if registrations are not open

* Require agreement param to be true in the API when creating an account
7 years ago
..
accounts Allow unauthenticated REST API access to GET /api/v1/accounts/:id/statuses (#9573) 7 years ago
apps
instances
lists Extract counters from accounts table to account_stats table (#9295) 7 years ago
push Fix 404 for GET /api/v1/push/subscription (#7472) 7 years ago
statuses Extract counters from accounts table to account_stats table (#9295) 7 years ago
timelines Allow joining several hashtags in a single column (#8904) 7 years ago
accounts_controller.rb Add REST API for creating an account (#9572) 7 years ago
apps_controller.rb
blocks_controller.rb Extract counters from accounts table to account_stats table (#9295) 7 years ago
conversations_controller.rb Add unread indicator to conversations (#9009) 7 years ago
custom_emojis_controller.rb
domain_blocks_controller.rb Add more granular OAuth scopes (#7929) 7 years ago
endorsements_controller.rb Extract counters from accounts table to account_stats table (#9295) 7 years ago
favourites_controller.rb Support min_id-based pagination in REST API (#8736) 7 years ago
filters_controller.rb Add option to not consider word boundaries when processing keyword filtering (#7975) 7 years ago
follow_requests_controller.rb Extract counters from accounts table to account_stats table (#9295) 7 years ago
follows_controller.rb Add more granular OAuth scopes (#7929) 7 years ago
instances_controller.rb Cache instance info (#8765) 7 years ago
lists_controller.rb Fix low-hanging rubocop gripes (#8458) 7 years ago
media_controller.rb Add more granular OAuth scopes (#7929) 7 years ago
mutes_controller.rb Make Api::V1::MutesController paginate properly (#8472) 7 years ago
notifications_controller.rb Support min_id-based pagination in REST API (#8736) 7 years ago
reports_controller.rb Add unread indicator to conversations (#9009) 7 years ago
search_controller.rb Add more granular OAuth scopes (#7929) 7 years ago
statuses_controller.rb Unuse ActiveRecord::Base#cache_key (#8185) 7 years ago
streaming_controller.rb
suggestions_controller.rb Add API method to remove a suggestion (#7978) 7 years ago