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ı

cURL Nedir?

URL üzerinden veri transferi yapmamızı sağlayan bir komut satırı aracıdır. REST API çerçeverinde sorgu adreslerine yapılan isteklerde sıklıkla kullanılır. HTTP, HTTPS, FTP, FTPS, GOPHER, GOPHERS, IMAP, IMAPS vs.. bir çok protokolü desteklemektedir.

cURL indir

  • https://curl.se/download.html
  • https://git-scm.com/downloads (Git Bash kullanımı için)

cURL komut sseçenekleri

  • -i (--include): Çıktı içerisinde HTTP başlıklarını da gösterir.
  • -I (--head): Yalnızca HTTP başlıklarını görmek için kullanılır.
  • -o (--output) <file> : Çıktıyı bir dosyaya yazdırmak için kullanılır.
  • -v (--verbose): Daha fazla detay.

Çalışmada bulunan cURL komutları

GET A FILM DTEAIL (SWAPI)
curl https://swapi.dev/api/films/1/
GET POPULAR MOVIES (TMDBAPI)
curl https://api.themoviedb.org/3/movie/popular?api_key=your_api_key
GET POPULAR MOVIES (TMDBAPI) -d seçeneği ile
curl -X GET -G -d api_key=your_api_key https://api.themoviedb.org/3/movie/popular
GET A MOVIE DETAIL (TMDBAPI) -d seçeneği ile
curl -X GET -G -d api_key=your_api_key https://api.themoviedb.org/3/movie/:movie_id
GET ALL EMPLOYEES (Fake API)
curl http://localhost:3000/employees
GET AN EMPLOYEE DETAIL (Fake API)
curl http://localhost:3000/employees/:employee_id
POST AN EMPLOYEE (Fake API)
curl -X POST -H "Content-Type: application/json" -d '{ "first_name": "Ricardo", "last_name": "Quaresma", "email": "[email protected]", "gender": "Male", "roleId": 3 }' http://localhost:3000/employees
DELETE AN EMPLOYEE (Fake API)
curl -X DELETE http://localhost:3000/employees/:employee_id
UPDATE AN EMPLOYEE (Fake API) - PATCH
curl -X PATCH -H "Content-Type: application/json" -d '{ "first_name": "Ricardo", "last_name": "Quaresma"}' http://localhost:3000/employees/:employee_id
UPDATE AN EMPLOYEE (Fake API) - PUT
curl -X PUT -H "Content-Type: application/json" -d '{ "first_name": "Ricardo", "last_name": "Quaresma"}' http://localhost:3000/employees/:employee_id


Daha Fazlası İçin

  • cURL - Dökümantasyon

Quiz

Answer the questions to check your understanding.

This lesson includes a short quiz.

Previous

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