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

Shipping network api #300

Merged
merged 6 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
40 changes: 40 additions & 0 deletions public/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -9481,6 +9481,46 @@
}
]
},
{
"name": "VTEX Shipping Network API",
"slug": "vtex-shipping-network-api",
"origin": "",
"type": "openapi",
"children": [
{
"name": "Notification",
"slug": "vtex-shipping-network-api-notification",
"type": "category",
"children": [
{
"name": "Notify Carrier with App",
"slug": "vtex-shipping-network-api",
"type": "openapi",
"method": "POST",
"origin": "",
"endpoint": "/app_name-/v-app_version-/-account-/-workspace-/notify",
"children": []
}
]
},
{
"name": "Tracking",
"slug": "vtex-shipping-network-api-tracking",
"type": "category",
"children": [
{
"name": "Tracking Events with App",
"slug": "vtex-shipping-network-api",
"type": "openapi",
"method": "POST",
"origin": "",
"endpoint": "/-app_name-/v-app_version-/-account-/-workspace-/tracking",
"children": []
}
]
}
]
},
{
"name": "VTEX Tracking APIs",
"slug": "tracking",
Expand Down
1 change: 1 addition & 0 deletions src/pages/api/openapi/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const referencePaths = objectFlip({
'VTEX - Tracking': 'tracking',
'VTEX - VTEX Do API': 'vtex-do-api',
'VTEX - VTEX ID API': 'vtex-id-api',
'VTEX - VTEX Shipping Network API': 'vtex-shipping-network-api',
})

function objectFlip(obj: { [x: string]: string }) {
Expand Down
1 change: 1 addition & 0 deletions src/utils/getReferencePaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const fileSlugMap = {
'VTEX - Tracking': 'tracking',
'VTEX - VTEX Do API': 'vtex-do-api',
'VTEX - VTEX ID API': 'vtex-id-api',
'VTEX - VTEX Shipping Network API': 'vtex-shipping-network-api',
}

export default async function getReferencePaths() {
Expand Down