File tree Expand file tree Collapse file tree 3 files changed +408
-1
lines changed Expand file tree Collapse file tree 3 files changed +408
-1
lines changed Original file line number Diff line number Diff line change @@ -83,5 +83,29 @@ module.exports = {
8383 }
8484 }
8585 }
86- }
86+ } ,
87+ "SuggestItemSuccess" : {
88+ "description" : "A list of search results" ,
89+ "content" : {
90+ "application/json" : {
91+ "schema" : schemaParts . SearchItemResultList ,
92+ "example" : {
93+ "results" : [
94+ {
95+ "id" : "Q456" ,
96+ "display-label" : { "language" : "en" , "value" : "drinking water" } ,
97+ "description" : { "language" : "en" , "value" : "water safe for consumption" } ,
98+ "match" : { "type" : "alias" , "language" : "en" , "text" : "potable water" }
99+ } ,
100+ {
101+ "id" : "Q123" ,
102+ "display-label" : { "language" : "en" , "value" : "potato" } ,
103+ "description" : { "language" : "en" , "value" : "staple food" } ,
104+ "match" : { "type" : "label" , "language" : "en" , "text" : "potato" }
105+ }
106+ ]
107+ }
108+ }
109+ }
110+ } ,
87111} ;
Original file line number Diff line number Diff line change @@ -59,6 +59,27 @@ const openapi = {
5959 "400" : { "$ref" : "#/components/responses/BadRequest" }
6060 }
6161 }
62+ } ,
63+ "/v0/suggest/items" : {
64+ "get" : {
65+ "operationId" : "simpleItemSuggest" ,
66+ "tags" : [ "item search" ] ,
67+ "summary" : "[WIP] Simple Item search by prefix, for labels and aliases" ,
68+ "description" : "This endpoint is currently in development and is not recommended for production use." ,
69+ "parameters" : [
70+ {
71+ ...parameters . SearchQuery ,
72+ "example" : "pota"
73+ } ,
74+ { "$ref" : "#/components/parameters/SearchLanguage" } ,
75+ { "$ref" : "#/components/parameters/Limit" } ,
76+ { "$ref" : "#/components/parameters/Offset" } ,
77+ ] ,
78+ "responses" : {
79+ "200" : { "$ref" : "#/components/responses/SuggestItemSuccess" } ,
80+ "400" : { "$ref" : "#/components/responses/BadRequest" }
81+ }
82+ }
6283 }
6384 } ,
6485 "components" : {
You can’t perform that action at this time.
0 commit comments