Open
Conversation
8da6c59 to
8989ec2
Compare
The code changes introduce two new API endpoints, `get_companies` and `get_company`, to retrieve information about companies. These endpoints are implemented in separate modules within the `handlers` module. The `get_companies` endpoint returns a list of all companies, while the `get_company` endpoint retrieves a specific company by its ID. Note: The recent user commits and repository commits are not relevant for generating the commit message. Signed-off-by: nathaelbonnal <pro.nathaelbonnal@gmail.com>
This commit adds the `find_all` method to the `CompanyService` trait. The method retrieves a list of all companies and returns a `Result` containing the list of companies or an error of type `CompanyError`. This method will be implemented in the `CompanyServiceImpl` struct. Note: The recent user commits and repository commits are not relevant for generating the commit message. Signed-off-by: nathaelbonnal <pro.nathaelbonnal@gmail.com>
This commit implements the `find_all` method in the `CompanyRepository` trait. The method retrieves all companies from the Neo4j database and returns a `Result` containing the list of companies or a `CompanyError` if an error occurs during the retrieval process. Note: The recent user commits and repository commits are not relevant for generating the commit message. Signed-off-by: nathaelbonnal <pro.nathaelbonnal@gmail.com>
Signed-off-by: nathaelbonnal <pro.nathaelbonnal@gmail.com>
8989ec2 to
a7139e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds two new endpoints for managing
companies:Endpoint to retrieve the list of companies
GET /v1/companiesget_companies::<C>Endpoint to retrieve a company by its ID
GET /companies/:company_idget_company::<C>