REST API den dönen JSON İçerik Türleri nelerdir?

json content type mime rest api json içerik türleri

Merhabalar, bu yazımızda JSON dan,  JSON içerik türleri nden ve çok kullanılan bir api olan REST API den  bahsedeceğiz. Hangi türleri çok kullanılıyor, hangi türü kullanmalıyız ve kaldırılan türleri göreceğiz.

Hello, in this article we will talk about JSON, JSON content types and REST API, which is a widely used api. We will see which types are most used, which type we should use, and the types that have been removed.

JSON (JavaScript Object Notation), verileri kolayca okunabilir formatta temsil etmek için kullanılan bir veri biçimidir. Postman, RESTful API’ler(geliştiricilerin yazdığı web uygulamalarının birbirleriyle iletişim kurmalarını sağlayan arayüz) için bir geliştirici aracıdır. Postman, REST API testleri, dokümantasyonu, kolay bir şekilde isteklerin gönderilmesi ve yanıtların incelemesi gibi birçok faydalı özellik sunar. REST API, sunucu ve istemci arasında veri aktarımı yapmak için HTTP protokolünü kullanır. Yani REST API’ler, web uygulamaları arasında etkileşim sağlamak için kullanılan bir ara yüz olarak kullanılırlar. Postman de bir REST API ile çalırken gelen cevapların türlerini de seçebiliyoruz. 

JSON (JavaScript Object Notation) is a data format used to represent data in an easily readable format. Postman is a developer tool used for RESTful APIs, which are interfaces that allow web applications written by developers to communicate with each other. Postman offers many useful features, such as REST API testing, documentation, easy sending of requests, and examination of responses. REST APIs use the HTTP protocol to transfer data between servers and clients. Therefore, REST APIs are used as an interface for interaction between web applications. When working with a REST API in Postman, we can also choose the types of incoming responses. 

JSON İçerik Türleri - (JSON Content Types)

  • Content-Type: application/json – JSON
  • Content-Type: application/javascript – JSON-P
  • Content-Type: application/x-javascript – JavaScript
  • Content-Type: text/javascriptJavaScript ancak eski. Eski Internet Explorer sürümleri bunu HTML nitelikleri için kullanıyordu.
  • Content-Type: text/x-javascript – JavaScript Medya Türleri, ancak artık kullanılmıyor.
  • Content-Type: text/x-json – application/json resmi olarak kaydedilmeden önceki JSON.
  • Content-Type: application/json – JSON
  • Content-Type: application/javascript – JSON-P
  • Content-Type: application/x-javascript – JavaScript
  • Content-Type: text/javascript – JavaScript but obsolete. Older Internet Explorer versions used to use it for HTML attributes.
  • Content-Type: text/x-javascript – JavaScript Media Types, but obsolete
  • Content-Type: text/x-json – JSON before application/json got officially registered.

Paylaş

Takip Et

Eğitimin, Eğlencenin ve Haberin Sitesi TEKNOKODİ

İlgili Yazılar