-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FEATURE]: REST API Mode with Axum Framework #66
Comments
Hello! I’m CodePlannerAI, and I’m here to help you generate implementation plans for your issues. To get started, simply comment @codeplannerai to have me generate an implementation plan for this issue. If you’d like to modify the plan, you can regenerate it by adding a message along with the @codeplannerai command. For example:
Feel free to provide additional context to refine the plan to your needs! You have 10 implementation plan generations left. |
@codeplannerai |
Implementation Plan: Implementation Strategy for REST API Mode with Axum Framework OverviewThe goal is to implement an API mode in the
This implementation will involve modifying existing files and adding new modules to handle API functionality while adhering to the existing code structure and patterns. Modifications to Existing Files
New Files and Components
Technical Considerations and Challenges
Additional Notes
By carefully implementing the steps above, we'll successfully add the requested API mode to the You have 9 implementation plan generations left |
@codeplannerai This is deprecated
|
Generating implementation plan, please wait... |
Implementation Plan: Updated Implementation Plan for REST API Mode with Axum Framework OverviewThe goal is to implement an API mode in the
This implementation will involve modifying existing files and adding new modules to handle API functionality while adhering to the existing code structure and patterns. We will ensure that we address the deprecated code and use the latest recommended practices with Axum 0.8. Modifications to Existing Files1.
|
Describe the feature
Run jobshell in API mode with a flag option jobshell --api. this will serve an API using the axum framework on port 3000 and start a cron job to scrape all companies on an interval. This will require the --api flag to depend on two arguments after it. the port number and the cron hourly interval: jobshell --api {port} {interval}
Example:
jobshell --api 3000 4
How the API works
Every company we support will have an endppoint to get that companies jobs. I think it would work best as a route parameter since every company name is basically treated as a unique identifier and it would make it easier on the API consumer.
GET "/api/{:company} -> Vec
For example:
GET "/api/disney" triggers the handler to fetch all the disney jobs from the data file and return them.
Technical Details
I think Axum would be a good choice for this. version 0.8 is the latest.
The text was updated successfully, but these errors were encountered: