When sending information to a server on internet you can use either a GET or a POST request.
GET request
The traditional and easiest way is a GET request. In a GET request all the information send to the
server is shown in the URL of the FETC. If you want to send a bearertoken to get all the users the
API URL will look like something like this:
https://mbo-sd.nl/api/chat/get-all-chatusers/85fa1ef3262df01b1ac98005581ce4f1a68f0b93b75529929525886193a27c99671faf373b09366239f18aa473db212eaf17f92ebe1467fd6777cfba33f27c52
We can split this URL up in to 2 parts, the URL and the bearertoken
URL: https://mbo-sd.nl/api/chat/get-all-chatusers/
bearertoken: 85fa1ef3262df01b1ac98005581ce4f1a68f0b93b75529929525886193a27c99671faf373b09366239f18aa473db212eaf17f92ebe1467fd6777cfba33f27c52
As stated above the bearertoken is provided by the API after successfull registration/ login of the user.
The bearertoken might have an lifetime of a day or 30 days and may be reseted by the system.
Using mandatory properties in the readme
When a property is mandatory in the readme this is shown with < - > signs.
The readme will show you:
https://mbo-sd.nl/api/chat/get-all-chatusers/<bearertoken>
POST request
With the POST request you do not send extra data in the URL (traditionally, some API's might let you do
it though)
With a POST request you will send the information that you need to send to the FETCH URL inside the
headers of the request. Doing this will not let you see the information, but it will be send.
How to do this, check Google ;-) (Or later on MBO-SD :-))