Adding doorkeeper, adding a REST API
POST /api/statuses Params: status (text contents), in_reply_to_id (optional) GET /api/statuses/:id POST /api/statuses/:id/reblog GET /api/accounts/:id GET /api/accounts/:id/following GET /api/accounts/:id/followers POST /api/accounts/:id/follow POST /api/accounts/:id/unfollow POST /api/follows Params: uri (e.g. user@domain) OAuth authentication is currently disabled, but the API can be used with HTTP Auth.
Showing
- Gemfile 3 additions, 0 deletionsGemfile
- Gemfile.lock 10 additions, 2 deletionsGemfile.lock
- app/assets/javascripts/api/accounts.coffee 3 additions, 0 deletionsapp/assets/javascripts/api/accounts.coffee
- app/assets/javascripts/api/follows.coffee 3 additions, 0 deletionsapp/assets/javascripts/api/follows.coffee
- app/assets/javascripts/api/statuses.coffee 3 additions, 0 deletionsapp/assets/javascripts/api/statuses.coffee
- app/assets/stylesheets/api/accounts.scss 3 additions, 0 deletionsapp/assets/stylesheets/api/accounts.scss
- app/assets/stylesheets/api/follows.scss 3 additions, 0 deletionsapp/assets/stylesheets/api/follows.scss
- app/assets/stylesheets/api/statuses.scss 3 additions, 0 deletionsapp/assets/stylesheets/api/statuses.scss
- app/controllers/accounts_controller.rb 0 additions, 11 deletionsapp/controllers/accounts_controller.rb
- app/controllers/api/accounts_controller.rb 36 additions, 0 deletionsapp/controllers/api/accounts_controller.rb
- app/controllers/api/follows_controller.rb 9 additions, 0 deletionsapp/controllers/api/follows_controller.rb
- app/controllers/api/statuses_controller.rb 18 additions, 0 deletionsapp/controllers/api/statuses_controller.rb
- app/controllers/api_controller.rb 10 additions, 0 deletionsapp/controllers/api_controller.rb
- app/controllers/stream_entries_controller.rb 0 additions, 16 deletionsapp/controllers/stream_entries_controller.rb
- app/helpers/api/accounts_helper.rb 2 additions, 0 deletionsapp/helpers/api/accounts_helper.rb
- app/helpers/api/follows_helper.rb 2 additions, 0 deletionsapp/helpers/api/follows_helper.rb
- app/helpers/api/statuses_helper.rb 2 additions, 0 deletionsapp/helpers/api/statuses_helper.rb
- app/helpers/stream_entries_helper.rb 2 additions, 2 deletionsapp/helpers/stream_entries_helper.rb
- app/models/account.rb 9 additions, 1 deletionapp/models/account.rb
- app/services/follow_service.rb 3 additions, 2 deletionsapp/services/follow_service.rb
Loading
Please register or sign in to comment