version 1.0 BQ20170427
This is the kickstarter API used for develop a RESTful API with Silex
Method | Resource | Comment |
---|---|---|
POST | /api/auth/resetPassword | Reset login Password |
POST | /api/auth/login | User login return token |
GET | /api/auth/extendtoken | Get extent token for keep the session |
GET | /api/articles | Retrive a list of article |
GET | /api/article/{id} | |
POST | /api/article | |
PUT | /api/article/{id} | |
DELETE | /api/article/{id} |
Returns json data when success.
-
URL
/api/auth/resetPassword
-
Method:
POST
-
URL Params
`None`
-
Data Params
{ "username": "test1" }
-
Success Response:
- Code: 200
Content:
{ "message":"New temp password has been sent, please use the new temp password to login, after login please change your temp password" }
- Code: 200
Content:
-
Error Response:
- Code: 400 Bad request
Content:
{ "message":"bad input parameter" }
- Code: 400 Bad request
Content:
-
Sample Call:
curl --request POST --url https://localhost/api/resetPassword --header 'cache-control: no-cache' --data '{"username": "test1"}'
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D