{"id":28321653,"url":"https://github.com/mycok/store_manager_api_v1","last_synced_at":"2026-05-02T03:02:52.107Z","repository":{"id":50201431,"uuid":"153681395","full_name":"mycok/store_manager_api_v1","owner":"mycok","description":" Store Manager Web API","archived":false,"fork":false,"pushed_at":"2021-06-01T22:52:34.000Z","size":2385,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"heroku","last_synced_at":"2025-06-23T13:48:24.898Z","etag":null,"topics":["postgresql","python-flask","sql"],"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/mycok.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}},"created_at":"2018-10-18T20:10:01.000Z","updated_at":"2020-03-23T15:10:03.000Z","dependencies_parsed_at":"2022-08-03T22:00:17.159Z","dependency_job_id":null,"html_url":"https://github.com/mycok/store_manager_api_v1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mycok/store_manager_api_v1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycok%2Fstore_manager_api_v1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycok%2Fstore_manager_api_v1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycok%2Fstore_manager_api_v1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycok%2Fstore_manager_api_v1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mycok","download_url":"https://codeload.github.com/mycok/store_manager_api_v1/tar.gz/refs/heads/heroku","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mycok%2Fstore_manager_api_v1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["postgresql","python-flask","sql"],"created_at":"2025-05-25T12:15:14.310Z","updated_at":"2026-05-02T03:02:52.099Z","avatar_url":"https://github.com/mycok.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Store Manager_API_V1\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/c4b765fc3ef09ddeadf2/maintainability)](https://codeclimate.com/github/mkibuuka/store_manager_api_v1/maintainability)  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/085901b67d7f4a49a921cf0f68a1098a)](https://www.codacy.com/app/mkibuuka/store_manager_api_v1?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=mkibuuka/store_manager_api_v1\u0026amp;utm_campaign=Badge_Grade) [![Build Status](https://travis-ci.org/mkibuuka/store_manager_api_v1.svg?branch=ap1-v3-ft-%23161573359-signup-login-logout)](https://travis-ci.org/mkibuuka/store_manager_api_v1) [![Coverage Status](https://coveralls.io/repos/github/mkibuuka/store_manager_api_v1/badge.svg?branch=ap1-v3-ft-%23161573359-signup-login-logout)](https://coveralls.io/github/mkibuuka/store_manager_api_v1?branch=ap1-v3-ft-%23161573359-signup-login-logout)\n\nStore manager API provides an interface for accessing and manupilating product store resources.\n\n## This repo includes store manager_API_v1 source code files for\n* Endpoints\n* Unittests/pytests\n* Flask\n* Product Models\n* Sales Models\n\n## Requirements\n* Python 3x and up\n* Flask python web framework\n\n## Development\n```\n$ python 3x\n$ create a python virtualenv\n$ source/bin/activate\n$ pip install flask\n```\n## Usage\n\n```python\ngit clone https://github.com/mkibuuka/store_manager_api_v1.git\ncd store_manager_api_v1\npython run.py\n```\n\n[Checkout the app documentation on heroku!!](https://that-store-manager-app-v2.herokuapp.com)\n\n\n## Product Models\nThese represent a product that could be created by a user on the app platform. The product object takes four required attributes (name, category, quantity, price).\nA **url** to post a product could take a **POST** request to an endpoint with a format such as **api/v1/products**.\n\nA user product could be formatted and posted as below:\n```json\n{\n\t\"name\": \"macbook air\",\n\t\"category\": \"laptops\",\n\t\"quantity\": 2,\n\t\"price\": 1499.0\n}\n```\nAnd the response could be as below:\n```json\n{\n    \"category\": \"laptops\",\n    \"name\": \"macbook air\",\n    \"p_id\": 1,\n    \"price\": 1499,\n    \"quantity\": 2,\n    \"sales\": 0\n}\n```\nA **url** to fetch a single product by **id** could take a **GET** request to an endpoint with a format such as **api/v1/products/1** and the response could be formatted as below:\n```json\n\n    {\n    \"category\": \"laptops\",\n    \"name\": \"macbook air\",\n    \"p_id\": 1,\n    \"price\": 1499,\n    \"quantity\": 2,\n    \"sales\": 0\n}\n\n```\nA **url** to fetch all products could take a **GET** request to an endpoint with a format such as **api/v1/products** and the response could be formatted as below:\n```json\n{\n\n    \"products\": [\n        {\n            \"P_id\": 1,\n            \"category\": \"laptops\",\n            \"name\": \"macbook air\",\n            \"price\": 1499,\n            \"quantity\": 2\n        },\n        {\n            \"P_id\": 2,\n            \"category\": \"Utensils\",\n            \"name\": \"cups\",\n            \"price\": 9,\n            \"quantity\": 10\n        }\n    ],\n    \"status\": \"successful\"\n}\n}\n```\n\n## Sale Models\nThese represent a sale that could be posted by a user on the app platform. Every sale is mapped to a product/products and an attendant that makes the sale .\nA sale could be formatted and posted as below:\n```json\n\n{\n\t\"attendant\": \"michael\"\n}\n```\n\nresponse:\n```json\n{\n    \"attendant\": \"michael\",\n    \"products\": [\n        {\n            \"P_id\": 1,\n            \"category\": \"laptops\",\n            \"name\": \"macbook air\",\n            \"price\": 1499,\n            \"quantity\": 2\n        }\n    ],\n    \"sale_id\": 1,\n    \"status\": \"successful\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycok%2Fstore_manager_api_v1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmycok%2Fstore_manager_api_v1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycok%2Fstore_manager_api_v1/lists"}