{"id":19297149,"url":"https://github.com/liveness-detection-bangkit-team/liveness_server","last_synced_at":"2026-01-31T09:02:11.137Z","repository":{"id":261333932,"uuid":"883716399","full_name":"liveness-detection-bangkit-team/liveness_server","owner":"liveness-detection-bangkit-team","description":"Liveness Detection REST API ","archived":false,"fork":false,"pushed_at":"2024-12-10T01:33:14.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T05:36:02.713Z","etag":null,"topics":["flask","mysql","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liveness-detection-bangkit-team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-05T13:01:37.000Z","updated_at":"2024-12-10T01:33:18.000Z","dependencies_parsed_at":"2024-11-07T05:29:02.640Z","dependency_job_id":"b06b26d9-f596-4ef5-90d4-8c4f78e52233","html_url":"https://github.com/liveness-detection-bangkit-team/liveness_server","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.1578947368421053,"last_synced_commit":"809a0ee45d478c956f46b8f289c4a3b11bef2c10"},"previous_names":["egrizq/liveness_server","liveness-detection-bangkit-team/liveness_server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liveness-detection-bangkit-team/liveness_server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liveness-detection-bangkit-team%2Fliveness_server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liveness-detection-bangkit-team%2Fliveness_server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liveness-detection-bangkit-team%2Fliveness_server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liveness-detection-bangkit-team%2Fliveness_server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liveness-detection-bangkit-team","download_url":"https://codeload.github.com/liveness-detection-bangkit-team/liveness_server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liveness-detection-bangkit-team%2Fliveness_server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28936100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T08:53:31.997Z","status":"ssl_error","status_checked_at":"2026-01-31T08:51:38.521Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","mysql","python"],"created_at":"2024-11-09T23:01:13.758Z","updated_at":"2026-01-31T09:02:11.120Z","avatar_url":"https://github.com/liveness-detection-bangkit-team.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Back-end server for Liveness Detection Capstone Bangkit team\n\nRepository for Back-end server for Liveness Detection company capstone team (Braincore)\n\n## API Testing with Postman\n\n[Document Postman API Testing .JSON](https://drive.google.com/drive/folders/1JDTVO5UJxkEDDC-oeiTBSAfOMjsKiaUJ?usp=sharing)\n\n## API Documentation\n\n### Response API\n\nEndpoint: GET /\n\nResponse Success:\n\n```bash\n{\n  \"status_code\": 200,\n  \"message\": \"You found me!\"\n}\n```\n\n### Response API with Token required\n\nEndpoint: GET /home\n\nRequest Cookies:\n\n- X-LIVENESS-TOKEN\n\nResponse Success:\n\n```bash\n{\n  \"status_code\": 200,\n  \"message\": \"Hello {fullname}\"\n}\n```\n\nResponse Failed:\n\n```bash\n{\n  \"status_code\": 401,\n  \"message\": \"Unauthorized users\"\n}\n```\n\n### Register Account\n\nEndpoint: POST /auth/register\n\nRequest Body:\n\n```bash\n{\n  \"fullname\": \"fullname\",\n  \"username\": \"username\",\n  \"password\": \"password\"\n}\n```\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e - The request body is mandatory.\n\u003e - The request body must be at least 5 characters long.\n\nResponse Body Success:\n\n```bash\n{\n  \"status_code\": 201,\n  \"message\": \"Successfully created account!\"\n}\n```\n\nResponse Body Failed:\n\n```bash\n{\n  \"status_code\": 400,\n  \"message\": \"Name, Username, and Password is required\"\n}\n```\n\n### Login Account\n\nEndpoint: POST /auth/login\n\nRequest Body:\n\n```bash\n{\n  \"username\": \"username\",\n  \"password\": \"password\"\n}\n```\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e - The request body is mandatory.\n\u003e - The request body must be at least 5 characters long.\n\nResponse Body Success:\n\n```bash\n{\n  \"status_code\": 200,\n  \"message\": \"Login successfully!\"\n}\n```\n\nResponse Body Failed:\n\n```bash\n{\n  \"status_code\": 400,\n  \"message\": \"Username and Password is required\"\n}\n```\n\n### Logout Account\n\nEndpoint: DELETE /auth/logout\n\nRequest Cookies:\n\n- X-LIVENESS-TOKEN\n\nResponse Success:\n\n```bash\n{\n  \"status_code\": 200,\n  \"message\": \"Logged out\"\n}\n```\n\n## How to run\n\n### Create Python 3 virtual environment\n\n```bash\npython3 -m venv myenv\n```\n\n### Activate Python 3 virtual environment\n\n```bash\nsource myenv/bin/activate\n```\n\n### Install packages\n\n```bash\npip install -r requirements.txt\n```\n\n### Run Flask\n\nRun in development mode to listen every change\n\n```bash\nexport FLASK_APP=main.py\nflask --debug run -h 0.0.0.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliveness-detection-bangkit-team%2Fliveness_server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliveness-detection-bangkit-team%2Fliveness_server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliveness-detection-bangkit-team%2Fliveness_server/lists"}