{"id":21334837,"url":"https://github.com/j03-dev/wcc-final-back","last_synced_at":"2025-03-16T01:41:53.803Z","repository":{"id":183065191,"uuid":"669519894","full_name":"j03-dev/wcc-final-back","owner":"j03-dev","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-23T17:16:57.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T14:33:57.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/j03-dev.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}},"created_at":"2023-07-22T14:44:39.000Z","updated_at":"2023-07-22T15:58:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e1bb1a0-6be4-4afd-bc29-0b544666192e","html_url":"https://github.com/j03-dev/wcc-final-back","commit_stats":null,"previous_names":["j03-dev/wcc-final-back"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j03-dev%2Fwcc-final-back","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j03-dev%2Fwcc-final-back/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j03-dev%2Fwcc-final-back/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j03-dev%2Fwcc-final-back/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j03-dev","download_url":"https://codeload.github.com/j03-dev/wcc-final-back/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814853,"owners_count":20352037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-21T23:34:56.368Z","updated_at":"2025-03-16T01:41:53.797Z","avatar_url":"https://github.com/j03-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API doc\n\n## Endpoints\n\n- `POST api/v1/user/login`\n\nRequest : \n```\n{\n    \"username\": \"Gracy\",\n    \"password\": \"xyz\",\n}\n\n```\nResponse : \n```\n{\n    \"token\" : jflkajslkdfjlkajsdlkfjdsf,\n}\n```\n\n- `POST api/v1/user/register`\n\nRequest\n```\n{\n    \"username\": \"Gracy\",\n    \"password\": \"xyz\",\n}\n```\n\nResponse\n```\n{\n    \"success\": true,\n}\n```\n\n- `GET /generate`\n    - Generate a clothing combination\n    - Need auth\n\nRequest\n\n| Name | Type                                   |\n| ---- | -------------------------------------- |\n| hot  | boolean                                |\n| type | ('sport', 'plage', 'casual', 'formel') |\n\n```\n{\n    \"hot\": false\n    \"type\":  \"sport\"\n}\n```\n\nResponse\n```\n```\n\n- `POST /api/v1/clothes`\n    - Add a new one\n    - Need auth\n\nRequest \n(formdata)\n\n| Name     | Type                                   |\n| -------- | -------------------------------------- |\n| image    | file                                   |\n| type     | ('sport', 'plage', 'casual', 'formel') |\n| category | ('haut', 'bas', 'accessory', 'shoe')   |\n| hot      | boolean                                |\n| colors   | string                                 |\n\n```\n{\n    \"label\": \"T-shirt\",\n    \"image\": file,\n    \"type\": \"sport\",\n    \"category\": \"haut\",\n    \"hot\": true\n    \"hexcode\": \"#ffffff\",\n}\n```\n\nResponse \n```\n{\n    \"success\": true,\n    \"new_cloth_id\": 123,\n}\n```\n- `GET /api/v1/clothes`\n    - Get all clothes of an user\n    - Need token\n\nResponse\n```\n{\n    \"total\":  4,\n    \"clothes\": [\n        {\n            \"id\": 123,\n            \"label\": \"t-shirt\",\n            \"image\": \"fsljl.png\",\n            \"type\": \"sport\",\n            \"category\": \"haut\",\n            \"hxcode\": \"#fffff\",\n            \"hot\": true\n        },\n        {\n            \"id\": 123,\n            \"label\": \"t-shirt\",\n            \"image\": \"fsljl.png\",\n            \"type\": \"sport\",\n            \"category\": \"haut\",\n            \"hxcode\": \"#fffff\",\n            \"hot\": true\n        },\n        {\n            \"id\": 123,\n            \"label\": \"t-shirt\",\n            \"image\": \"fsljl.png\",\n            \"type\": \"sport\",\n            \"category\": \"haut\",\n            \"hxcode\": \"#fffff\",\n            \"hot\": true\n        },\n        {\n            \"id\": 123,\n            \"label\": \"t-shirt\",\n            \"image\": \"fsljl.png\",\n            \"type\": \"sport\",\n            \"category\": \"haut\",\n            \"hxcode\": \"#fffff\",\n            \"hot\": true\n        },\n    ]\n}\n```\n# mbola tsy vita\n- `DELETE /clothes/{clothe_id}`\n    - Need auth\nResponse\n```\n{\n    \"success\": true,\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj03-dev%2Fwcc-final-back","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj03-dev%2Fwcc-final-back","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj03-dev%2Fwcc-final-back/lists"}