Skip to content
Snippets Groups Projects
Commit 05715377 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Add doc for invitations

parent 09a80c3e
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@
* [message](#message)
* [message/inbox](#messageinbox)
* [message/oubox](#messageoutbox)
* [invitation](#invitation)
* [invitation/certification](#invitationcertification)
* [ES GCHANGE API](#gchangeapi)
* [market](#market)
* [market/category](#marketcategory)
......@@ -45,6 +47,8 @@ Data is made accessible through an HTTP API :
|-- message/
| |-- inbox
| `-- outbox
|-- invitation/
| `-- certification
|-- market/
| |-- category
| |-- record
......@@ -58,19 +62,41 @@ Data is made accessible through an HTTP API :
All stored documents use a JSON format.
Every document must have the following fields:
#### Data document
Every document have the following mandatory fields:
- `issuer` : The document's emitter
- `hash`:
- `signature`: the signature emitted by the issuer.
#### Deletion
Document deletion use a document with this mandatory fields:
- `index` : The document's index
- `type` : The document's type
- `issuer`: The deletion issuer. Should correspond to the document's `issuer`, or the `recipient` in some special case ([inbox message](#messageinbox) or [invitation](#invitation))
- `time`: the current time
- `hash`
- `signature`.
For example, a deletion on `message/inbox` should send this document:
```json
```
## ES CORE API
### `<currency>/*`
#### `<currency>/block`
- Get the current block: `<currency>/block/current`
- Get a block by number: `<currency>/block/<number>`
- Search on blocks: `<currency>/block/_search` (POST or GET)
## ES USER API
### `user/*`
......@@ -85,6 +111,16 @@ Every document must have the following fields:
#### `message/outbox`
### `invitation/*`
#### `invitation/certification`
- Get an invitation, by id: `invitation/certification/<id>`
- Add a new invitation: `invitation/certification` (POST)
- Delete an existing invitation: `invitation/certification/_delete` (POST)
- Search on invitations: `invitation/certification/_search` (POST or GET)
## ES GCHANGE API
### `market/*`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment