Skip to content
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

Add POST /firewall/update/:id endpoint #84

Closed
wants to merge 1 commit into from

Conversation

enriquegomeztagle
Copy link
Contributor

@enriquegomeztagle enriquegomeztagle commented Nov 28, 2024

Related to #30

Add POST /firewall/update/:id endpoint to update firewall rules by ID.

  • Add a new request type UpdateRule to the Request and Response enums in message/src/firewall.rs.
  • Add a new route for POST /firewall/update/:id in the rules router in controller/src/firewall/mod.rs.
  • Add a new handler function update_rule for the POST /firewall/update/:id route in controller/src/firewall/mod.rs.
  • Implement the logic to update the rule in the update_rule function in controller/src/firewall/mod.rs.
  • Add a new match arm for Request::UpdateRule in the handle_message function in firewall/src/main.rs.
  • Implement the logic to update the rule in the handle_message function in firewall/src/main.rs.

For more details, open the Copilot Workspace session.

Related to #30

Add POST /firewall/update/:id endpoint to update firewall rules by ID.

* Add a new request type `UpdateRule` to the `Request` and `Response` enums in `message/src/firewall.rs`.
* Add a new route for `POST /firewall/update/:id` in the `rules` router in `controller/src/firewall/mod.rs`.
* Add a new handler function `update_rule` for the `POST /firewall/update/:id` route in `controller/src/firewall/mod.rs`.
* Implement the logic to update the rule in the `update_rule` function in `controller/src/firewall/mod.rs`.
* Add a new match arm for `Request::UpdateRule` in the `handle_message` function in `firewall/src/main.rs`.
* Implement the logic to update the rule in the `handle_message` function in `firewall/src/main.rs`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AOx0/adam/issues/30?shareId=XXXX-XXXX-XXXX-XXXX).
@enriquegomeztagle enriquegomeztagle deleted the enriquegomeztagle/add-update-rule-1 branch November 28, 2024 04:15
@enriquegomeztagle enriquegomeztagle self-assigned this Nov 30, 2024
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