To test via Postman or any other REST tool, ensure that the request has a header Authorization set to Bearer TOKEN:{SLACKDI} where SLACKID is the slackId from the database. Check the seeds.
This will ensure that the user is the one found in the database.
From the frontend side, look at the example in StudentRegistrationPage:
To test via Postman or any other REST tool, ensure that the request has a header
Authorization
set toBearer TOKEN:{SLACKDI}
whereSLACKID
is the slackId from the database. Check the seeds.This will ensure that the user is the one found in the database.
From the frontend side, look at the example in
StudentRegistrationPage
:Post, put and patch look like this:
If you need to GET:
For delete: