Path holds the relative paths to the individual endpoints.
| 41 | |
| 42 | // Path holds the relative paths to the individual endpoints. |
| 43 | Path struct { |
| 44 | // Ref allows for an external definition of this path item. |
| 45 | Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"` |
| 46 | // Get defines a GET operation on this path. |
| 47 | Get *Operation `json:"get,omitempty" yaml:"get,omitempty"` |
| 48 | // Put defines a PUT operation on this path. |
| 49 | Put *Operation `json:"put,omitempty" yaml:"put,omitempty"` |
| 50 | // Post defines a POST operation on this path. |
| 51 | Post *Operation `json:"post,omitempty" yaml:"post,omitempty"` |
| 52 | // Delete defines a DELETE operation on this path. |
| 53 | Delete *Operation `json:"delete,omitempty" yaml:"delete,omitempty"` |
| 54 | // Options defines a OPTIONS operation on this path. |
| 55 | Options *Operation `json:"options,omitempty" yaml:"options,omitempty"` |
| 56 | // Head defines a HEAD operation on this path. |
| 57 | Head *Operation `json:"head,omitempty" yaml:"head,omitempty"` |
| 58 | // Patch defines a PATCH operation on this path. |
| 59 | Patch *Operation `json:"patch,omitempty" yaml:"patch,omitempty"` |
| 60 | // Parameters is the list of parameters that are applicable for all the operations |
| 61 | // described under this path. |
| 62 | Parameters []*Parameter `json:"parameters,omitempty" yaml:"parameters,omitempty"` |
| 63 | // Extensions defines the swagger extensions. |
| 64 | Extensions map[string]any `json:"-" yaml:"-"` |
| 65 | } |
| 66 | |
| 67 | // Operation describes a single API operation on a path. |
| 68 | Operation struct { |
no outgoing calls
no test coverage detected