The Complete Strapi™ Course with Plugins and Deployment - Controllers: Extending Core Controllers

The Complete Strapi™ Course with Plugins and Deployment - Controllers: Extending Core Controllers

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to modify query parameters in API requests by adding new keys to the query object. It demonstrates executing the core find method with these modifications and adding a timestamp to the response metadata. The tutorial includes testing and logging the modified query and concludes with a preview of the next steps in the learning process.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of adding a new key to the query parameters in the context of the find endpoint?

To remove existing query parameters

To change the endpoint being accessed

To modify the core logic of the find method

To add additional filtering criteria to the request

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the modified query affect the execution of the core find method?

It bypasses the core logic entirely

It causes an error in the execution

It executes the core logic with the modified query

It replaces the core logic with a new method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What additional information is added to the metadata of the response?

Current timestamp

User details

Request headers

Query parameters

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it important to log the context object during testing?

To validate the endpoint URL

To check the response time

To ensure the query object is correctly modified

To verify the server is running

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the expected outcome when a request is made with 'publication state equals preview'?

The query object includes a local key with English value

The request is rejected

The server returns an error

The query object remains unchanged