Files
goaresv3/yapi.md
Beyhan Oğur b6e74bd024 first commit
2026-04-26 21:41:46 +03:00

23 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/benim-projem
├── main.go # Uygulamanın giriş noktası
├── go.mod
├── config/ # Veritabanı ve çevre değişkenleri yapılandırması
├── pkg/ # Paylaşılan yardımcı araçlar (middleware, logger)
├── app/ # Django'daki "apps" klasörü gibi
│ ├── account/
│ │ ├── controllers/ # (veya handlers) HTTP isteklerini karşılar
│ │ ├── models/ # GORM struct'ları
│ │ ├── services/ # İş mantığının (business logic) döndüğü yer
│ │ └── repository/ # Veritabanı sorgularının yapıldığı yer (isteğe bağlı)
│ └── blog/
│ ├── controllers/
│ ├── models/
│ ├── services/
│ └── repository/
└── router/ # Tüm modüllerin rotalarının birleştiği yer
POST /api/v1/auth/register { username, email, password }
POST /api/v1/auth/login { email, password } → access_token + refresh_token
POST /api/v1/auth/refresh { refresh_token } → yeni access_token
GET /api/v1/me Authorization: Bearer <access_token>