Commit Graph

6 Commits (c249ceb10c9deb468823b7e4fa2e876be5c99545)

Author SHA1 Message Date
Eugen Rochko 92afd29650 The frontend will now be an OAuth app, auto-authorized. The frontend will use an access token for API requests
Adding better errors for the API controllers, posting a simple status works from the frontend now
9 years ago
Eugen Rochko 10ba09f546 Upgrade to Rails 5.0.0.1 9 years ago
Eugen Rochko b640f35621 Writing out more tests, fixed some bugs 10 years ago
Eugen Rochko 447cfef62d Improving feed queries, switching API to doorkeeper authentication 10 years ago
Eugen Rochko ab6696e855 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.
10 years ago
Eugen Rochko 3b4e04dc32 Fixing some bugs, adding pending test examples 10 years ago