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

Actions api paths changes #415

Merged
merged 10 commits into from
Sep 27, 2023
Merged

Actions api paths changes #415

merged 10 commits into from
Sep 27, 2023

Commits on Sep 26, 2023

  1. Actions api paths changes

    Use the following api paths model:
    
    /namespaces/<ns>/<kind>/<name>/<action>
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    8ce034a View commit details
    Browse the repository at this point in the history
  2. Better api handler tags

    Use a "object / <kind>" pattern for openapi handler tags.
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    82a1e61 View commit details
    Browse the repository at this point in the history
  3. Change more object api handler paths

    Expose in each object kind section this triplet of handlers:
    
    GET /namespaces/{namespace}/{kind}/{name}
    GET /namespaces/{namespace}/{kind}/{name}/config
    GET /namespaces/{namespace}/{kind}/{name}/file
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    6bbdb1b View commit details
    Browse the repository at this point in the history
  4. Remove the 3 remaining "action/" subdir in api paths

    New paths:
    
    * /cluster/freeze
    * /cluster/unfreeze
    * /node/drain
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    0640100 View commit details
    Browse the repository at this point in the history
  5. Instance logs api handler classification

    Add:
    
    *  GET /namespaces/{namespace}/{kind}/{name}/instance/logs
    *  GET /namespaces/{namespace}/{kind}/{name}/instance/backlogs
    
    Rename:
    
    * GET /object/logs => /instances/logs
    * GET /object/backlogs => /instances/backlogs
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    1b380b4 View commit details
    Browse the repository at this point in the history
  6. Rename the daemon/daemonapi/get_object_logs.go file

    So the filename shows its instances nature.
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    e69da37 View commit details
    Browse the repository at this point in the history
  7. Fix the /namespaces/{}/{}/{}/instance/*logs handlers query parms

    They must not require the paths query parm, as the object path
    is passed from the path parms.
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    b5a2155 View commit details
    Browse the repository at this point in the history
  8. Change the clear api handler path

    to POST /namespaces/{namespace}/{kind}/{name}/instance/clear
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    fa9462e View commit details
    Browse the repository at this point in the history
  9. Reduce the number of api handler

    Use the same handler for different kinds.
    
    Use openapi handler tags to present the handler only in the
    supported kinds.
    cvaroqui committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    15a7caa View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Configuration menu
    Copy the full SHA
    c09533c View commit details
    Browse the repository at this point in the history