Cohorts
  • Discover
  • About Us
  • Blog
  • Patika.dev
  • Web3

REST API

Rest-Api Çalışma Mantığı

Rest-Api Giriş
API Nedir?
Rest-Api Nedir?
REST Prensipleri I
REST Prensipleri II
HTTP Nedir?
HTTP Durum Kodları
HTTP Metotları
JSON Nedir?
JSON-JavaSript-XML
Postman

Star Wars API
TMDB API
Fake API
cURL Kullanımı

JSON Nedir?

JavaScript Object Notation ifadesinin kısaltmasıdır. Veri depolamak veya veri iletmek için kullanılan metin tabanlı bir söz dizimi yapısıdır. Genellikle bir sunucu ve istemci arasında veri alışverişi için veya yazılımların genel ayarları için kullanılan bir formattır.

  • Drupal/config.json
  • Node.js/package.json
  • https://jsonplaceholder.typicode.com/users

JSON Veri Tipleri

  • String: "Sample String", "test1234", "A"
  • Number: 7, 3.2, -97.238
  • Boolean: true, false
  • Null: null
  • Array: [2,3,5,7] , ["İstanbul", "Ankara", "İzmir"] Array içerisinde kullanılan değerler sıralı olarak listelenebilir.
  • Object { "name": "Gürcan", "age":40 } JSON nesneleri verileri key-value çiftleri olarak tanımlar.

Yukarıda görmüş olduğunuz veri tiplerinin tamamı tekil olarak uygun bir JSON formatı işlevini görür. Ancak tek bir 3, string veya true gibi ifadeler için ayrı bir .json uzantılı dosya oluşturmak mantıklı değildir. Bu nedenle JSON doayaları bir array, nesne ve/veya bunların içiçe geçmiş formlarından oluşur.

Örnek :

movie.json

{
    "id":1,
    "title": "Matrix",
    "actors": ["Keanu Reeves", "Carrie Anne Moss"],
    "published_year": 1999,
    "genre": {
      "id": 6,
      "name": "Action"
    },
    "rating": 7.9
}   
      

JSON dosyasının uygun formatta olup olmadığını kontrol etmek için JSONLINT ( https://jsonlint.com/ ) gibi çevrimiçi araçlar kullanabiliriz.


Daha Fazlası İçin

  • JSON.ORG

Quiz

Answer the questions to check your understanding.

This lesson includes a short quiz.

Previous
Next

Lesson discussion

Swap insights and ask questions about “REST API”.

Enroll to participate
Start the course to unlock the discussion. Enrolling helps us keep conversations relevant to learners.
Cohorts
WebsiteDiscoverBlogPatika.devRise In
CoursesCircleRustSoliditySolanaWeb3 FundamentalsBlockchain Basics
CompanyAbout UsTerms of UsePrivacy PolicyGDPR NoticeCookies
Don't miss any update!

Disclaimer: The information, programs, and events provided on https://cohorts.patika.dev is strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice, nor do we make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://cohorts.patika.dev disclaims any responsibility for financial decisions made by users based on the information provided here.

© 2026 Cohorts, All rights reserved