0
0
Rest APIprogramming~10 mins

REST vs SOAP vs GraphQL comparison in Rest API - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the protocol that uses XML messages and strict standards.

Rest API
The protocol that uses XML messages and strict standards is [1].
Drag options to blanks, or click blank then click option'
ASOAP
BREST
CGraphQL
DHTTP
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing REST with SOAP because both use HTTP.
2fill in blank
medium

Complete the code to identify the API style that uses flexible queries to get only needed data.

Rest API
The API style that allows clients to request exactly the data they need is [1].
Drag options to blanks, or click blank then click option'
AGraphQL
BREST
CRPC
DSOAP
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking REST allows flexible queries like GraphQL.
3fill in blank
hard

Fix the error in the statement about REST's data format.

Rest API
REST APIs commonly use [1] as the data format for requests and responses.
Drag options to blanks, or click blank then click option'
AYAML
BXML
CHTML
DJSON
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming REST uses XML like SOAP.
4fill in blank
hard

Fill all three blanks to complete the comparison of REST and SOAP.

Rest API
REST is [1] and uses [2] for data, while SOAP is [3] and uses XML.
Drag options to blanks, or click blank then click option'
Astateless
Bstateful
CJSON
DHTTP
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up stateless and stateful concepts.
5fill in blank
hard

Fill all three blanks to complete the GraphQL query example.

Rest API
query { [1] { [2] [3] } }
Drag options to blanks, or click blank then click option'
Auser
Bname
Cemail
Dposts
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'posts' instead of user fields.