Skip to main content

parse_resource

Function parse_resource 

Source
pub fn parse_resource(yaml: &str) -> Result<ResourceDefinition, ParseError>
Expand description

Parse a YAML string into a ResourceDefinition.

After parsing, convention-based endpoint defaults are applied: for known endpoint names (list, get, create, update, delete), method and path are inferred from the resource name if not explicitly provided.