Amadis

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Define a new user

This API allows registering a user:

Verb

POST

Resource

/api/user/v1/register

Content type

application/x-www-form-urlencoded

Body

name=<name>&

email=<email>&

password=<password>

Where:

Field

Description

name

The user name

email

The user email address

password

The user password

Response code

The expected response code is 201

Response data

The response data is a JSON object with the following structure:

{

Field

Description

“status”: “success,

Request successful

“data”: {

Response data

“user_id”: <user Id>

User ID (int)

“user_secret”:<user secret>

A base64 encoded 32 byte secret

}

}

  • No labels