MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / oa_method

Function oa_method

internal/cbm/openapi.c:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190static bool oa_method(const char *k) {
191 static const char *const methods[] = {"get", "put", "post", "delete", "options",
192 "head", "patch", "trace", NULL};
193 for (int i = 0; methods[i]; i++) {
194 if (strcmp(k, methods[i]) == 0) {
195 return true;
196 }
197 }
198 return false;
199}
200
201void cbm_extract_openapi(CBMExtractCtx *ctx) {
202 if (!ctx || !ctx->result || !ctx->source || ts_node_is_null(ctx->root) ||

Callers 1

cbm_extract_openapiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected