Skip to content

Add ISBN based book operations #11

@NikosPoly

Description

@NikosPoly

Currently all book operations require the MongoDB ObjectId which is not practical
in a real library scenario. Librarians work with ISBNs, not internal database IDs.

Tasks

  • Add findByIsbn(String isbn) to BookRepository
  • Add the following ISBN based endpoints to BookController and BookService:
    • GET /books/isbn/{isbn} — find book by ISBN
    • PUT /books/isbn/{isbn} — full update by ISBN
    • PATCH /books/isbn/{isbn} — partial update by ISBN
    • DELETE /books/isbn/{isbn} — delete by ISBN

Note

MongoDB ID based endpoints remain available for internal/system use.
ISBN based endpoints are for real world library usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions