Most of the Swagger examples I've seen respond with a 200 "OK" to a POST. 
HTTP standards direct you to use a 201 "created' and return the location of 
the created resource as a uri. Is the correct way to represent this 
response in Swagger simply a string, as below, or is there a better 
structure for a returned location?

responses: 
        201: 
          description: "Resource created" 
          schema: 
            type: "string"

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to