snet-marketplace-service
snet-marketplace-service copied to clipboard
[FIX] Update contract api
This pull request focuses on updating the contract-api service and the common section code.
The main objectives of this PR are outlined below:
- Project Structure Improvement: Reorganize the project into three distinct layers: domain, infrastructure, and application for better clarity.
- Request Schemas: Introduce Pydantic schemas for incoming requests to ensure data validation and improve code readability.
- Entity Model Update: Refactor entity models using dataclasses with the frozen parameter to enhance immutability.
- SQLAlchemy Update: Transition from raw SQL code to the new SQLAlchemy syntax for improved maintainability and performance.
- Pagination Enhancement: Fix and add pagination to methods for retrieving services and organizations to enhance usability.