Files
medusa-store/docs/api/admin/paths/shipping-profiles.yaml
2022-08-05 14:06:12 +02:00

45 lines
1.1 KiB
YAML

post:
operationId: PostShippingProfiles
summary: Create a Shipping Profile
description: Creates a Shipping Profile
x-authenticated: true
requestBody:
content:
application/json:
schema:
required:
- name
properties:
name:
description: The name of the Shipping Profile
type: string
tags:
- Shipping Profile
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
shipping_profile:
$ref: ../components/schemas/shipping_profile.yaml
get:
operationId: GetShippingProfiles
summary: List Shipping Profiles
description: Retrieves a list of Shipping Profile.
x-authenticated: true
tags:
- Shipping Profile
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
shipping_profiles:
type: array
items:
$ref: ../components/schemas/shipping_profile.yaml