|
2185 | 2185 | } |
2186 | 2186 | } |
2187 | 2187 | }, |
2188 | | - "/v3beta1/marketing": { |
| 2188 | + "/v3beta1/marketing/products": { |
2189 | 2189 | "get": { |
2190 | 2190 | "description": "Returns a list of all marketing materials for all products, available for general public.", |
2191 | 2191 | "operationId": "ListMarketingData", |
|
2238 | 2238 | } |
2239 | 2239 | } |
2240 | 2240 | }, |
2241 | | - "/v3beta1/products": { |
| 2241 | + "/v3beta1/marketing/products/{productId}": { |
2242 | 2242 | "get": { |
2243 | | - "description": "Returns all products, available for general public.", |
2244 | | - "operationId": "ListProducts", |
| 2243 | + "description": "Retrieves the marketing data for a specific product, available for general public.", |
| 2244 | + "operationId": "GetMarketingData", |
2245 | 2245 | "parameters": [ |
2246 | 2246 | { |
2247 | | - "$ref": "#/components/parameters/LimitParam" |
| 2247 | + "$ref": "#/components/parameters/ProductIdPathParam" |
2248 | 2248 | }, |
2249 | 2249 | { |
2250 | 2250 | "$ref": "#/components/parameters/Accept-Language" |
2251 | | - }, |
2252 | | - { |
2253 | | - "$ref": "#/components/parameters/SortParam" |
2254 | | - }, |
2255 | | - { |
2256 | | - "$ref": "#/components/parameters/CursorParam" |
2257 | | - }, |
2258 | | - { |
2259 | | - "$ref": "#/components/parameters/CategoryIdParam" |
2260 | | - }, |
2261 | | - { |
2262 | | - "$ref": "#/components/parameters/ShortNameParam" |
2263 | | - }, |
2264 | | - { |
2265 | | - "$ref": "#/components/parameters/LongNameParam" |
2266 | 2251 | } |
2267 | 2252 | ], |
2268 | 2253 | "responses": { |
2269 | 2254 | "200": { |
2270 | | - "$ref": "#/components/responses/PublicListProductsResponse" |
| 2255 | + "$ref": "#/components/responses/PublicGetMarketingResponse" |
2271 | 2256 | }, |
2272 | 2257 | "400": { |
2273 | 2258 | "$ref": "#/components/responses/BadRequest" |
2274 | 2259 | }, |
2275 | 2260 | "401": { |
2276 | 2261 | "$ref": "#/components/responses/Unauthorized" |
2277 | 2262 | }, |
| 2263 | + "404": { |
| 2264 | + "$ref": "#/components/responses/NotFound" |
| 2265 | + }, |
2278 | 2266 | "409": { |
2279 | 2267 | "$ref": "#/components/responses/Conflict" |
2280 | 2268 | }, |
|
2288 | 2276 | "$ref": "#/components/responses/InternalServerError" |
2289 | 2277 | } |
2290 | 2278 | }, |
2291 | | - "summary": "List all products", |
| 2279 | + "summary": "Get marketing data for a product", |
2292 | 2280 | "x-stackit-authorization": { |
2293 | 2281 | "disabled": true |
2294 | 2282 | } |
2295 | 2283 | } |
2296 | 2284 | }, |
2297 | | - "/v3beta1/products/{productId}": { |
| 2285 | + "/v3beta1/products": { |
2298 | 2286 | "get": { |
2299 | | - "description": "Retrieves a specific product by its ID, available for general public.", |
2300 | | - "operationId": "GetProduct", |
| 2287 | + "description": "Returns all products, available for general public.", |
| 2288 | + "operationId": "ListProducts", |
2301 | 2289 | "parameters": [ |
2302 | 2290 | { |
2303 | | - "$ref": "#/components/parameters/ProductIdPathParam" |
| 2291 | + "$ref": "#/components/parameters/LimitParam" |
2304 | 2292 | }, |
2305 | 2293 | { |
2306 | 2294 | "$ref": "#/components/parameters/Accept-Language" |
| 2295 | + }, |
| 2296 | + { |
| 2297 | + "$ref": "#/components/parameters/SortParam" |
| 2298 | + }, |
| 2299 | + { |
| 2300 | + "$ref": "#/components/parameters/CursorParam" |
| 2301 | + }, |
| 2302 | + { |
| 2303 | + "$ref": "#/components/parameters/CategoryIdParam" |
| 2304 | + }, |
| 2305 | + { |
| 2306 | + "$ref": "#/components/parameters/ShortNameParam" |
| 2307 | + }, |
| 2308 | + { |
| 2309 | + "$ref": "#/components/parameters/LongNameParam" |
2307 | 2310 | } |
2308 | 2311 | ], |
2309 | 2312 | "responses": { |
2310 | 2313 | "200": { |
2311 | | - "$ref": "#/components/responses/PublicGetProductResponse" |
| 2314 | + "$ref": "#/components/responses/PublicListProductsResponse" |
2312 | 2315 | }, |
2313 | 2316 | "400": { |
2314 | 2317 | "$ref": "#/components/responses/BadRequest" |
2315 | 2318 | }, |
2316 | 2319 | "401": { |
2317 | 2320 | "$ref": "#/components/responses/Unauthorized" |
2318 | 2321 | }, |
2319 | | - "404": { |
2320 | | - "$ref": "#/components/responses/NotFound" |
2321 | | - }, |
2322 | 2322 | "409": { |
2323 | 2323 | "$ref": "#/components/responses/Conflict" |
2324 | 2324 | }, |
|
2332 | 2332 | "$ref": "#/components/responses/InternalServerError" |
2333 | 2333 | } |
2334 | 2334 | }, |
2335 | | - "summary": "Get product by ID", |
| 2335 | + "summary": "List all products", |
2336 | 2336 | "x-stackit-authorization": { |
2337 | 2337 | "disabled": true |
2338 | 2338 | } |
2339 | 2339 | } |
2340 | 2340 | }, |
2341 | | - "/v3beta1/products/{productId}/marketing": { |
| 2341 | + "/v3beta1/products/{productId}": { |
2342 | 2342 | "get": { |
2343 | | - "description": "Retrieves the marketing data for a specific product, available for general public.", |
2344 | | - "operationId": "GetMarketingData", |
| 2343 | + "description": "Retrieves a specific product by its ID, available for general public.", |
| 2344 | + "operationId": "GetProduct", |
2345 | 2345 | "parameters": [ |
2346 | 2346 | { |
2347 | 2347 | "$ref": "#/components/parameters/ProductIdPathParam" |
|
2352 | 2352 | ], |
2353 | 2353 | "responses": { |
2354 | 2354 | "200": { |
2355 | | - "$ref": "#/components/responses/PublicGetMarketingResponse" |
| 2355 | + "$ref": "#/components/responses/PublicGetProductResponse" |
2356 | 2356 | }, |
2357 | 2357 | "400": { |
2358 | 2358 | "$ref": "#/components/responses/BadRequest" |
|
2376 | 2376 | "$ref": "#/components/responses/InternalServerError" |
2377 | 2377 | } |
2378 | 2378 | }, |
2379 | | - "summary": "Get marketing data for a product", |
| 2379 | + "summary": "Get product by ID", |
2380 | 2380 | "x-stackit-authorization": { |
2381 | 2381 | "disabled": true |
2382 | 2382 | } |
|
0 commit comments