Repository navigation
docs(entegrasyon): API dokümanları ve GraphQL şeması artık token istiyor - #60
Open
kerem-acer wants to merge 1 commit into
Open
kerem-acer wants to merge 1 commit into
kerem-acer wants to merge 1 commit into
Conversation
Core API'nin OpenAPI açıklaması kitleye göre beş dokümana bölündü (InsurUp/core#1602): public herkese açık, customer müşteri token'ı, agent acente token'ı ister. /openapi/v1.json kaldırıldı; /graphql/schema ve introspection acente token'ı ister. - "Tüm endpoint'ler için api.insurup.com/scalar" yönlendirmeleri, rehberin kitlesine göre token ve doküman adını söyleyecek şekilde api.insurup.com giriş sayfasına çevrildi. - musteri-belgesi-pdf: v1.json yerine agent.json ve token notu. - GraphQL şemasının anonim olduğu yazan iki yer düzeltildi; curl örneğine Authorization eklendi, Nitro (api.insurup.com/graphql/ui) eklendi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Neden
InsurUp/core#1602 Core API'nin dokümantasyon erişimini değiştiriyor ve bu sitedeki bazı yönlendirmeler o PR deploy edilince yanlış olacak:
/openapi/v1.jsonkaldırıldı. Yerine kitleye göre beş doküman geldi:publicherkese açık,customermüşteri token'ı,agentacente token'ı,adminadmin panel token'ı ister.api.insurup.com/scalartoken'sız açılınca artık yalnız Public dokümanı gösteriyor. Bu sitedeki rehberler oraya "tüm endpoint'ler" diye yönlendiriyordu./graphql/schemave GraphQL introspection artık acente token'ı istiyor. İki sayfa şemanın anonim olduğunu söylüyordu.api.insurup.comkök adresi artık bir giriş sayfası. Token kutusu, beş doküman (Scalar / Swagger UI), GraphQL (Nitro) ve SignalR hub'larına giden linkler orada.Ne değişiyor
musteri-belgesi-pdfv1.jsonyerineagent.json+Authorization: Bearernotumobil-projeler…,tss-aile,web-satis-platformunda-subeli…,self-servis…api.insurup.com; müşteri endpoint'leri için Customer dokümanı ve müşteri token'ıb2b-crm,dis-policeapi.insurup.com; Agent dokümanı ve acente token'ıgraphql-crm-listecurlörneğine Authorization eklendi; Nitro (/graphql/ui/) satırı eklendib2b-crm/graphql/schemapublic, authentication gerektirmez" → acente token'ı gerekirMerge zamanı
InsurUp/core#1602 production'a çıktıktan sonra merge edin. Daha önce merge edilirse bu sayfalar henüz var olmayan davranışı anlatır.
Bu PR'da olmayan
mobil-projeler-icin-web-satis-platformu-entegrasyonusayfası müşteri uygulamalarına SignalR event'lerini (ReceiveProposalProduct*) dinlemelerini söylüyor. Ancak bu event'leri gönderen/hubs/proposal-detailhub'ı yalnız acente token'ı kabul ediyor. Hangisinin doğru olduğu ayrı bir karar; bu PR o bölüme dokunmuyor.🤖 Generated with Claude Code