How to use - aalfiann/reSlim GitHub Wiki
Where is my account?
There is already default superuser account:
Username : reslim
Password : reslim
How to get the token?
You can use the default superuser account to login
Just make POST request to http://localhost:1337/reSlim/src/api/user/login
Form Data:
- Username => Length is 1-50 {alphanumeric,lowercase,required}
- Password => Length is 0-50 {case sensitive,required}
Note:
- Token will automatically expired on 7days or if you have already logout
How to verify the token?
Just make GET request to http://localhost:1337/reSlim/src/api/user/verify/ {yourtoken}
How to create the API Key?
Just make POST request to http://localhost:1337/reSlim/src/api/user/keys/create
Form Data:
- Username => Length is 1-50 {alphanumeric,lowercase,required}
- Token => Length is 1-250 {required}
- Domain => Length is 1-50 {required}
How to update API Key?
Just make POST request to http://localhost:1337/reSlim/src/api/user/keys/update
Form Data:
- Username => Length is 1-50 {alphanumeric,lowercase,required}
- Token => Length is 1-250 {required}
- ApiKey => Length is 1-250 {required}
- Status => Length is 1-11 {numeric,required}
How to delete API Key?
Just make POST request to http://localhost:1337/reSlim/src/api/user/keys/delete
Form Data:
- Username => Length is 1-50 {alphanumeric,lowercase,required}
- Token => Length is 1-250 {required}
- ApiKey => Length is 1-250 {required}
How to show all my data API Key?
Just make GET request to http://localhost:1337/reSlim/src/api/user/ {username} /keys/data/search/ {page} / {itemsperpage} / {yourtoken} /?query= {your query to search data}
Learn more with API Documentation!
API Documentation is using Postman json file as default.
The Postman file is located at reslim/resources/postman
- Each directory modules also included with API Documentation Postman