Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hiddenfragment macro
groupVisibilitybrponly


BRP unsafe- ONLY

Filter response

From version x it is possible to control what fields are sent back from the API.

This is done with the parameters response.include / response.exclude.

Only one of these can be specified and if response.include is specified response.exclude is ignored.

The value of the parameter should be the path for the fields to be included/excluded. The paths corresponds to the XML answer so if you are using JSON it makes it easier if you check the return value in xml-format to see how you should format your include/exclude-parameter.

Example:

Asking for products from products.json we just want id and name and nothing else.

Do a call to products.xml to see the structure:

xml

The include parameters to get only id and name for this call would look like this:

.../products.json?response.include=products.product.id&response.include=products.product.name

The response JSON will then look like this:



Definitions

Word

Definition

Comments

activitybooking

Class booking

Class booking and waiting list

purchase

Purchase

Purchase of services, events, goods, subscriptions, value cards and deals

person

User/booker


resource

Resource

Rooms, instructors, staff, equipment etc.

activity

Group activity/class


event

Event

Events such as speaches, courses

order

Order

Completed order, either paid or confirmed

bokning

Booking

Based on type of product: service, goods, subscription, valuecard and deal

receipt

Receipt


item

Order row or receipt row


timeslotsuggestions

Suggested time for service booking


...