https://github.com/fahmifan/ppl-tilda
https://github.com/fahmifan/ppl-tilda
docker docker-compose express mongodb nginx nlp nodejs python reactjs
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fahmifan/ppl-tilda
- Owner: fahmifan
- Created: 2019-04-01T10:56:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T01:45:45.000Z (over 6 years ago)
- Last Synced: 2025-06-22T13:39:42.939Z (about 1 year ago)
- Topics: docker, docker-compose, express, mongodb, nginx, nlp, nodejs, python, reactjs
- Language: JavaScript
- Size: 1.93 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tilda API
## Login
```
POST /api/login
```
### Body Request
```bash
{
email: String
password: String
}
```
### Response
```bash
status code 200
{
user: {
name: String
email: String
pictURL: String
telp: String
progress: Array
callHistory: Array
}
token: String
}
```
## Register (User: Create)
```
POST /api/users
```
### Body
```bash
{
name: String
email: String
password: String
telp: String
}
```
### Response
```bash
status code 200
{
id: String
name: String
email: String
pictURL: String
telp: String
progress: Array
callHistory: Array
}
```
## User: Add Progress
### Headers
```bash
{
"Authorization": "Bearer "
}
```
### Body
```bash
{
id: String
# talk duration
duration: Number
unixdate: Number
}
```
### Response
```
status code 200
{
id: String
name: String
email: String
pictURL: String
telp: String
progress: Array
callHistory: Array
}
```
## User: Get By ID
```bash
GET /ap/user/:id
```
### Header
```bash
{
"Authorization": "Bearer "
}
```
### Params
```bash
{
id: String
}
```
### Response
```bash
status code 200
{
id: String
name: String
email: String
pictURL: String
telp: String
progress: Array
callHistory: Array
}
```
## User: Upload Photo
```
POST /api/user/:id/photo
```
### Params
```
{
id: String
}
```
### Header
```bash
{
"Authorization": "Bearer "
}
```
### Body: Multipart Form Data
```bash
{
photo: File
}
```
### Response
```bash
status code 200
{
id: String
name: String
email: String
pictURL: String
telp: String
progress: Array
callHistory: Array
}
```
## Bot: Train
```bash
GET /bot/train
```
### Response
```
status code 200
```
## Bot: Talk
```bash
POST /bot/talk
```
### Body
```bash
{
message: String
}
```
### Response
```bash
status code 200
{
reply: String
}
```