Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Generated from `openapi/public.json`. Deprecated, admin, and internal operations are excluded from this SDK contract.

Total operations: `5590`
Total operations: `5591`

| Group | SDK method | Operation ID | HTTP | Params | Auth | Response | Notes |
| --- | --- | --- | --- | --- | --- | --- | --- |
Expand Down Expand Up @@ -438,6 +438,7 @@ Total operations: `5590`
| booksy | `booksy.businesses` | `booksy-businesses` | `GET /booksy/businesses` | `country` (query String)<br>`page` (query Integer)<br>`page_size` (query Integer)<br>`category` (query Integer)<br>`treatment` (query Integer)<br>`query` (query String)<br>`location_id` (query Integer)<br>`location_name` (query String)<br>`sort_order` (query String)<br>`gender` (query String)<br>`open_now` (query Boolean)<br>`has_special_offers` (query Boolean)<br>`has_online_services` (query Boolean)<br>`accept_booksy_pay` (query Boolean)<br>`accept_booksy_gift_cards` (query Boolean)<br>`has_traveling_services` (query Boolean)<br>`business_ids` (query String) | `ApiKeyAuth` | `BooksyBusinessesResponse` | |
| booksy | `booksy.categories` | `booksy-categories` | `GET /booksy/categories` | `country` (query String) | `ApiKeyAuth` | `BooksyCategoriesResponse` | |
| booksy | `booksy.treatmentHints` | `booksy-treatment-hints` | `GET /booksy/treatment-hints` | `query` (query String required)<br>`country` (query String) | `ApiKeyAuth` | `BooksyTreatmentHintsResponse` | |
| booksy | `booksy.treatments` | `booksy-treatments` | `GET /booksy/treatments` | `category` (query Integer)<br>`limit` (query Integer)<br>`country` (query String) | `ApiKeyAuth` | `BooksyTreatmentsResponse` | |
| boots | `boots.search` | `boots-search` | `GET /boots/search` | `q` (query String)<br>`category` (query List<String>)<br>`filter` (query List<String>)<br>`price_min` (query Double)<br>`price_max` (query Double)<br>`in_stock` (query Boolean)<br>`page` (query Integer)<br>`page_size` (query Integer)<br>`sort` (query String) | `ApiKeyAuth` | `BootsSearchResponse` | |
| boots | `boots.suggest` | `boots-suggest` | `GET /boots/suggest` | `q` (query String required) | `ApiKeyAuth` | `BootsSuggestResponse` | |
| bostonGlobe | `bostonGlobe.bostonglobeNews` | `bostonglobe-news` | `GET /bostonglobe/news` | none | `ApiKeyAuth` | `BostonGlobeBostonglobeNewsResponse` | |
Expand Down
158 changes: 158 additions & 0 deletions openapi/public.json
Original file line number Diff line number Diff line change
Expand Up @@ -34726,6 +34726,58 @@
},
"type": "object"
},
"booksy.TreatmentRecord": {
"properties": {
"id": {
"example": 363,
"type": "integer"
},
"name": {
"example": "Male Haircut",
"type": "string"
},
"slug": {
"example": "male-haircut",
"type": "string"
}
},
"type": "object"
},
"booksy.TreatmentsResponse": {
"properties": {
"category": {
"description": "Category is the requested category id, absent on the unscoped list.",
"type": "integer"
},
"count": {
"description": "Count is how many treatments this response carries.",
"example": 18,
"type": "integer"
},
"country": {
"example": "us",
"type": "string"
},
"limit": {
"description": "Limit is the effective limit sent upstream.",
"example": 40,
"type": "integer"
},
"treatments": {
"description": "Treatments in the upstream's own ranking order.",
"items": {
"$ref": "#/definitions/booksy.TreatmentRecord"
},
"type": "array"
},
"truncated": {
"description": "Truncated is true when the upstream returned exactly the requested limit,\nwhich is the only \"there may be more\" signal this route offers: it has no\npage, offset or cursor parameter. A category with a smaller set than the\nlimit cannot be truncated.",
"example": false,
"type": "boolean"
}
},
"type": "object"
},
"booksy.businessResponseDoc": {
"properties": {
"code": {
Expand Down Expand Up @@ -34822,6 +34874,22 @@
},
"type": "object"
},
"booksy.treatmentsResponseDoc": {
"properties": {
"code": {
"example": 200,
"type": "integer"
},
"data": {
"$ref": "#/definitions/booksy.TreatmentsResponse"
},
"msg": {
"example": "OK",
"type": "string"
}
},
"type": "object"
},
"boots.Facet": {
"properties": {
"key": {
Expand Down Expand Up @@ -394567,6 +394635,96 @@
]
}
},
"/booksy/treatments": {
"get": {
"consumes": [
"application/json"
],
"description": "Returns the treatment ids Booksy's (booksy.com) Android app lists for one top-level category, in the upstream's own ranking order, with each treatment's integer id, name and slug. This is the category-scoped discovery step for the treatment parameter of booksy-businesses: combine the category with one of these treatments to filter a listing, and category 6 with treatment 363 returns the Male Haircut subset of the Barber marketplace. Pass a category id from booksy-categories; omit it for the upstream's unscoped popular list, which mixes categories. limit is 1 to 40, the upstream's own cap. The route has no page, offset or cursor parameter, so a category that publishes more treatments than the limit cannot be read past it: truncated=true means the upstream returned exactly the limit, which is the only signal that more may exist (Hair and Health and fitness both sit at 40). A category with no treatments or an unknown category id answers an honest empty list, not an error. For query-driven discovery by free text use booksy-treatment-hints instead.",
"operationId": "booksy-treatments",
"parameters": [
{
"description": "Top-level category id from booksy-categories (integer, not a slug)",
"in": "query",
"name": "category",
"type": "integer",
"x-example": 6
},
{
"description": "Treatments to return, 1 to 40; defaults to 40, the upstream cap",
"in": "query",
"name": "limit",
"type": "integer",
"x-example": 40
},
{
"description": "Market host",
"enum": [
"ar",
"au",
"br",
"ca",
"cl",
"co",
"de",
"es",
"fr",
"gb",
"ie",
"it",
"mx",
"nl",
"pl",
"pt",
"us",
"za"
],
"in": "query",
"name": "country",
"type": "string",
"x-example": "us"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/booksy.treatmentsResponseDoc"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/app.Response"
}
},
"429": {
"description": "Too Many Requests",
"schema": {
"$ref": "#/definitions/app.Response"
}
},
"503": {
"description": "Service Unavailable",
"schema": {
"$ref": "#/definitions/app.Response"
}
}
},
"security": [
{
"ApiKeyAuth": []
}
],
"summary": "Discover Booksy treatment ids for one category",
"tags": [
"Booksy"
]
}
},
"/boots/search": {
"get": {
"description": "Returns one page of Boots UK's public product catalog, including product cards and live facets. Supply `q`, one or more hierarchical `category` keys, or both. Use repeatable `filter=facet_key:option_key` values from that response's dynamic facets, plus the dedicated price and stock controls. `sort` accepts `relevance`, `price_low_to_high`, `price_high_to_low`, `top_rated`, `best_seller`, or `newest`.",
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/crawlora/OperationId.java
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ private OperationId() {}
public static final String BOOKSY_BUSINESSES = "booksy-businesses";
public static final String BOOKSY_CATEGORIES = "booksy-categories";
public static final String BOOKSY_TREATMENT_HINTS = "booksy-treatment-hints";
public static final String BOOKSY_TREATMENTS = "booksy-treatments";
public static final String BOOTS_SEARCH = "boots-search";
public static final String BOOTS_SUGGEST = "boots-suggest";
public static final String BOSTON_GLOBE_BOSTONGLOBE_NEWS = "bostonglobe-news";
Expand Down
Loading
Loading