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

Generate operationId from controller method name #183

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

drmathias
Copy link

Generates and includes an operationId for each endpoint, based on the method name. The purpose of this is so that it is viable to code generate an API client, with unambiguous method names. Updated some of the controller method names to make it clearer what the endpoint does.

Example output:

"/api/command/send": {
  "post": {
    "tags": [
      "Command"
    ],
    "operationId": "sendTransaction",
    "requestBody": {
      "content": {
        "application/json-patch+json": {
          "schema": {
            "type": "string"
          }
        },
        "application/json": {
          "schema": {
            "type": "string"
          }
        },
        "text/json": {
          "schema": {
            "type": "string"
          }
        },
        "application/*+json": {
          "schema": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "200": {
        "description": "Success"
      }
    }
  }
}

image

@dangershony
Copy link
Member

@drmathias this PR seem to have been forgotten are you still keen to push this in ?

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.

2 participants