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

[feat] /resources implementation #56

Open
11 tasks
lgrd opened this issue Mar 20, 2023 · 0 comments
Open
11 tasks

[feat] /resources implementation #56

lgrd opened this issue Mar 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lgrd
Copy link
Collaborator

lgrd commented Mar 20, 2023

Need

Code the /resources routes of the admin API.

Tasks

  • Code it. See next paragraph.
  • Update tests
    • utest/itest if modification of a classe
    • rtest if modification of an API
    • ctest if modification of a configuration
  • Run tests
    • Inside the docker provided by the project : rtest, ctest, utest, itest
    • Manually if necessary
  • Update the documentation
    • changelog.md
    • documentation directory

Code

  • Create new request and response classes
  • Modify the administrator and/or serviceManager to have a copy of each services administered. Those copies will be used to make some controls before sending requests to a service.
  • Add the route inside the router
    • Controls about the conf are made inside the controller
  • Create a function computeRequest() inside the administrateur to send the request to its serviceManager
  • Modify the service class to handle this new request
    • Modify computeAdminRequest()
    • Create the function computeResourceRequest(), it will call the resourceManager to :
      • create a resource
      • delete a resource
      • modify a resource
  • Modify the resourceManager to execute the different unit actions
  • Update the getCap
@lgrd lgrd added the enhancement New feature or request label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant