0
0
Rest APIprogramming~10 mins

REST constraints and principles in Rest API - Interactive Code Practice

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

Complete the code to identify the REST constraint that requires each request to contain all information needed to understand it.

Rest API
The REST constraint that requires each request to contain all necessary information is called [1].
Drag options to blanks, or click blank then click option'
AStatelessness
BCacheability
CLayered System
DUniform Interface
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing statelessness with cacheability.
Thinking that the server keeps track of client state.
2fill in blank
medium

Complete the code to name the REST principle that defines a fixed set of operations like GET, POST, PUT, DELETE.

Rest API
The REST principle that defines a fixed set of operations is called [1].
Drag options to blanks, or click blank then click option'
ACacheability
BStatelessness
CUniform Interface
DLayered System
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up uniform interface with statelessness.
Thinking it refers to caching behavior.
3fill in blank
hard

Fix the error in the statement about REST constraints: 'The Layered System constraint means clients must know all layers in the system.'

Rest API
The Layered System constraint means clients must [1] all layers in the system.
Drag options to blanks, or click blank then click option'
Aknow
Bignore
Cbypass
Dcontrol
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming clients must know all layers.
Confusing layered system with uniform interface.
4fill in blank
hard

Complete the code to identify the REST constraint that allows responses to be cached and reused.

Rest API
The REST constraint called [1] allows responses to be cached and reused.
Drag options to blanks, or click blank then click option'
AUniform Interface
BStatelessness
CLayered System
DCacheability
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing cacheability with statelessness.
Thinking caching is not part of REST constraints.
5fill in blank
hard

Fill all three blanks to complete the REST principle that uses hypermedia to guide client interactions.

Rest API
The REST principle called [1] uses [2] as the engine of [3] state.
Drag options to blanks, or click blank then click option'
AUniform Interface
BHypermedia
CApplication
DStatelessness
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up hypermedia with caching.
Not understanding application state driven by hypermedia.