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

Query parameters infra #67

Merged
merged 3 commits into from
Oct 29, 2020
Merged

Commits on Oct 27, 2020

  1. Query parameters infra

    1) Enhanced REST server to parse URL query parameters and pass them to
    translib APIs. Handles RESTCONF "depth" and a custom "deleteEmptyEntry"
    query parameters. The deleteEmptyEntry parameter is valid only for
    DELETE requests; takes a boolean value - "true" or "false". It will be
    passed to translib via SetRequest.DeleteEmptyEntry property. App modules
    and transofrmer changes to handle these parameters is pending.
    
    2) Modified cli_client get() and head() python APIs to accept optional
    depth parameter, which should be a +ve integer. By default no depth
    value is passed to the server. Usage:
        cl.get(path, depth=2)
        cl.head(path, depth=1)
    
    3) Modified cli_client.delete python API to accept an optional
    deleteEmptyEntry parameter. Default value is False. When specified as
    True, the DELETE request will include "deleteEmptyEntry=true" query
    parameter. Usage:
        cl.delete(path, deleteEmptyEntry=True)
    sachinholla committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    46d63ad View commit details
    Browse the repository at this point in the history
  2. LGTM fix

    sachinholla committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    e30d600 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2020

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