docs: oas (#197)

Adds OpenAPI specification of Storefront and Admin APIs.
Updates docs project.
This commit is contained in:
Sebastian Rindom
2021-03-10 11:51:54 +01:00
committed by GitHub
parent 975de99ee7
commit 8edb32c742
240 changed files with 23592 additions and 419 deletions

View File

@@ -0,0 +1,74 @@
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Medusa Admin API",
"license": {
"name": "MIT"
}
},
"tags": [
{
"name": "Auth",
"description": "Auth endpoints allows authorization of admin Users and manages their sessions."
},
{
"name": "Collection",
"x-resourceId": "product_collection"
},
{
"name": "Customer",
"x-resourceId": "customer"
},
{
"name": "Discount",
"x-resourceId": "discount"
},
{
"name": "Gift Card",
"x-resourceId": "gift_card"
},
{
"name": "Notification",
"x-resourceId": "notification"
},
{
"name": "Order",
"x-resourceId": "order"
},
{
"name": "Product",
"x-resourceId": "product"
},
{
"name": "Region",
"x-resourceId": "region"
},
{
"name": "Return",
"x-resourceId": "return"
},
{
"name": "Shipping Option",
"x-resourceId": "shipping_option"
},
{
"name": "Shipping Profile",
"x-resourceId": "shipping_profile"
},
{
"name": "Swap",
"x-resourceId": "swap"
},
{
"name": "Product Variant",
"x-resourceId": "product_variant"
}
],
"servers": [
{
"url": "https://api.medusa-commerce.com/admin"
}
],
"paths": {}
}