Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 102

Refer to the exhibit.

What data is expected by the POST /accounts endpoint?

A.

B.

C.

D.

    Correct Answer:

    The data expected by the POST /accounts endpoint should be in JSON format and include the fields: name, address, customer_since, balance, and bank_agent_id. Hence, the correct choice is C.

Discussion
almoraima

C is correct

gokulmoorthi

C is correct. The content-type is application/json

aook002

The data expected by POST request is name, address, customer_since, balance, bank_agent_id. This rules out answers A and D as id is not expected. Second, look at the data type - application/json - rules out item B. Remaining answer = C.

ExamDev

C is the correct answer. When creating on post ID is not required (backend creates the ID, not post request), and if you see the example it expects application/json

Sowmya0249

D is 100% correct, Observe the output when you retrieve the data.

Sowmya0249

Sorry my bad, C is correct. explanation same. Mis type happend

miguel_romero

C is correct

nilan84

C is correct