Skip to content

Commit

Permalink
(api) enhance docs fix #157
Browse files Browse the repository at this point in the history
  • Loading branch information
ubergesundheit committed Apr 11, 2018
1 parent a6da20a commit ea68edb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apidoc/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ Example:

5a8d1c25bc2d41001927a265

## Parameters

Only if noted otherwise, all requests assume the payload encoded as JSON with `Content-type: application/json` header. Parameters prepended with a colon (`:`) are parameters which should be specified through the URL.

## Source code and Licenses

You can find the whole source code of the API at GitHub in the [sensebox/openSenseMap-API](https://github.com/sensebox/openSenseMap-API) repository. You can obtain the code under the MIT License.
Expand Down
2 changes: 1 addition & 1 deletion packages/api/lib/controllers/usersController.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const registerUser = async function registerUser (req, res, next) {
/**
* @api {post} /users/sign-in Sign in
* @apiName sign-in
* @apiDescription Sign in using email or name and password. The response contains a valid JSON Web Token
* @apiDescription Sign in using email or name and password. The response contains a valid JSON Web Token. Always use `application/json` as content-type.
* @apiGroup Users
* @apiParam {String} email the email or name of the user
* @apiParam {String} password the password of the user
Expand Down

0 comments on commit ea68edb

Please sign in to comment.