MCPcopy Create free account
hub / github.com/bytebase/bytebase / SearchInService

Method SearchInService

backend/api/mcp/openapi_index.go:407–416  ·  view source on GitHub ↗

SearchInService searches for endpoints matching the query within a specific service.

(query, service string)

Source from the content-addressed store, hash-verified

405
406// SearchInService searches for endpoints matching the query within a specific service.
407func (idx *OpenAPIIndex) SearchInService(query, service string) []*EndpointInfo {
408 allResults := idx.Search(query)
409 var filtered []*EndpointInfo
410 for _, ep := range allResults {
411 if ep.Service == service {
412 filtered = append(filtered, ep)
413 }
414 }
415 return filtered
416}
417
418// GetRequestSchema returns the simplified schema properties for a request type.
419func (idx *OpenAPIIndex) GetRequestSchema(schemaRef string) []PropertyInfo {

Callers

nothing calls this directly

Calls 1

SearchMethod · 0.95

Tested by

no test coverage detected