Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1636

query rest api uri should change from /databases/{database_name}/queies to /queries

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      currently, "databases" Rest Api uri has too many meaning.
      1. for query
      2. to manage databases info
      and databases/

      {database_name}/queries is not proper for queries

      so I suggest change from "/databases/{database_name}

      /queries" to
      "/queries/", it is more clear to understand.

      below apis will changed.
      POST /databases/

      {databaseName}/queries -> POST /queries
      GET /databases/{databaseName}

      /queries -> GET /queries
      GET /databases/

      {databaseName}/queries/{queryId} -> GET /queries/{queryId}
      GET /databases/{databaseName}

      /queries/

      {queryId}/result -> GET /queries/{queryId}

      /result
      GET /databases/

      {databaseName}

      /queries/

      {queryId}/result/{cacheId} -> GET /queries/{queryId}

      /result/

      {cacheId}

        Attachments

          Activity

            People

            • Assignee:
              charsyam DaeMyung Kang
              Reporter:
              charsyam DaeMyung Kang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: