{"info":{"_postman_id":"ed5afb3f-2b1d-4a9e-8ac0-5261810ff53f","name":"Kindly","description":"<html><head></head><body><p>Welcome to the API documentation for Kindly, a donation application designed to facilitate giving and support various causes. This documentation provides a concise guide to the RESTful API endpoints available in the Kindly application, categorized into three main sections: Products, Orders, and Users.</p>\n<h2 id=\"collection-description\">Collection Description</h2>\n<p>The Kindly API collection consists of endpoints aimed at managing donations and user accounts. Each section contains endpoints that allow users to interact with product listings, place donation orders, and manage user accounts seamlessly.</p>\n<h3 id=\"products\">Products</h3>\n<p>The Products section includes endpoints related to managing donation listings. Users can retrieve lists of available donations, view detailed information about specific donations, create new donation listings, and view donations listed by specific contributors.</p>\n<h3 id=\"orders\">Orders</h3>\n<p>The Orders section provides endpoints for managing donation orders placed by users. Users can retrieve lists of their donation orders, update existing orders, and delete orders as needed. These endpoints facilitate the management of donations and order statuses.</p>\n<h3 id=\"users\">Users</h3>\n<p>The Users section contains endpoints for managing user accounts. Users can create new accounts and check for the existence of a user with a specific email address. These endpoints enable user registration and authentication within the Kindly application.</p>\n<h2 id=\"getting-started\">Getting Started</h2>\n<p>To get started using the Kindly API, refer to the detailed documentation below, which provides information about each endpoint, including their purpose, parameters, request and response structures, and expected behaviors. Ensure that you have the necessary authentication credentials and permissions to access the API endpoints.</p>\n<h2 id=\"api-endpoints\">API Endpoints</h2>\n<p>Explore the following sections to learn more about each API endpoint:</p>\n<ul>\n<li><a href=\"https://go.postman.co/workspace/41cb977c-6d2f-4d11-bb43-ade1f235fe11/documentation/32468148-ed5afb3f-2b1d-4a9e-8ac0-5261810ff53f?entity=folder-c82ee770-dd12-4b80-87a1-bcc8b900fd48\">Products Endpoints</a></li>\n<li><a href=\"https://go.postman.co/workspace/41cb977c-6d2f-4d11-bb43-ade1f235fe11/documentation/32468148-ed5afb3f-2b1d-4a9e-8ac0-5261810ff53f?entity=folder-dc263f4c-a091-4233-8b73-61449f994172\">Orders Endpoints</a></li>\n<li><a href=\"https://go.postman.co/workspace/41cb977c-6d2f-4d11-bb43-ade1f235fe11/documentation/32468148-ed5afb3f-2b1d-4a9e-8ac0-5261810ff53f?entity=folder-fc905a1c-a5c4-4574-9ad0-8388535a6f92\">Users Endpoints</a></li>\n</ul>\n<h2 id=\"conclusion\">Conclusion</h2>\n<p>The Kindly API documentation aims to provide developers with a clear understanding of how to interact with the API endpoints effectively. Whether you're building a frontend application, integrating with third-party services, or developing additional features for the Kindly platform, this documentation serves as a valuable resource for utilizing the API functionalities.</p>\n<p>Let's dive into the details of each API endpoint!</p>\n<hr>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32468148","collectionId":"ed5afb3f-2b1d-4a9e-8ac0-5261810ff53f","publishedId":"2sA2r3YRBv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-11T02:27:28.000Z"},"item":[{"name":"User","item":[{"name":"new_user","id":"e99947f6-462a-44da-aae3-4f640e8953f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"e99947f6-462a-44da-aae3-4f640e8953f7"},{"name":"is_user_exist","id":"4920caf2-db07-49ba-a8ea-053e07b7a555","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"4920caf2-db07-49ba-a8ea-053e07b7a555"}],"id":"fc905a1c-a5c4-4574-9ad0-8388535a6f92","description":"<h4 id=\"post-users\">POST /users</h4>\n<ul>\n<li><p><strong>Description:</strong> Creates a new user account.</p>\n</li>\n<li><p><strong>Request Body:</strong> A JSON object representing the new user with attributes like name, email, password, etc.</p>\n</li>\n<li><p><strong>Response:</strong> The result of the insertion operation, typically confirming the successful creation of the new user account.</p>\n</li>\n</ul>\n<h4 id=\"get-isuserexist\">GET /isUserExist</h4>\n<ul>\n<li><p><strong>Description:</strong> Checks if a user with a specific email address already exists.</p>\n</li>\n<li><p><strong>Query Parameters:</strong></p>\n<ul>\n<li><code>email</code>: The email address to check for existence.</li>\n</ul>\n</li>\n<li><p><strong>Response:</strong> A JSON object indicating whether a user with the specified email exists or not.</p>\n</li>\n</ul>\n","_postman_id":"fc905a1c-a5c4-4574-9ad0-8388535a6f92"},{"name":"Product","item":[{"name":"get_all_products","id":"d07f54d7-a2b6-46bb-963f-bd604a1d035d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"d07f54d7-a2b6-46bb-963f-bd604a1d035d"},{"name":"add_products","id":"0266f60a-0ca1-4aee-879e-a46210081676","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5000/products","urlObject":{"protocol":"http","port":"5000","path":["products"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0266f60a-0ca1-4aee-879e-a46210081676"},{"name":"products_by_email","id":"152016ed-1eb2-49db-9ded-2b2ee20789f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"152016ed-1eb2-49db-9ded-2b2ee20789f3"}],"id":"c82ee770-dd12-4b80-87a1-bcc8b900fd48","description":"<h4 id=\"get-products\">GET /products</h4>\n<ul>\n<li><strong>Description:</strong> Retrieves a list of products available for sale.</li>\n<li><strong>Query Parameters:</strong><ul>\n<li><code>search</code> (optional): A string to filter products by title.</li>\n</ul>\n</li>\n<li><strong>Response:</strong> An array of product objects containing details such as title, description, price, and seller information. Products are sorted by creation date in descending order.</li>\n</ul>\n<h4 id=\"get-productsid\">GET /products/:id</h4>\n<ul>\n<li><strong>Description:</strong> Retrieves detailed information about a specific product.</li>\n<li><strong>URL Parameters:</strong><ul>\n<li><code>id</code>: The unique identifier of the product.</li>\n</ul>\n</li>\n<li><strong>Response:</strong> A single product object with attributes including title, description, price, status, and seller information.</li>\n</ul>\n<h4 id=\"post-products\">POST /products</h4>\n<ul>\n<li><strong>Description:</strong> Creates a new product listing.</li>\n<li><strong>Request Body:</strong> A JSON object representing the new product with attributes like title, description, price, and seller information.</li>\n<li><strong>Response:</strong> The result of the insertion operation, typically confirming the successful creation of the new product.</li>\n</ul>\n<h4 id=\"get-myproducts\">GET /myproducts</h4>\n<ul>\n<li><strong>Description:</strong> Retrieves a list of products listed by the authenticated user.</li>\n<li><strong>Query Parameters:</strong><ul>\n<li><code>email</code>: The email address of the seller.</li>\n</ul>\n</li>\n<li><strong>Response:</strong> An array of products listed by the specified seller, including details such as title, description, price, and status.</li>\n</ul>\n","_postman_id":"c82ee770-dd12-4b80-87a1-bcc8b900fd48"},{"name":"Order","item":[{"name":"orders_by_email","id":"c02d98d3-b989-4676-bb09-2436e6e64330","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"c02d98d3-b989-4676-bb09-2436e6e64330"},{"name":"add_orders","id":"69c00108-50b4-4f82-8892-a0fc40d6269b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"69c00108-50b4-4f82-8892-a0fc40d6269b"}],"id":"dc263f4c-a091-4233-8b73-61449f994172","description":"<h4 id=\"get-orders\">GET /orders</h4>\n<ul>\n<li><p><strong>Description:</strong> Retrieves a list of orders placed by a specific buyer.</p>\n</li>\n<li><p><strong>Query Parameters:</strong></p>\n<ul>\n<li><code>email</code>: The email address of the buyer.</li>\n</ul>\n</li>\n<li><p><strong>Response:</strong> An array of order objects containing details such as order ID, product details, quantity, total price, and order status. Orders are sorted by creation date in descending order.</p>\n</li>\n</ul>\n<h4 id=\"put-orders\">PUT /orders</h4>\n<ul>\n<li><p><strong>Description:</strong> Updates an existing order or creates a new order if not already present.</p>\n</li>\n<li><p><strong>Request Body:</strong> A JSON object representing the order with attributes like product ID, quantity, buyer information, and order status.</p>\n</li>\n<li><p><strong>Response:</strong> The result of the update operation, typically indicating the success of updating an existing order or creating a new order.</p>\n</li>\n</ul>\n<h4 id=\"delete-ordersid\">DELETE /orders/:id</h4>\n<ul>\n<li><p><strong>Description:</strong> Deletes a specific order and updates the status of the associated product to \"unsold\".</p>\n</li>\n<li><p><strong>URL Parameters:</strong></p>\n<ul>\n<li><code>id</code>: The unique identifier of the order to be deleted.</li>\n</ul>\n</li>\n<li><p><strong>Query Parameters:</strong></p>\n<ul>\n<li><code>productId</code>: The ID of the associated product.</li>\n</ul>\n</li>\n<li><p><strong>Response:</strong> The result of the deletion operation, typically indicating the success of deleting the order and updating the product status.</p>\n</li>\n</ul>\n","_postman_id":"dc263f4c-a091-4233-8b73-61449f994172"}]}