Files
ginimageApi/docs/mcp-tools/endpoint_contract_find.md
Beyhan Oğur e04ba85564 first commit
2026-04-26 21:40:14 +03:00

37 lines
823 B
Markdown

# Tool Spec: endpoint_contract_find
## Amac
Verilen endpointin handler, model ve response baglarini tek ciktida gostermek.
## Input
- method (zorunlu, string): GET/POST/PUT/DELETE
- path (zorunlu, string): Endpoint yolu (ornek: /api/v1/images)
## Output
- routeFile: Route taniminin oldugu dosya
- handler: Handler fonksiyonu
- models: Ilgili model dosyalari
- responseShape: Donen temel alanlar
## Ornek Istek
{
"method": "GET",
"path": "/api/v1/images"
}
## Ornek Cevap
{
"routeFile": "routers/router.go",
"handler": "imageHandlers.ListImages",
"models": ["app/images/models/images.go"],
"responseShape": ["items", "count"]
}
## Sinirlar
- Sadece tanimli route'lar analiz edilir.
- Dinamik davranislar (runtime branch) tam temsil edilmeyebilir.
## Hata Durumlari
- invalid params
- endpoint bulunamadi