ExamGecko
Question list
Search
Search

Related questions











Question 26 - D-PWF-DS-23 discussion

Report
Export

A user leverages Postman lo send an API request What is the default format of the request1?

A.
XML
Answers
A.
XML
B.
JAVA
Answers
B.
JAVA
C.
JSON
Answers
C.
JSON
D.
CSV
Answers
D.
CSV
Suggested answer: C

Explanation:

When using Postman to send an API request, the default format for the request body is JSON (JavaScript Object Notation). JSON is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is commonly used in API communication because it is language-independent and can be used with most modern programming languages12.

Here's why JSON is the default format:

Human-readable: JSON structures are clear and understandable, making it easy for developers to work with.

Widely supported: JSON is supported by a vast number of APIs and is often the preferred format for RESTful web services.

Efficient: JSON's lightweight nature makes it efficient for network transmission.

While Postman can handle other formats like XML (Option A) and CSV (Option D), and you can write scripts in languages like Java (Option B), JSON remains the default choice for structuring the body of an API request12.

asked 16/09/2024
Prenolan Kamiah
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first