API interpetation RESTCONF Flashcards
What does the ‘content’ query parameter control?
It controls how descendant nodes of the requested data nodes are processed in the reply.
What must support the ‘content’ query parameter?
It must be supported by the server.
What is the default value for the ‘content’ query parameter if not present in the URI?
The default value is ‘all’.
What status-line is returned if the ‘content’ parameter is used for unsupported methods or resource types?
A ‘400 Bad Request’ status-line.
What are examples of ‘content’ query parameter values?
Examples include ‘config’ and ‘nonconfig’.
What does the ‘depth’ query parameter do?
It limits the depth of subtrees returned by the server.
What are valid values for the ‘depth’ query parameter?
Either an integer between 1 and 65535 or the string ‘unbounded’.
What is the default value for the ‘depth’ query parameter?
The default value is ‘unbounded’.
What status-line is returned if ‘depth’ is used for unsupported methods or resource types?
A ‘400 Bad Request’ status-line.
Provide an example of a ‘depth’ query parameter value.
‘depth=65535’ or ‘depth=0’.
What is the ‘fields’ query parameter used for?
It is used to optionally identify data nodes within the target resource for retrieval.
What methods support the ‘fields’ query parameter?
GET/HEAD methods support the ‘fields’ query parameter.
What status-line is returned if the ‘fields’ parameter is used for unsupported methods?
A ‘400 Bad Request’ status-line.
What is the structure for the ‘fields’ query parameter?
‘fields-expr = path ‘(‘ fields-expr ‘)’ / path ‘;’ fields-expr / path’
What does the semicolon (‘;’) in the ‘fields’ query parameter do?
It is used to select multiple nodes.