Skip to content

Document that current user's bookings are returned if zones AND user are not specified #140

@w-le

Description

@w-le
https://placeoscalendar.docs.apiary.io/#reference/0/bookings/query-bookings

Either zones OR user MUST be specified. Otherwise there is no search criteria. The system will NOT search ALL bookings across all zones when zones is not supplied

Currently when the request is made when zones and user are not specified, the result will ALWAYS be [] because nothing is being searched. This is not obvious to the end user though.

A better response would be something like "400: Either zones or user param MUST be specified"

Currently, when the request is made when zones and user are not specified, the result will return the current user's bookings.
This behaviour should be documented in the API reference.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions