Authentication
Authentication related to Holidaze
This authentication is only related to the /holidaze
endpoints.
These endpoints are used to authorize yourself with the API server. All /holidaze
routes require an authorization token to be included in the request.
Register
Register a new user profile.
You will need to send all of the required values in your POST
request:
The name
value must not contain punctuation symbols apart from underscore (_
).
The email
value must be a valid stud.noroff.no
or noroff.no
email address.
The password
value must be at least 8 characters.
The avatar
value must be a valid URL.
The venueManager
value must be a boolean. If true
the user will be able to create, edit, and delete venues.
You can now use your registered account to log in.
Login
Login with your registered user.
You can now use this access token as the Bearer token in the Authorization
header for all /holidaze
endpoints.