Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shybovycha/oksana-api

SportEvents API
https://github.com/shybovycha/oksana-api

Last synced: 21 days ago
JSON representation

SportEvents API

Awesome Lists containing this project

README

        

# Oksana' API

## Requests

Requests are directed to `/users` resource. E. g.:

* `GET /users` - list all users
* `POST /users/sign_up` - create a new user

Sample `sign_up` request (in Ruby using `rest-client` gem):

RestClient.post 'localhost:9292/users/sign_up', { name: "moo", email: "[email protected]", password: "abc", password_confirmation: "abc" }

For now, implemented methods are:

* `GET /users`
* `POST /users/sign_up`

## Responses

Responses are just JSON objects. Each response contains either `{ "success": true }` or `{ "success": false, "error": "..." }` part.

### Available responses

`GET /users`

{ "success": true, "users": ["#"] }

`POST /users/sign_up`

{ "success": true, "id": 5, "api_key": "abcdef0123456789" }