37 lines
823 B
Markdown
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
|