Skip to content

Developement #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

SajeelHussain
Copy link

No description provided.

- Add GET / - List all books
- Add GET /isbn/:isbn - Get book by ISBN
- Add GET /author/:author - Search books by author
- Add GET /title/:title - Search books by title
- Add GET /review/:isbn - Get book reviews
- Add POST /register - Register new user

Features:
- Input validation for all endpoints
- Error handling with appropriate status codes
- Case-insensitive search for author and title
- JSON response formatting
- User registration with duplicate check
- Added login endpoint at /customer/login
- Implemented username/password validation
- Integrated JWT token generation
- Added session management
- Included error handling for invalid credentials
- Added debug logs for authentication flow
- Fixed CORS and content-type header issues
- Updated response status codes for better API semantics
- Added GET and PUT endpoints for /customer/auth/review/:isbn
- Implemented review modification for existing user reviews
- Added support for multiple reviews per book by different users
- Improved authentication middleware with better session handling
- Added proper error handling and validation
- Add async/await pattern to book endpoints (GET /, /isbn/:isbn, /author/:author, /title/:title)
- Implement review deletion with session-based authentication
- Update error handling and response formats
- Add CORS and session configuration
- Include sample book database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant