Welcome to Daviann Trial API with simple JWT (JSON Web Tokens) implementation. JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
Endpoint: /api/1.0/signup
Method: POST
Content-Type: application/json
{"user":
{
"email": "example@example.com",
"password": "secret",
"password_confirmation": "secret"
}
}
Content-Type: application/json You will get access-token
{
"token": <auth-token>
}
Endpoint: /api/1.0/signin Method: POST Data type: Multipart
email: <valid email>
password: <valid password>
Content-Type: application/json You will get access-token
{
"token": <auth-token>
}
Authorization: Bearer <access-token>
not required
{
"id": <uuid4-user-id>,
"email": <user-email>
}
Authorization: Bearer <access-token>
not required
Content-Type: application/json
{
"data": [
{
"title": "Test document",
"id": "b1384aaf-e4e6-4162-a3c1-d4fbbcc9e12d",
"file": "asdf.psd"
},
{
"title": "Test document",
"id": "c2534693-8c41-4a31-873a-1aa1884c3a03",
"file": "asdf.psd"
}
...
]
}
Authorization: Bearer <access-token>
{"document":
{
"title": "Sample Title",
"file": "file name"
}
}
Content-Type: application/json
{
"data": [
{
"title": "Test document",
"id": "b1384aaf-e4e6-4162-a3c1-d4fbbcc9e12d",
"file": "asdf.psd"
},
{
"title": "Test document",
"id": "c2534693-8c41-4a31-873a-1aa1884c3a03",
"file": "asdf.psd"
}
...
]
}
- RFC7519: https://tools.ietf.org/html/rfc7519
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix