Giter Site home page Giter Site logo

abdullah-v / turkce-atasozleri-icin-api Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 0.0 69 KB

🗄️ Türkçe atasözleri için API

Home Page: https://turkce-atasozleri-api.herokuapp.com

JavaScript 100.00%
nodejs javascript api turkish proverbs turkce-kaynak

turkce-atasozleri-icin-api's Introduction

Türkçe atasözleri için APİ

Kullanım

HTTP istek tipi : POST

Parametreler

İsim Tanım Alabileceği değerler Varsayılan değer
splitted Dönen cevabın alfabetik olarak
bölünüp bölünmeyeceğini tanımlar
true,false true
letter Sadece belirtilen harfle başlayan
atasözlerini getirir
a-dan z-ye kadar tüm harfler.Liste vermeniz gerekmektedir.Listeye birden fazla harfde vere bilirsiniz Hiçbir değer vermediğiniz takdirde tüm harfler gelicek
limit Dönen listenin uzunluğunu tanımlar.Bu parametrenin çalışması için splitted parametresinin false olması gerekir. sayı Değer vermediğiniz takdirde hicbir kisitlama olmayacaktir.

Örnekler

NOT : Kolaylık olması açısından örneklerde axios kütüphanesini kullandım.axios-u npm i --save axios komutuyla indire bilirsiniz.

 axios.post("https://turkce-atasozleri-api.herokuapp.com/")
    .then(result => {
        console.log(result.data);
    })

// Çıktı:
// Hiç bir parametre verilmediği için tüm atasözlerini alfabetik bir şekilde bölünmüs olarak getirir
 axios.post("https://turkce-atasozleri-api.herokuapp.com/",{limit:15}) // limit parametresi calismaz
    .then(result => {
        console.log(result.data);
    })

// Çıktı:
// Tum atasozlerini bolumus sekilde getirir
axios.post("https://turkce-atasozleri-api.herokuapp.com/",{letter:["a","b","e"],splitted:false}) 
    .then(result => {
        console.log(result.data);
    })

// Çıktı:
// a,b ve e harfleri ile baslayan tum atasozlerini getirir
axios.post("https://turkce-atasozleri-api.herokuapp.com/",{letter:["a"],limit:13})
    .then(result => {
        console.log(result.data);
    })
// a harfi ile baslayan 13 atsozu getirir
axios.post("https://turkce-atasozleri-api.herokuapp.com/",{letter:["a","b","e"],limit:200})
    .then(result => {
        console.log(result.data);
    })

// Çıktı: a,b ve e harfleri ile baslayan 200 atasozu getirir.(a ve b harflerinde atasozu cok oldugu icin bu kod e harfini getirmez(limiti kaldirin ve ya artirin))
axios.post("https://turkce-atasozleri-api.herokuapp.com/",{letter:["a","b","e"],splitted:false}) // Yanlis parametre fakat calisir
    .then(result => {
        console.log(result.data);
    })

// Çıktı: a,b ve e harfleri ile baslayan tum atasozlerini getirir(Yanlis parametre fakat calisir) 
axios.post("https://turkce-atasozleri-api.herokuapp.com/",{letter:["a","b","e"],splitted:false})
    .then(result => {
        console.log(result.data);
    })

// Çıktı: a,b ve e harfleri ile baslayan tum atasozlerini getirir(Dogru parametre) 

Özellikler

  • Tahminen 1400 atasözü
  • Günün her saati aktif
  • Dokümantasyon
  • Örnekler
  • Özelleştirilebilir
  • Açık kaynak

turkce-atasozleri-icin-api's People

Contributors

abdullah-v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.