Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
mesripour committed Mar 24, 2015
1 parent 613b569 commit ac5918f
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# How to use
#### 1. Insert and Update
* HTTP Method: PUT
* URL Address:
* Insert: elastic/insert
* Update: elastic/update
* Input Body:
```
{
"database": "iran",
"table": "application",
"key": "123",
"fields": {
"key": "value"
}
}
```
#### 2. Select
* HTTP Method: GET
* URL Format: elastic/select/database/table/Key
#### 3. Delete Document
* HTTP Method: DELETE
* URL Format: elastic/deletedocument/database/table/Key
#### 4. Search
* HTTP Method: GET
* URL Format: elastic/search/database/table/offset/limit/?word
#### 5. Import
* HTTP Method: PUT
* URL Format: elastic/import
* Input Body:
```
[
{
"key1": "value1",
"key2": "value2"
},
{
"key1": "value1",
"key2": "value2"
}
]
```
# Go to zero state:
#### 1. Delete database
* http method : DELETE
* URL : elastic/deletedatabase/database
#### 2. Reset
* http method : GET
* URL : elastic/reset
#### 3. Check
* http method : GET
* URL : elastic/currentdb

0 comments on commit ac5918f

Please sign in to comment.