Ana içeriğe atla

Şablonları Listele

GET /api/projects/:projectId/templates
Bir projeye ait tüm prompt şablonlarını döndürür.
[
  {
    "id": 1,
    "projectId": 1,
    "name": "Feature Template",
    "content": "You are working on {{project_name}}...",
    "taskType": "feature",
    "model": "sonnet",
    "thinkingEffort": "medium",
    "createdAt": "2025-01-15T10:00:00Z"
  }
]

Şablon Getir

GET /api/projects/:projectId/templates/:id

Şablon Oluştur

POST /api/projects/:projectId/templates
Content-Type: application/json
{
  "name": "Feature Template",
  "content": "You are working on {{project_name}}.\nTask: {{task_title}}\nType: {{task_type}}\n\nWrite clean, tested code.",
  "taskType": "feature",
  "model": "sonnet",
  "thinkingEffort": "medium"
}
AlanZorunluVarsayılanAçıklama
nameEvetŞablon görünen adı
contentEvetİsteğe bağlı {{variables}} içeren şablon metni
taskTypeHayırBu görev türüne otomatik uygula
modelHayırŞablon kullanıldığında varsayılan model
thinkingEffortHayırVarsayılan düşünme çabası

Şablon Değişkenleri

DeğişkenKarşılığı
{{project_name}}Proje adı
{{task_title}}Görev başlığı
{{task_type}}Görev türü (feature, bugfix, vb.)
{{priority}}Öncelik seviyesi
{{model}}Seçilen model

Şablon Güncelle

PUT /api/projects/:projectId/templates/:id
Content-Type: application/json
Oluşturma ile aynı alanları kabul eder.

Şablon Sil

DELETE /api/projects/:projectId/templates/:id