Skip to content

[Java-PlayFramework] response with status 201 #7583

@tzimisce012

Description

@tzimisce012
Description

When the response status is 201 (created), the autogenerated controller is giving a 200 (ok).

Swagger-codegen version

2.3.0-SNAPSHOT

Swagger declaration file content or url
"/phone_numbers/{phone_number}/foo": {
      "post": {
        "tags": [
          "foo"
        ],
        "operationId": "createFoo",
        "description": "Create foo for a phone number",
        "responses": {
          "201": {
            "description": "Created"
            }
Steps to reproduce

Just check this line. We are not considering the response that the swagger could give.

Any idea @JFCote ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions