Skip to content Skip to sidebar Skip to footer

How To Get Rid Of The Error In Swagger - There Is No Defined Post Operation.", "allowedmethods": [ > "get" ] }

I am running swagger with following code and getting error while performing POST operation.. swagger: '2.0' info: version: '0.0.1' title: Hello World App # during dev, should p

Solution 1:

You have defined this:

paths:
  /hello:
    get:

but you want to also define POST:

paths:
  /hello:
    get:
        - something
    post:
        - something else

Post a Comment for "How To Get Rid Of The Error In Swagger - There Is No Defined Post Operation.", "allowedmethods": [ > "get" ] }"