-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data CSV export ve Send email endpointleri #141
base: main
Are you sure you want to change the base?
Data CSV export ve Send email endpointleri #141
Conversation
- Mevcut bulunan modeller icin fileStream veya direkt csv dosya olarak indirme yapilabilmektedir. UTF-8 desteğinin kontrole ihtiyacı var. Local docker-compose-local.yml eklendi: - Kullandığım bu şekli diğer insanlara yardımcı olabilir diye eklemek istecsrb.
- ornek mailExport kullanimi READ.me'ye eklendics
module.exports = async function (fastifyInstance) { | ||
|
||
fastifyInstance.get( | ||
"/export", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bu disariya acik bir endpoint olmamali.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue'da endpoint diye belirtilmis? Ornek auth kullanan benzemesini istediginiz baska endpoint var mi kodda, ona uygun degistireyim? ya da exportYardimEtCsv.js gibi tekli bir dosya mi istiyoruz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eger istenilen script tarzi bir seyse, asagidaki PR i olusturdum
#143
# Conflicts: # package-lock.json # package.json
# Conflicts: # package-lock.json
Issue: #122
3 yeni endpoint ekledim, issue'da belirtildigi gibi mevcut endpointlere dokunmadim.
Bu endpointlerin dokumantasyonunu ve ornek kullanimlarini ekledim, kisaca:
export (GET)
Ilgili modelleri duz csv dosyasi olarak download eder
exportStream (GET)
Ilgili modelleri stream csv dosyasi olarak download eder
mailExport (POST)
Email'i sendgrid uzerinden free-tear'dan kurdum ve env ustunden API KEY'i almasi gerekiyor. Ornek gonderdigim dosya ekran goruntusunu ekliyorum.