docker build -t posanakml .
docker run -d -p 8000:8000 posanakml
POST / HTTP/1.1
{
"umur": "string | int",
"jenis_kelamin": "string | int",
"tinggi_badan": "string | int"
}
{
"message": "string",
"result": "int"
}
-
result:
-1
- error occurred
>=0
- succeed (see message field) -
message
ifresult
field>=0
, it's mean success
0
=tinggi
- childs taller than normal ones
1
=normal
- normal childs
2
=stunting
- supected stunting
3
=xstunting
- need further action
otherwise:
missing request body
- ensure you had passed json request body
missing json field
- missing required fields or wrong data type
could not predit
- something else