Initial commit

This commit is contained in:
Daniel López García
2021-06-23 12:17:01 +02:00
parent 09036a8016
commit 6815c3816a
10 changed files with 804 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
openapi: 3.0.0
info:
title: SimilarProducts
version: '1.0'
servers:
- url: 'http://localhost:5000'
paths:
'/product/{productId}/similar':
parameters:
- schema:
type: string
name: productId
in: path
required: true
get:
operationId: get-product-similar
summary: Similar products
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
description: 'List of similar products to a given one ordered by similarity'
minItems: 0
uniqueItems: true
items:
type: object
required:
- id
- name
- price
- availability
properties:
id:
type: string
minLength: 1
name:
type: string
minLength: 1
price:
type: number
availability:
type: boolean