|
|
|
**(GET)** Mendapatkan pertanyaan dengan `id` tertentu
|
|
|
|
|
|
|
|
## URI
|
|
|
|
```
|
|
|
|
/questionList/<id>
|
|
|
|
```
|
|
|
|
|
|
|
|
## Params
|
|
|
|
* `id` - `id` dari pertanyaan
|
|
|
|
|
|
|
|
## Contoh
|
|
|
|
### Request
|
|
|
|
```
|
|
|
|
import requests
|
|
|
|
|
|
|
|
url = "http://127.0.0.1:5000/question/684"
|
|
|
|
|
|
|
|
response = requests.request("GET", url)
|
|
|
|
|
|
|
|
print(response.text)
|
|
|
|
```
|
|
|
|
### Hasil
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"question": {
|
|
|
|
"is_active": 1,
|
|
|
|
"sender": "imperativa",
|
|
|
|
"answer": "insya Allah tanggal 8 September 2018",
|
|
|
|
"dup_with": null,
|
|
|
|
"is_queued": 1,
|
|
|
|
"answerer": "nana",
|
|
|
|
"question": "kapan angkatan 56 akan wisuda bersama ?",
|
|
|
|
"tokenized_question": "kapan;angkat;akan;wisuda;sama",
|
|
|
|
"is_target": 0,
|
|
|
|
"timestamp": "02/05/2018 01:11"
|
|
|
|
},
|
|
|
|
"message": "sucessfully retrieve question"
|
|
|
|
}
|
|
|
|
``` |
|
|
|
\ No newline at end of file |