| Method | Path | Description |
|---|---|---|
| POST | /conversation/form | Returns conversation updatable values |
{
"username": "name",
"password": "pass"
}
| Issue | Status |
|---|---|
| Successful | 201 |
| Failed | 400 |
| Unauthorized | 403 |
| Method | Path | Description |
|---|---|---|
| POST | /conversation/update | Update specified values on conversation |
{
"username": "name",
"password": "pass",
"area": "new area",
"variables":
[
{
"field":"new field name",
"currentValue": "new field value"
},
...
]
}
| Issue | Status |
|---|---|
| Successful | 200 |
| Failed | 400 |
| Unauthorized | 403 |
| Method | Path | Description |
|---|---|---|
| GET | /conversation/questions | Returns all the conversation available questions |
| Issue | Status |
|---|---|
| Successful | 200 |
| Failed | 400 |
| Method | Path | Description |
|---|---|---|
| POST | /conversation/askWatson | Returns Watson response to the specified question on body |
{
"text": "question sample?"
}
| Issue | Status |
|---|---|
| Successful | 200 |
| Failed | 400 |
| Method | Path | Description |
|---|---|---|
| POST | /user/login | Authenticates a user on Database |
{
"username": "name",
"password": "pass"
}
| Issue | Status |
|---|---|
| Successful | 201 |
| Unauthorized | 403 |
| Method | Path | Description |
|---|---|---|
| POST | /user/create | Creates a user on Database |
{
"username": "admin name",
"password": "admin pass",
"new_username: "new user's username",
"new_password": "new user's password"
}
| Issue | Status |
|---|---|
| Successful | 201 |
| Failed | 400 |
| Unauthorized | 403 |
| Method | Path | Description |
|---|---|---|
| POST | /user/delete/{id} | Deletes a user on Database |
id : Username to delete from database
{
"username": "name",
"password": "pass"
}
| Issue | Status |
|---|---|
| Successful | 201 |
| Failed | 400 |
| Unauthorized | 403 |
| Method | Path | Description |
|---|---|---|
| POST | /user/list | Returns the list of usernames registered on Database |
{
"username": "name",
"password": "pass"
}
| Issue | Status |
|---|---|
| Successful | 201 |
| Failed | 400 |
| Unauthorized | 403 |