dimanche 2 avril 2023

TDD : Design and implement a backend service which exposes an interface to create/update/delete records in a single operation

Use cases:

I need to create a backend service using Nestjs that exposes a single REST API to create/update/delete records. This is an interface where user can create new records and at the same time it’s possible to update or delete records. When the user “Click“ on “Save“ button, all the newly created/updated/delete records are sent to the backend service REST API.

I have to design this REST API that can handle creation, update and deletion of records in a single operation.

Technical spec:

The architecture will be split between a back-end and a web front-end. The frontend app is already development which is ready to accept a JSON based RESTful API.

Please help me to know which solution is the best practices for solving this problem and which design pattern I need to use. If there is a sample code please help me with sending the link.

Thanks

Aucun commentaire:

Enregistrer un commentaire