Fields are returned in

discussion about the social media marketing forum.
Post Reply
mitu300
Posts: 1
Joined: Mon Dec 18, 2023 10:16 am

Fields are returned in

Post by mitu300 »

Generated user endpoint controller consists of different route handlers. You will implement five route handlers in this class which correspond to the five endpoints. The implementation of these route handlers in the update is shown below. Copy the updated controller and use the decorator to group the endpoints under tags.

Also uses and decorators to def photo editing servies ine the response body for each endpoint. The updated page should look like this Updated Swagger Page Feel free to test different endpoints to verify that they behave as expected. Excluding fields from the response body works as expected but it has a major security flaw.

Image

The response body of different endpoints. Show password You have two options to resolve this issue Manually remove the password from the response body in the controller route handler Use an interceptor to automatically remove the password from the response body The first option is error prone and leads to unnecessary code duplication.
Post Reply