chore: fix OAS for User Login JWT (#5403)

This commit is contained in:
Shahed Nasser
2023-10-18 17:12:30 +03:00
committed by GitHub
parent 453297f525
commit 49ed7de752
7 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import { validator } from "../../../../utils/validator"
import { AdminPostAuthReq } from "./create-session"
/**
* @oas [post] /admin/token
* @oas [post] /admin/auth/token
* operationId: "PostToken"
* summary: "User Login (JWT)"
* x-authenticated: false

View File

@@ -60,7 +60,7 @@ properties:
sku:
description: >-
The unique stock keeping unit used to identify the Product Variant. This
will usually be a unqiue identifer for the item that is to be shipped, and
will usually be a unique identifer for the item that is to be shipped, and
can be referenced across multiple systems.
nullable: true
type: string

View File

@@ -353,6 +353,8 @@ paths:
$ref: paths/admin_apps_authorizations.yaml
/admin/auth:
$ref: paths/admin_auth.yaml
/admin/auth/token:
$ref: paths/admin_auth_token.yaml
/admin/batch-jobs:
$ref: paths/admin_batch-jobs.yaml
/admin/batch-jobs/{id}:
@@ -647,8 +649,6 @@ paths:
$ref: paths/admin_tax-rates_{id}_products_batch.yaml
/admin/tax-rates/{id}/shipping-options/batch:
$ref: paths/admin_tax-rates_{id}_shipping-options_batch.yaml
/admin/token:
$ref: paths/admin_token.yaml
/admin/uploads:
$ref: paths/admin_uploads.yaml
/admin/uploads/download-url:

View File

@@ -27,11 +27,11 @@ post:
- lang: JavaScript
label: JS Client
source:
$ref: ../code_samples/JavaScript/admin_token/post.js
$ref: ../code_samples/JavaScript/admin_auth_token/post.js
- lang: Shell
label: cURL
source:
$ref: ../code_samples/Shell/admin_token/post.sh
$ref: ../code_samples/Shell/admin_auth_token/post.sh
tags:
- Auth
responses:

View File

@@ -60,7 +60,7 @@ properties:
sku:
description: >-
The unique stock keeping unit used to identify the Product Variant. This
will usually be a unqiue identifer for the item that is to be shipped, and
will usually be a unique identifer for the item that is to be shipped, and
can be referenced across multiple systems.
nullable: true
type: string