Quiz: Sketching APIs

Test your knowledge about sketching APIs.

1

Which option is a valid sketch for creating an API action given that the response messages are likely to have several link elements in them?

A)
{
"link" : {"id" : "TestAPI", "href" : "http://api.example.org/start"}
}
B)
{
"links" : [
{"id" : "TestAPI", "href" : "http://api.example.org/start"}
]
}
C)
{
links : [
{id : "TestAPI", "href" : "http://api.example.org/start"}
]
}
D)
{
links : [
{id : "TestAPI", href : "http://api.example.org/start"}
]
}
Question 1 of 30 attempted

Get hands-on with 1400+ tech skills courses.