open_api_spex v1.1.3 OpenApiSpex.PathItem View Source
Defines the OpenApiSpex.PathItem.t
type.
Link to this section Summary
Types
Represents a route from in a Plug/Phoenix application.
Eg from the generated __routes__
function in a Phoenix.Router module
Functions
Builds a PathItem struct from a list of routes that share a path
Link to this section Types
Represents a route from in a Plug/Phoenix application.
Eg from the generated __routes__
function in a Phoenix.Router module.
Link to this type
t()
View Source
t() :: %OpenApiSpex.PathItem{"$ref": String.t, delete: OpenApiSpex.Operation.t, description: String.t, get: OpenApiSpex.Operation.t, head: OpenApiSpex.Operation.t, options: OpenApiSpex.Operation.t, parameters: [OpenApiSpex.Parameter.t | OpenApiSpex.Reference.t], patch: OpenApiSpex.Operation.t, post: OpenApiSpex.Operation.t, put: OpenApiSpex.Operation.t, servers: [OpenApiSpex.Server.t], summary: String.t, trace: OpenApiSpex.Operation.t}
Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.
Link to this section Functions
Builds a PathItem struct from a list of routes that share a path.