Skip to content

Add BookService implementation with dummy endpoint#2

Merged
SebastienMelki merged 4 commits intomainfrom
dummy_book
Aug 24, 2025
Merged

Add BookService implementation with dummy endpoint#2
SebastienMelki merged 4 commits intomainfrom
dummy_book

Conversation

@SebastienMelki
Copy link
Owner

Summary

  • Added new BookService with proto definitions and dummy implementation
  • Updated service paths for better API organization
  • Generated OpenAPI documentation for the new service

Changes

  1. New Book service proto definitions

    • Added Book message type with ID, title, and release year
    • Created GetBooks RPC endpoint
    • Configured service at /api/book/v1
  2. Core updates

    • Added BookID typed identifier to core proto definitions
    • Updated SongService path to /api/song/v1 for consistency
  3. Server implementation

    • Implemented dummy BookService with sample data
    • Registered HTTP handlers on port 8080
    • Demonstrates integration with generated API code
  4. Documentation

    • Generated OpenAPI specs for BookService
    • Updated existing SongService documentation with new paths

Test plan

  • Run make generate to verify proto generation
  • Run make build to verify compilation
  • Start server and test /api/book/v1/books endpoint
  • Verify OpenAPI documentation is correct

🤖 Generated with Claude Code

SebastienMelki and others added 4 commits August 24, 2025 23:31
- Add Book message with ID, title, and release year
- Add GetBooksRequest and GetBooksResponse messages
- Create BookService with GetBooks RPC endpoint
- Configure service base path as /api/book/v1

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add BookID typed identifier to core/v1/ids.proto
- Update SongService base path to /api/song/v1 for consistency
- Prepare for multi-service API structure with versioned paths

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add BookService struct implementing GetBooks RPC
- Return sample book data with Arabic translation
- Register BookService HTTP handlers on port 8080
- Demonstrate service integration with generated API code

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add BookService OpenAPI specifications (JSON and YAML)
- Update SongService API path to /api/song/v1/songs
- Generated documentation reflects new service structure

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@SebastienMelki SebastienMelki merged commit 5802569 into main Aug 24, 2025
2 of 6 checks passed
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