Simple storal/retrieval of ownership for uuid resources.
- Create a new ownership
POST /ownerships
Content-Type: application/json; charset=utf-8
{
"ownership": {
"owner_id": "An email",
"model_id": "<UUID>",
"model_type": "An identification string"
}
}
- Retrieve an ownership information
GET /ownerships/<UUID>
- Generate swagger API docs in /api-docs:
rake rswag:specs:swaggerize
rake assets:precompile
- Start the server
rails s