Documentation

Project setup

This project is a standard project with the Cors package added.

How to use the authorization

To activate the authorization system you must add the attribute [AuthorizationRequired]
at the top of the class as in the example.
To use the attribute in a call you must add in the header of the call a Token with the value
In Javascript it will look like
headers: {"Token":"your token string"}
The token management is inside the TokenServices class. By default it just check the string for the value 123456. 
This should be replaced by a database access
Fields
booking_id (for update and delete)
first_name
surname
tel_number
email