Qore Swagger Module Reference 2.2.0
|
contains the possible responses for an operation More...
#include <Swagger.qm.dox.h>
Inherits ObjectBase.
Public Member Methods | |
constructor (string path, string method, hash< auto > oh, SwaggerSchema swagger) | |
Constructor. More... | |
Public Attributes | |
ResponseObject | defaultResp |
hash< string, ResponseObject > | responses |
contains the possible responses for an operation
ResponsesObject::constructor | ( | string | path, |
string | method, | ||
hash< auto > | oh, | ||
SwaggerSchema | swagger | ||
) |
Constructor.
path | the URI path for the operation |
method | the HTTP method for the operation |
oh | deserialized hash from the source schema description describing the responses for an operation |
swagger | the REST schema for resolving references |
INVALID-FIELD-TYPE | field has invalid type |
REQUIRED-FIELD-MISSING | required field is missing |
EMPTY-RESPONSES | no responses given |
ResponseObject ResponsesObject::defaultResp |
It can be used to cover undeclared responses.
hash<string, ResponseObject> ResponsesObject::responses |
Any HTTP status code can be used as the property name (one property per HTTP status code). Describes the expected response for that HTTP status code.