Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Request Bodies in API Documentation #4066

Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
530b93f
Fix API docs for request body of addresses
kennyadsl May 14, 2021
e6e4ab8
Fix API docs for request body of payments
kennyadsl May 14, 2021
ff1cfe5
Fix API docs for request body of products
kennyadsl May 14, 2021
718a510
Fix API docs for request body of variants
kennyadsl May 17, 2021
defc7d8
Fix API docs for request body of line items
kennyadsl May 20, 2021
49701a5
Fix API docs for request body of orders
kennyadsl May 20, 2021
9082e28
Remove deprecated coupon code property from order's input
kennyadsl May 20, 2021
c955115
Fix API docs for request body of coupon codes
kennyadsl May 21, 2021
b0d9752
Fix API docs for request body of shipments
kennyadsl May 21, 2021
16bea19
Fix API docs for request body of zones
kennyadsl May 21, 2021
76ba37a
Fix API docs for request body of product properties
kennyadsl May 21, 2021
da32fea
Fix API docs for request body of stock locations
kennyadsl May 21, 2021
fe32401
Fix API docs for request body of taxons
kennyadsl May 21, 2021
a11c626
Fix API docs for request body of taxonomies
kennyadsl May 21, 2021
f27cf6c
Fix API docs for request body of properties
kennyadsl May 27, 2021
a41e5c9
Fix API docs for request body of images
kennyadsl May 27, 2021
bf26b5f
Fix API docs for request body of users
kennyadsl May 27, 2021
413b360
Fix API docs for request body of return authorizations
kennyadsl May 27, 2021
43f60ef
Fix API docs for request body of customer returns
kennyadsl May 27, 2021
58898c5
Fix API docs for request body of option values
kennyadsl May 27, 2021
046d3af
Fix API docs for request body of stock items
kennyadsl May 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix API docs for request body of products
  • Loading branch information
kennyadsl committed May 17, 2021
commit ff1cfe5b52d94bb8af344af565722d3b585699ff
61 changes: 48 additions & 13 deletions api/openapi/solidus-api.oas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,37 @@ paths:
security:
- api-key: []
requestBody:
$ref: '#/components/requestBodies/product-input'
content:
application/json:
schema:
type: object
properties:
product:
$ref: '#/components/schemas/product-input'
examples:
Example:
value:
product:
name: The Majestic Product
price: '19.99'
shipping_category_id: 8
product_properties_attributes:
- property_name: fabric
value: cotton
option_types:
- size
- color
taxon_ids: '2,4'
variants:
- price: 19.99
cost_price: 17
sku: SKU-3
track_inventory: true
options:
- name: size
value: small
- name: color
value: black
/orders/mine:
get:
responses:
Expand Down Expand Up @@ -344,7 +374,19 @@ paths:
security:
- api-key: []
requestBody:
$ref: '#/components/requestBodies/product-input'
content:
application/json:
schema:
type: object
properties:
product:
$ref: '#/components/schemas/product-input'
examples:
Example:
value:
product:
name: The Majestic Product
price: '22.22'
'/products/{product_id}/images':
get:
responses:
Expand Down Expand Up @@ -5168,11 +5210,6 @@ components:
application/json:
schema:
$ref: '#/components/schemas/stock-location-input'
product-input:
content:
application/json:
schema:
$ref: '#/components/schemas/product-input'
property-input:
content:
application/json:
Expand Down Expand Up @@ -6443,13 +6480,11 @@ components:
tax_category_id:
type: integer
taxon_ids:
type: array
items:
type: integer
type: string
description: 'Comma separated list of taxon ids. Eg. "1,2"'
option_type_ids:
type: array
items:
type: integer
description: 'Comma separated list of option type ids ids. Eg. "1,2"'
type: string
cost_currency:
type: string
cost_price:
Expand Down