Skip to content

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