-
Notifications
You must be signed in to change notification settings - Fork 30
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
[DEVDOCS-5831/PAPI-2091]: Carts v3 and Store information V2, add store-level metafield's open api spec (#197) #199
base: main
Are you sure you want to change the base?
Conversation
<!-- Ticket number or summary of work --> # [PAPI-2091] ## What changed? - Store metafield's open api spec ## Release notes draft <!-- Provide an entry for the release notes using simple, conversational language. Don't be too technical. Explain how the change will benefit the merchant and link to the feature. Examples: * The newly-released [X feature] is now available to use. Now, you’ll be able to [perform Y action]. * We're happy to announce [X feature], which can help you [perform Y action]. * [X feature] helps you to create [Y response] using the [Z query parameter]. Now, you can deliver [ex, localized shopping experiences for your customers]. * Fixed a bug in the [X endpoint]. Now the [Y field] will appear when you click [Z option]. --> * ## Anything else? <!-- Add related PRs, salient notes, additional ticket numbers, etc. --> ping [PAPI-2091]: https://bigcommercecloud.atlassian.net/browse/PAPI-2091?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Tina Gomez <[email protected]>
- Metafields | ||
description: Gets a store `metafield`. | ||
operationId: getStoreMetafield | ||
responses: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
responses: | |
responses: |
Is the response for this endpoint supposed to have a meta object?
errors: | ||
type: array | ||
description: Empty for 200 responses. | ||
example: [ ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [spectral] reported by reviewdog 🐶
type: array must have an items sibling.
ErrorDetail: | ||
type: object | ||
description: | | ||
Error detail response payload for the BigCommerce API. | ||
example: | ||
"1": "Unauthorized to delete" | ||
"2": "Metafield does not exist" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [spectral] reported by reviewdog 🐶
type: object must have a properties sibling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed only singular endpoints and can see some issues in each of them, do you maybe need the access to the API just to double check all possible responses 🙂 ?
application/json: | ||
schema: | ||
$ref: '#/components/schemas/MetaFieldCollectionResponsePartialSuccess_DELETE' | ||
'/store/metafields/{metafieldId}': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- $ref: '#/components/parameters/MetafieldKeyParam' | ||
- $ref: '#/components/parameters/MetafieldNamespaceParam' | ||
- $ref: '#/components/parameters/DirectionParam' | ||
put: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: 404 | ||
title: There was no metafield found with ID 1010 | ||
type: 'https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes' | ||
delete: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'500': | ||
description: Internal Server Error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decided to don't document 500 errors.
- $ref: '#/components/parameters/MetafieldNamespaceInParam' | ||
- $ref: '#/components/parameters/DirectionParam' | ||
post: | ||
summary: Create multiple Metafields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Sarah Riehl <[email protected]>
PAPI-2091 DEVDOCS-5831
What changed?
Release notes draft
Anything else?
ping @bc-tayvs
[DEVDOCS-]
What changed?
Release notes draft
Anything else?
ping {names}