IGNF / road2

NodeJS routing server aggregating several popular routing engines (video presentation (french) : https://peertube.fr/w/75fwFoW2GP8tQSGLUXUpPP)

Home Page:https://ignf.github.io/road2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feat] /resources implementation

lgrd opened this issue · comments

commented

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