Fix apib signup test
parent
c3f5c3f971
commit
7b58dac768
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Create a new application user account.
|
Create a new application user account.
|
||||||
|
|
||||||
+ Request Create Account
|
+ Request Create Account (application/json)
|
||||||
|
|
||||||
+ Attributes (Registration)
|
+ Attributes (Registration)
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,7 @@ https://cc.myserver.lan/api/
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|
||||||
Requests to the API have to be authenticated using an API token which is received after successfully providing your application credentials to the API.
|
Requests to most of the API endpoints have to be authenticated using an API token which is received after successfully providing your application credentials to the API.
|
||||||
|
|
||||||
|
|
||||||
Once acquired the token has to be provided in the ``X-Access-Token`` header of every request that requires authentication.
|
Once acquired the token has to be provided in the ``X-Access-Token`` header of every request that requires authentication.
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ authenticate.route('/signup')
|
||||||
.post((req, res, next) => {
|
.post((req, res, next) => {
|
||||||
create(req.body)
|
create(req.body)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
res.sendStatus(200);
|
res.sendStatus(201);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
res.status(400).send(err);
|
res.status(400).send(err);
|
||||||
|
|
Loading…
Reference in New Issue