Lunchrooms

All methods related to handling lunch rooms.

APIDescription
GET api/Users/{id}/lunchroom

Gets the default lunchroom for the requested user. Returns a 404 if lunchroom is not yet set.

POST api/Users/{id}/lunchroom

Sets the default lunchroom for the user.

GET api/Company/{id}/lunchrooms

Gets a list of all lunchrooms available for the requested company.

OPTIONS api/Lunchrooms

No documentation available.

Dates

All methods related to handling lunch dates.

APIDescription
GET api/Users/{id}/dates

Gets a list of the dates the requested user has already selected.

POST api/Users/{id}/dates

Set the dates the user wants to take part.

GET api/Dates

Gets a list of all future lunch connection dates.

OPTIONS api/Dates

No documentation available.

Users

All methods related to handling users.

APIDescription
GET api/Client/Users

Gets a list of all users for the current client.

GET api/Users/{id}

Gets details about the user (Name, E-Mail-Address, selected company and lunchroom).

POST api/Users

Signs up a new user. Required fields in user object: Id, Firstname, Lastname, e-mail-address, Gender.

PUT api/Users/{id}

Updates the user identified by the given id. Required fields in user object: Firstname, Lastname, e-mail-address, Gender.

DELETE api/Users/{id}

Removes the user with given id from the system.

OPTIONS api/Users

No documentation available.

Companies

All methods related to handling companies.

APIDescription
GET api/Users/{id}/company

Gets the default company for the given user.

POST api/Users/{id}/company

Sets the default company for the given user.

GET api/Companies/{id}

Gets the company with the given id. If company is not found a 404 will be returned.

GET api/Companies

Gets all available companies. If no companies are available a 404 will be returned.

OPTIONS api/Companies

No documentation available.

Test

APIDescription
GET api/test/random

No documentation available.

BaseApi

APIDescription
OPTIONS api/BaseApi

No documentation available.