这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@shelsoloa
Copy link

Here is my completed submission for the take-home assessment.

A quick note on my approach: For Book metadata, I only provided the fields mentioned in TASK.md - Feature 5 (title, author, year, language, percentage, page num). The remaining fields (link, language, image_link) are available on the Book model but removed at the time of response.

Added .gitignore, requirements.txt, and moved app files to ./app
- Added a tests folder and included initial test / sanity check.
- Created first endpoint for getting book metadata under /book/{book_id}
Created a data access layer for retrieve the global book library and
manipulating the user library.

Introduced tests for these functions to test_data.py

Add modules and fixtures for mocking (pytest-mock)
Added remaining functionality for /book endpoint to API layer and service layer.

Added tests for api layer to test_api.py
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