Skip to content

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 token when needed.
  • To avoid errors, the Headers must 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"
}

Clone this wiki locally