~magnetodb-milestone/python-magnetodbclient/master

« back to all changes in this revision

Viewing changes to magnetodbclient/v1/client.py

  • Committer: Rushi Agrawal
  • Date: 2014-12-15 02:49:35 UTC
  • Revision ID: git-v1:6a0dd74e65f7c3912de4f8788af52fd0a67111a1
Update modified URI path, and make the client work again

With the recent change to the URI path, as in the commit
Iad2bcacbd2d3b8d4d89919d0bd9b71bdd419092c
magnetodbclient was broken. This change fixes it.

Change-Id: I73454cf8c1c7ec9f2902fc987b86dddbf26d110d

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
    """
62
62
 
63
 
    base_path = "/data"
64
 
    tables_path = base_path + "/tables"
65
 
    table_path = base_path + "/tables/%s"
 
63
    tables_path = "/tables"
 
64
    table_path = "/tables/%s"
66
65
    put_item_path = table_path + "/put_item"
67
66
    update_item_path = table_path + "/update_item"
68
67
    delete_item_path = table_path + "/delete_item"
69
68
    get_item_path = table_path + "/get_item"
70
69
    query_path = table_path + "/query"
71
70
    scan_path = table_path + "/scan"
72
 
    batch_write_item_path = base_path + "/batch_write_item"
73
 
    batch_get_item_path = base_path + "/batch_get_item"
 
71
    batch_write_item_path = "/batch_write_item"
 
72
    batch_get_item_path = "/batch_get_item"
74
73
 
75
74
    def create_table(self, request_body):
76
75
        """Create table."""