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

DEVDOCS-4878: [external] API specs, update Operation IDs to be consistent & programmatic #45

Merged
merged 15 commits into from
Jan 15, 2024

Conversation

slsriehl
Copy link
Contributor

@slsriehl slsriehl commented Jan 15, 2024

DEVDOCS-4878

As per OpenAPI specification guidance for operationID field, follow programmatic conventions for operationId field. To me that means as if I were defining a method or function name.
This field is not used in the API docs as far as I can tell. There were
many different naming conventions across APIs. I've aligned to be camel case.
This helps facilitate API SDK generation as all endpoints can have a function name based on the operation ID and have it have sufficient context to be unique amongst all APIs.

What changed?

  • Make operation IDs consistent and follow programmatic conventions

Release notes draft

  • A valued partner has put in the heroic work to make the OAS operation IDs programmatic across our public APIs. The operationId property is now consistently camelCase and relates to the plain-language name of the endpoint. Thanks, @bobbyshaw!

Anything else?

ping @bobbyshaw @bc-hnbarr @becomevocal @bigcommerce/dev-docs-team

bobbyshaw and others added 5 commits September 16, 2023 12:35
Otherwise OpenAPI parsing error is:

Colons must be followed by a space or an indication character (i.e. " ", ",", "[", "]", "{", "}") at line 2195 (near "value: {\"originalName\":\"BigCommerceLogo.jpeg\",\"temporaryPath\":\"121_fbfb71dfc5a5d911f62d8e35dedd6e45.jpeg\",\"path\":\"f606efcae7e179970b19c3658142c5d0.jpeg\"}").
…conventions.

As per OpenAPI specification guidance for operationID field, follow programmatic
conventions for operationId field. To me that means as if I were defining a method
or function name.

This field is not used in the API docs as far as I can tell. There were
many different naming conventions across APIs. I've aligned to be camel case.

This help facilitate API SDK generation as all endpoints can have a function named
based on the operation ID and it have sufficient context to be unique amongst all APIs
@slsriehl slsriehl self-assigned this Jan 15, 2024
@slsriehl
Copy link
Contributor Author

Merging following review from @bobbyshaw.

If this commit broke your API client, see https://github.com/bigcommerce/docs/releases/tag/before-operation-id-change.

@slsriehl slsriehl merged commit bd93e79 into main Jan 15, 2024
4 checks passed
@slsriehl slsriehl deleted the bobbyshaw-consistent-operation-ids branch January 15, 2024 16:37
bc-tgomez pushed a commit that referenced this pull request Apr 26, 2024
…tent & programmatic (#45)

<!-- Ticket number or summary of work -->
# [DEVDOCS-4878]

> As per OpenAPI specification guidance for operationID field, follow
programmatic conventions for operationId field. To me that means as if I
were defining a method or function name.
> This field is not used in the API docs as far as I can tell. There
were
many different naming conventions across APIs. I've aligned to be camel
case.
> This helps facilitate API SDK generation as all endpoints can have a
function name based on the operation ID and have it have sufficient
context to be unique amongst all APIs.

## What changed?
* Make operation IDs consistent and follow programmatic conventions

## Release notes draft
* A valued partner has put in the heroic work to make the OAS operation
IDs programmatic across our public APIs. The operationId property is now
consistently camelCase and relates to the plain-language name of the
endpoint. Thanks, @bobbyshaw!

## Anything else?
* Original PR [bigcommerce/api-specs
1469](bigcommerce/api-specs#1469)
* Related Issue [bigcommerce/api-specs
1143](bigcommerce/api-specs#1143)
* Tag for last commit before this -- https://github.com/bigcommerce/docs/releases/tag/before-operation-id-change

---------

Co-authored-by: Tom Robertshaw <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants