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ı

HTTP Metotları

GET

  • Verileri almak - listelemek için kullanılan istek metodudur.
  • http://api.example.com/users
  • http://api.example.com/users/1

POST

  • Belirli bir kaynağa veri göndermek için kullanılır.
  • http://api.example.com/users

PUT

  • Belirli bir kaynaktaki verinin tamamının değiştirilmesi için kullanılan metodtur.
  • http://api.example.com/users/1
  • { “name": "Gurcan", "age": 40}

PATCH

  • Belirli bir kaynaktaki verilerin bir kısmının değiştirilmesi için kullanılan metodtur.
  • http://api.example.com/users/1
  • { "name": "Gurcan"}

DELETE

  • Belirli bir kaynaktaki verilerin silinmesi için kullanılan metodtur.
  • http://api.example.com/users/1

CONNECT - TRACE - OPTIONS - HEAD

SAFE Metotlar

GET – HEAD – OPTIONS : Sunucu “state” tarafında değişiklik oluşturmazlar. “Read-only” yapısındadırlar.

IDEMPOTENT Metotlar

GET – HEAD - OPTIONS – DELETE – PUT – TRACE : Tekrar durumunda sunucu state yapısında herhangi bir yan etki bırakmazlar. Safe metodlar, idempotent'tır.

Endpoint (Sorgu Adresi)

REST API kullanımında gönderilen istek ile verilen cevap için belirlenen buluşma noktasıdır.

Root(Base) /Path yapısından oluşur, isimler kullanılır, fiil ilgili HTTP metodu ile belirtilir. Dökümantasyon tarafından belirtilir.

  • https://jsonplaceholder.typicode.com /posts

Değişen değer için genelde (:) kullanılır.

  • https://jsonplaceholder.typicode.com/posts/1 => /posts/:id veya /posts/{{id}}
  • https://jsonplaceholder.typicode.com/posts/1/comments

Sorgu parametreleri için (?) kullanılır.

  • Aslında sorgu parametreleri REST yapısının bir parçası değildir ancak sorgu adreslerinde sıkça rastlarız.
  • http://example.com/articles?sort=author&date=published


Daha Fazlası İçin

  • HTTP Methods - MDN

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