MCPcopy Create free account
hub / github.com/UiPath/uipathcli / parsePath

Method parsePath

parser/openapi_parser.go:329–336  ·  view source on GitHub ↗
(definitionName string, document openapi3.T, baseUri url.URL, route string, pathItem openapi3.PathItem)

Source from the content-addressed store, hash-verified

327}
328
329func (p OpenApiParser) parsePath(definitionName string, document openapi3.T, baseUri url.URL, route string, pathItem openapi3.PathItem) []Operation {
330 operations := []Operation{}
331 for method := range pathItem.Operations() {
332 operation := pathItem.GetOperation(method)
333 operations = append(operations, p.parseOperation(definitionName, document, method, baseUri, route, *operation, pathItem.Parameters))
334 }
335 return operations
336}
337
338func (p OpenApiParser) parse(definitionName string, document openapi3.T) (*Definition, error) {
339 uri, err := p.getUri(document)

Callers 1

parseMethod · 0.95

Calls 1

parseOperationMethod · 0.95

Tested by

no test coverage detected