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/spec/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
6 years ago
..
accounts Add specs for Accounts::PinsController (#9542) 6 years ago
apps Use raw status code on have_http_status (#7214) 7 years ago
instances Add specs for Api::V1::Instances::PeersController (#9546) 6 years ago
lists Add more granular OAuth scopes (#7929) 7 years ago
push Add REST API for Web Push Notifications subscriptions (#7445) 7 years ago
statuses Lint pass (#8876) 6 years ago
timelines Add spec for Api::V1::Timelines::DirectController (#9547) 6 years ago
accounts_controller_spec.rb Add REST API for creating an account (#9572) 6 years ago
apps_controller_spec.rb Use raw status code on have_http_status (#7214) 7 years ago
blocks_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
conversations_controller_spec.rb Add conversations API (#8832) 6 years ago
custom_emojis_controller_spec.rb Use raw status code on have_http_status (#7214) 7 years ago
domain_blocks_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
endorsements_controller_spec.rb Add spec for Api::V1::EndorsementsController (#9543) 6 years ago
favourites_controller_spec.rb Support min_id-based pagination in REST API (#8736) 6 years ago
filter_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
follow_requests_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
follows_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
instances_controller_spec.rb Use raw status code on have_http_status (#7214) 7 years ago
lists_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
media_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
mutes_controller_spec.rb Make Api::V1::MutesController paginate properly (#8472) 7 years ago
notifications_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
reports_controller_spec.rb Support min_id-based pagination in REST API (#8736) 6 years ago
search_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
statuses_controller_spec.rb Add more granular OAuth scopes (#7929) 7 years ago
streaming_controller_spec.rb Lint pass (#8876) 6 years ago
suggestions_controller_spec.rb Re-add follow recommendations API (#7918) 7 years ago