Repository navigation
Feature/teminat endpoints - #7
Merged
metehanboy merged 2 commits intoOct 8, 2026
Merged
Conversation
New teminat endpoint category is a feature release (minor bump). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Değişiklik Açıklaması
EPYS Teminat modülü servisleri yeni
teminatkategorisi olarak eklendi:ep.teminat.<metod>(...). EPYS Teminat Modülü Web Servis Dokümanı v1.0'da (EPİAŞ, 26.09.2023) belgelenen 21 uç (hepsiPOST) kapsanıyor. Kütüphane kodunda (src/epint/*.py) değişiklik yok; yalnızca swagger, test ve doküman eklendi.Değişiklik Türü
İlgili Issue
Yok.
Değişiklik Detayları
Ne Değişti?
src/epint/endpoints/teminat/swagger.json: 21 uç, 104 tanım.tests/test_teminat_category.py: 5 yeni test..claude/skills/epint/services/teminat.md: kategori dokümanı. SKILL.md, overview.md ve README kategori listelerineteminatsatırı eklendi.Neden Değişti?
Teminat verileri (başlangıç, GÖGİ, ek, dengesizlik, risk, YEK, destekleme bedeli teminatları ve teminat raporu) epint üzerinden çekilemiyordu.
Teminat tarafında EPİAŞ'ın 6 ayrı mikroservisi var:
gogi-collateral,collateral,imbalance-collateral,risk-collateral,rbs-collateral,res-collateral. Bunları tek birteminatkategorisinde topladım.Swagger'da
basePathyok, path'ler servis önekiyle yazıldı (/gogi-collateral/rest/v1/...). Bir swagger tek basePath taşıyabiliyor.basePath: "/"verilirsebuildurlURL'de//üretiyor.Şemalar
https://epys.epias.com.tr/<servis>/v2/api-docsadresinden alındı.index-acile aynı dönüşümler uygulandı:mockedorganizationid) çıkarıldı.RestResponse«X»adlarıRestResponseXolarak değiştirildi.${...}şablonlu açıklamalar silindi.api-docs'ta dokümanda olmayan dahili uçlar da var (actuator, takasbank vb.); bunlar bilerek dahil edilmedi.
Nasıl Test Edildi?
Test Sonuçları
Ortam: Python 3.14.4, pytest 9.1.1 (yerel). CI 3.11/3.12'de çalıştıracak.
Kontrol Listesi
black,isort): yeni test dosyası içinBreaking Changes
Ek Notlar
black --check tests,main'de zaten var olantests/test_http_client.pyvetests/test_swagger_model.pydosyalarındaki 88 karakteri aşan satırlar yüzünden başarısız oluyor.main'in son commit'inde (38e2110) de "Lint (new code)" işi failure durumunda.contentaltındaki yapısı api-docs şemasından alındı. Prod ile test ortamı arasında 3 küçük şema farkı vardı: yanıt şemaları prod'dan alındı, istek DTO'larına test ortamındaki ek alan (paymentDate) de eklendi.Review Notları
imbalance-collateralgibi servis bazlı adlardan kaçınıldı:ep.imbalance_collateral, alias fuzzy eşleşmesi yüzündenreconciliation-imbalance'a gidiyor.ep.teminatdoğru çözülüyor ve testle kontrol ediliyor.services/teminat.md'ye eklendi: uçta olmayan bir tarih alanı (ör.validityDatealan bir ucapaymentDate) sessizce mevcut tarih alanına yazılıyor.🤖 Generated with Claude Code