-
Notifications
You must be signed in to change notification settings - Fork 0
Testing
Marco E edited this page Sep 7, 2020
·
3 revisions
Finally, you can test the application!
- In postman, be sure to include the
Bearer tokenwhen needed. - To avoid errors, the
Headersmust always contain:
| Key | Value |
|---|---|
| Content-Type | application/json |
| X-Requested-With | XMLHttpRequest |
- Be sure to always provide the requested
Body:
Example for user registration at
http://homestead.test/api/v1/user:
{
"name": "Test",
"email": "test@test.com",
"password": "qwerty"
}Example for sign-in at
http://homestead.test/api/v1/user/signin:
{
"email": "test@test.com",
"password": "qwerty"
}Example for meeting creation at
http://homestead.test/api/v1/meeting(Bearer token needed):
{
"title": "Meeting",
"description": "Test meeting",
"time": "202010101800EST"
}meeting-API - 2020