You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Triggers synchronization of recipes from the default datapack. Matches data by name, does not overwrite your existing recipes or ingredients.'
957
+
operationId: syncBarDatapack
958
+
parameters:
959
+
-
960
+
name: id
961
+
in: path
962
+
description: 'Database id of a resource'
963
+
required: true
964
+
schema:
965
+
type: integer
966
+
responses:
967
+
'204':
968
+
description: 'Successful response'
969
+
'403':
970
+
description: 'You are not authorized for this action.'
971
+
headers:
972
+
x-ratelimit-limit:
973
+
description: 'Max number of attempts.'
974
+
schema:
975
+
type: integer
976
+
x-ratelimit-remaining:
977
+
description: 'Remaining number of attempts.'
978
+
schema:
979
+
type: integer
980
+
content:
981
+
application/json:
982
+
schema:
983
+
properties:
984
+
data: { $ref: '#/components/schemas/APIError' }
985
+
type: object
986
+
'429':
987
+
description: 'Reached rate limit.'
988
+
headers:
989
+
x-ratelimit-limit:
990
+
description: 'Max number of attempts.'
991
+
schema:
992
+
type: integer
993
+
x-ratelimit-remaining:
994
+
description: 'Remaining number of attempts.'
995
+
schema:
996
+
type: integer
997
+
'404':
998
+
description: 'Resource record not found.'
999
+
headers:
1000
+
x-ratelimit-limit:
1001
+
description: 'Max number of attempts.'
1002
+
schema:
1003
+
type: integer
1004
+
x-ratelimit-remaining:
1005
+
description: 'Remaining number of attempts.'
1006
+
schema:
1007
+
type: integer
1008
+
content:
1009
+
application/json:
1010
+
schema:
1011
+
properties:
1012
+
data: { $ref: '#/components/schemas/APIError' }
1013
+
type: object
951
1014
/calculators:
952
1015
get:
953
1016
tags:
@@ -4025,10 +4088,15 @@ paths:
4025
4088
content:
4026
4089
application/json:
4027
4090
schema:
4091
+
required:
4092
+
- source
4028
4093
properties:
4029
4094
source:
4030
4095
type: string
4031
4096
example: 'https://www.example.com/recipe-url'
4097
+
html_content:
4098
+
type: [string, 'null']
4099
+
example: '<p>HTML content</p>'
4032
4100
type: object
4033
4101
responses:
4034
4102
'200':
@@ -5766,7 +5834,7 @@ paths:
5766
5834
tags:
5767
5835
- Public
5768
5836
summary: 'Show bar'
5769
-
description: 'Show public information about a single bar.'
5837
+
description: 'Show public information about a single bar. To access this endpoint the bar must be marked as public.'
description: 'You are not authorized for this action.'
5873
+
'404':
5874
+
description: 'Resource record not found.'
5801
5875
headers:
5802
5876
x-ratelimit-limit:
5803
5877
description: 'Max number of attempts.'
@@ -5813,6 +5887,78 @@ paths:
5813
5887
properties:
5814
5888
data: { $ref: '#/components/schemas/APIError' }
5815
5889
type: object
5890
+
security: []
5891
+
'/public/{barId}/cocktails':
5892
+
get:
5893
+
tags:
5894
+
- Public
5895
+
summary: 'List cocktails'
5896
+
description: 'List and filter bar cocktails. To access this endpoint the bar must be marked as public.'
5897
+
operationId: listPublicBarCocktails
5898
+
parameters:
5899
+
-
5900
+
name: barId
5901
+
in: path
5902
+
description: 'Database id of bar'
5903
+
required: true
5904
+
schema:
5905
+
type: number
5906
+
-
5907
+
name: page
5908
+
in: query
5909
+
description: 'Set current page number'
5910
+
schema:
5911
+
type: integer
5912
+
-
5913
+
name: filter
5914
+
in: query
5915
+
description: 'Filter by attributes. You can specify multiple matching filter values by passing a comma separated list of values.'
5916
+
style: deepObject
5917
+
explode: true
5918
+
schema:
5919
+
properties:
5920
+
name:
5921
+
description: 'Filter by cocktail names(s) (fuzzy search)'
5922
+
type: string
5923
+
ingredient_name:
5924
+
description: 'Filter by cocktail ingredient names(s) (fuzzy search)'
5925
+
type: string
5926
+
bar_shelf:
5927
+
description: 'Show only cocktails on the bar shelf'
5928
+
type: boolean
5929
+
abv_min:
5930
+
description: 'Filter by greater than or equal ABV'
5931
+
type: number
5932
+
abv_max:
5933
+
description: 'Filter by less than or equal ABV'
5934
+
type: number
5935
+
type: object
5936
+
-
5937
+
name: sort
5938
+
in: query
5939
+
description: 'Sort by attributes. Available attributes: `name`, `created_at`, `average_rating`, `user_rating`, `abv`, `total_ingredients`, `missing_ingredients`, `missing_bar_ingredients`, `favorited_at`, `random`.'
5940
+
schema:
5941
+
type: string
5942
+
responses:
5943
+
'200':
5944
+
description: 'Successful response'
5945
+
headers:
5946
+
x-ratelimit-limit:
5947
+
description: 'Max number of attempts.'
5948
+
schema:
5949
+
type: integer
5950
+
x-ratelimit-remaining:
5951
+
description: 'Remaining number of attempts.'
5952
+
schema:
5953
+
type: integer
5954
+
content:
5955
+
application/json:
5956
+
schema:
5957
+
properties:
5958
+
data: { description: 'The data for the current page', type: array, items: { $ref: '#/components/schemas/PublicCocktailResource' } }
5959
+
links: { description: 'Links for pagination', properties: { first: { description: 'Link to the first page', type: [string, 'null'] }, last: { description: 'Link to the last page', type: [string, 'null'] }, prev: { description: 'Link to the previous page', type: [string, 'null'] }, next: { description: 'Link to the next page', type: [string, 'null'] } }, type: object }
5960
+
meta: { properties: { current_page: { description: 'The current page number', type: integer }, from: { description: 'The starting index of the current page', type: integer }, last_page: { description: 'The last page number', type: integer }, links: { type: array, items: { description: 'Links for pagination', properties: { url: { description: 'The URL of the link', type: [string, 'null'] }, label: { description: 'The label of the link', type: [string, 'null'] }, active: { description: 'Whether the link is active', type: [boolean, 'null'] } }, type: object } }, path: { description: 'The path of the current page', type: string }, per_page: { description: 'The number of items per page', type: integer }, to: { description: 'The ending index of the current page', type: integer }, total: { description: 'The total number of items', type: integer } }, type: object }
0 commit comments