DEV Community

hdemiray
hdemiray

Posted on

Asp.Net Web Servis Giriş Rest-Ful Web Api

Web Servislere neden ihtiyaç duyulur ?

İnternete erişimi olan cihazların platform bağımlı olmaksızın bu cihazla iletişime geçmek ve http protokolü ile veri iletmek.

  • Metotlarımızı http protokolü üzerinden paylaşabiliriz.
  • Diğer yazılımcıların sadece arayüze odaklanması sağlanabilir.
  • İş bölümü için uygundur

Rest-Ful (Reperestantional State Transfer) : Restful Api'ler yukarıdaki 3 özelliğin tamamını sağlar.

Servislerde genelde ortak format olarak json format seçilir.

  • Json format hem hafiftir. (Boyut olarak)
  • Okunması diğer formatlara göre (xml vb..) çok daha kolaydır.
  • Kabul görmüş bir formattır genelde bu uygulanır.

Rest-ful Web Api'ler http protokolü kullanır , yani bir url'e ihtiyacımız var. Kısaca yazacağımız servisi kullanabilmek için server'a atmamız ve internete açmamız gerekir.

  • Url (https://api.github.com/users)
  • İnternet Media Type (Json,xml,images vs..)
  • Standart HTTP Metodları kullanırız (GET,POST,PUT,DELETE vs..)

WEB SERVİSLERİNİN AMACI FARKLI PLATFORMLAR ARASINDA AYNI VERİ PAYLAŞIMINI SAĞLAMAK

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay