Skip to content

[JITERA] Add Author Routes for CRUD Operations

Klebson Leite requested to merge feat/add-author-routes-1749119599 into main

Created by: kstayner

Overview

This pull request introduces new routes for managing authors in the application. The routes allow for the creation, retrieval, updating, and deletion of author records, enhancing the functionality of the author management system.

Changes Explained

  1. GET /authors:

    • Added a route to retrieve a list of all authors. This will return an array of author objects from the database.
  2. GET /authors/:id:

    • Implemented a route to fetch a specific author by their ID. This allows users to view detailed information about a particular author.
  3. POST /authors:

    • Created a route to add a new author. This route accepts author details in the request body and saves the new author to the database.
  4. PUT /authors/:id:

    • Added a route to update an existing author's information. This route takes the author's ID and updated details in the request body.
  5. DELETE /authors/:id:

    • Implemented a route to delete an author by their ID. This will remove the author record from the database.

These changes are essential for the author management feature and will allow users to perform CRUD operations seamlessly.

Merge request reports