-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.yaml
58 lines (56 loc) · 1.47 KB
/
api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
openapi: 3.0.1
info:
version: "1.0"
title: "Price history"
description: |
This API provides history of price
paths:
/store/product/{id}/price-history:
get:
tags:
- "price"
summary: "Price history for a product"
parameters:
- name: "id"
in: "path"
required: true
schema:
type: "string"
responses:
"200":
description: "Returns list of variants with price histories"
content:
application/json:
schema:
type: array
items:
type: object
properties:
#Product Variant properties, see variants from: https://docs.medusajs.com/api/store#products_getproductsid
price_histories:
type: array
items:
$ref: '#/components/schemas/PriceHistory'
"400":
description: "Not OK"
content:
application/json:
schema:
type: object
properties:
message:
type: string
components:
schemas:
PriceHistory:
type: object
properties:
id:
type: string
currency_code:
type: string
amount:
type: number
#raw_amount: Record<string, string>
created_at:
type: string