Register
https://api.nerves-hub.org/users/register
This endpoint allows you to register for a new account.
Body Parameters
The password for the new account
The username of the account
The email address used for the account
Account successfully created
{
"username": "user1234",
"email": "user@domain.com"
}
Authenticate
https://api.nerves-hub.org/users/auth
Validate authentication of your account with your email and password.
Body Parameters
The password of the account
The email address of the account
Correct email and password
{
"username": "user1234",
"email": "user@domain.com"
}
Sign certificate
https://api.nerves-hub.org/users/sign
Authenticate using your account email and password and then sign a user certificate signing request to generate a valid user certificate. Almost all endpoints in the User API are protected using client SSL using the certificate returned from this request.
Body Parameters
A PEM encoded user certificate signing request
The email address of the account
The password of the account
A description to use for the certificate
The certificate was signed
{
"cert": "--BEGIN CERTIFICATE--"
}
Show user
https://api.nerves-hub.org/users/me
Return information about the user for a provided user certificate.
Requires: client side SSL user certificate
Found user from valid user certificate
{
"username": "user1234",
"email": "user@domain.com"
}
500: Internal Server Error