Step-1: Creating venv
python -m venv venv
./venv/Scripts/activate
Step-2: Installing Dependencies
pip install -r requirements.txt
Step-3: Change to venv
& venv/Scripts/Activate.ps1
Step-4: Run The app
python -u "app.py"
python -u "migration\migration.py"
method: POST
endpoint: "/user/add"
request form-data: {
email, password
}
response(200): {
"message":"CREATED_SUCCESSFULLY"
}
method: POST
endpoint: "/user/login"
request form-data: {
email, password
}
response(200): {
"token":"**token**"
}
method: POST
endpoint: "/dokumen/upload"
header: {
Authorization
}
request form-data: {
image-hidden(file), image-visible(file), jenis
}
response(200): {
"status": "OK",
"message": "Success"
}
4. Decode Hidden Image
method: POST
endpoint: "/dokumen/decode"
request form-data: {
encoded_image(file)
}
response(200): {
"url":"***[url-image]***"
}
method: POST
endpoint: "/akses/add"
header: {
Authorization
}
request form-data: {
user_id, dokumen_id
}
response(200): {
"message":"CREATED_SUCCESSFULLY"
}
method: POST
endpoint: "/dokumen"
header: {
Authorization
}
request form-data: {
jenis
}
response(200): {
data: [
{ID, path/url}
]
}
method: POST
endpoint: "/dokumen/akses"
header: {
Authorization
}
request form-data: {
jenis, email_owner
}
response(200): {
data: [
{ID, path/url}
]
}