first commit
This commit is contained in:
36
docs/mcp-tools/endpoint_contract_find.md
Normal file
36
docs/mcp-tools/endpoint_contract_find.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user