Skip to content

Commit 7f51b61

Browse files
author
Your Name
committed
More of project -> database
1 parent de358de commit 7f51b61

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ print client.count_entity(query_data)
8585
* `timeout (int)` - Amount of time, in seconds, to wait for results for each request.
8686
* `uses_test_endpoint (bool)` - If false the client will send requests to production end-point, otherwise to tests end-point.
8787

88-
### `get_projects()`
89-
Get all created projects, both active and inactive ones. This method corresponds to a [GET request at /project](http://panel.slicingdice.com/docs/#api-details-api-endpoints-get-project).
88+
### `get_database()`
89+
Get information about current database(related to api keys informed on construction). This method corresponds to a [GET request at /database](http://panel.slicingdice.com/docs/#api-details-api-endpoints-get-database).
9090

9191
#### Request example
9292

9393
```python
9494
from pyslicer import SlicingDice
9595
client = SlicingDice('MASTER_API_KEY', uses_test_endpoint=False)
96-
print client.get_projects()
96+
print client.get_database()
9797
```
9898

9999
#### Output example
@@ -102,16 +102,16 @@ print client.get_projects()
102102
{
103103
"active": [
104104
{
105-
"name": "Project 1",
106-
"description": "My first project",
105+
"name": "Database 1",
106+
"description": "My first database",
107107
"data-expiration": 30,
108108
"created-at": "2016-04-05T10:20:30Z"
109109
}
110110
],
111111
"inactive": [
112112
{
113-
"name": "Project 2",
114-
"description": "My second project",
113+
"name": "Database 2",
114+
"description": "My second database",
115115
"data-expiration": 90,
116116
"created-at": "2016-04-05T10:20:30Z"
117117
}
@@ -243,7 +243,7 @@ print client.insert(insert_data)
243243
```
244244

245245
### `exists_entity(ids)`
246-
Verify which entities exist in a project given a list of entity IDs. This method corresponds to a [POST request at /query/exists/entity](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-query-exists-entity).
246+
Verify which entities exist in a database given a list of entity IDs. This method corresponds to a [POST request at /query/exists/entity](http://panel.slicingdice.com/docs/#api-details-api-endpoints-post-query-exists-entity).
247247

248248
#### Request example
249249

0 commit comments

Comments
 (0)