• Michael Schurter's avatar
    api: add field filters to /v1/{allocations,nodes} · a55f46e9
    Michael Schurter authored
    Fixes #9017
    
    The ?resources=true query parameter includes resources in the object
    stub listings. Specifically:
    
    - For `/v1/nodes?resources=true` both the `NodeResources` and
      `ReservedResources` field are included.
    - For `/v1/allocations?resources=true` the `AllocatedResources` field is
      included.
    
    The ?task_states=false query parameter removes TaskStates from
    /v1/allocations responses. (By default TaskStates are included.)
    a55f46e9