{"id":15848491,"url":"https://github.com/pythonista7/express-prisma","last_synced_at":"2025-04-01T17:48:14.695Z","repository":{"id":135374917,"uuid":"568961072","full_name":"Pythonista7/Express-Prisma","owner":"Pythonista7","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-21T19:33:22.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T11:52:08.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Pythonista7.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":"2022-11-21T19:32:49.000Z","updated_at":"2022-11-21T19:33:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c84bd1c-82d5-48f6-9ab5-5a497c3cf157","html_url":"https://github.com/Pythonista7/Express-Prisma","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"fe0545edff906ab0b9029fe07b719ee94c28ddee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FExpress-Prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FExpress-Prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FExpress-Prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pythonista7%2FExpress-Prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pythonista7","download_url":"https://codeload.github.com/Pythonista7/Express-Prisma/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246684486,"owners_count":20817448,"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-10-05T18:03:03.120Z","updated_at":"2025-04-01T17:48:14.667Z","avatar_url":"https://github.com/Pythonista7.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Building API's with Express and Prisma\n\n## Entities\n\nFollowing are the different entities in the system:\n\n### Users\n\nTwo types: buyers and sellers\nA user can sign up as a buyer or as a seller\n\n### Catalogs\n\nA catalog belongs to a seller\nOne seller can have one catalog\nA catalog consists of Products\n\n### Products\n\nA product has a name and a price\n\n### Orders\n\nAn order can be created by a buyer to purchase items from a seller's catalog\nAn order consists of a list of products\n\n## APIs\n\nFollowing are a few examples of the API endpoints you should expose.\n\n### Auth APIs\n\n`POST /api/auth/register`\n\nRegister a user (accept username, password, type of user - buyer/seller)\n\n`POST /api/auth/login`\n\nLet a previously registered user log in (e.g. retrieve authentication token)\n\n### APIs for buyers\n\n`GET /api/buyer/list-of-sellers`\n\nGet a list of all sellers\n\n`GET /api/buyer/seller-catalog/:seller_id`\n\nGet the catalog of a seller by seller_id\n\n`POST /api/buyer/create-order/:seller_id`\n\nSend a list of items to create an order for seller with id = seller_id\n\n### APIs for sellers\n\n`POST /api/seller/create-catalog`\n\nSend a list of items to create a catalog for a seller\n\n`GET /api/seller/orders`\n\nRetrieve the list of orders received by a seller\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonista7%2Fexpress-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonista7%2Fexpress-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonista7%2Fexpress-prisma/lists"}