Mkdocs Weblink: https://areg-hovakimyan.github.io/CRR/
API Documentation
This API is designed to manage customers, products, orders, modeling, and churn rates for a retail business application.
Setup
Follow these steps to get your API up and running on your local machine:
-
Clone the Repository
git clone https://github.com/areg-hovakimyan/CRR
-
Move to project directory
cd CRR
-
Install required libraries
pip install -r requirements.txt
-
Run the Application
uvicorn run:app
Base URL
All URLs referenced in the documentation have the following base:
Customer Endpoints
-
Get Customer Emails by Cluster
Get /emails/- Creates a new customer record.
- Swagger UI: Get Emails by Cluster
-
Create a Customer
POST /customers/- Creates a new customer record.
- Swagger UI: Create Customer
-
Get a Customer
GET /customers/{customer_id}- Retrieves a customer by ID.
- Swagger UI: Get Customer
-
Delete a Customer
DELETE /customers/{customer_id}- Deletes a customer by ID.
- Swagger UI: Delete Customer
-
Update a Customer
PATCH /customers/{customer_id}- Updates an existing customer.
- Swagger UI: Update Customer
Product Endpoints
-
Create a Product
POST /products/- Creates a new product record.
- Swagger UI: Create Product
-
Get a Product
GET /products/{product_id}- Retrieves a product by ID.
- Swagger UI: Get Product
-
Delete a Product
DELETE /products/{product_id}- Deletes a product by ID.
- Swagger UI: Delete Product
-
Update a Product
PATCH /products/{product_id}- Updates an existing product.
- Swagger UI: Update Product
Order Endpoints
-
Create an Order
POST /orders/- Creates a new order.
- Swagger UI: Create Order
-
Get an Order
GET /orders/{order_id}- Retrieves an order by ID.
- Swagger UI: Get Order
-
Delete an Order
DELETE /orders/{order_id}- Deletes an order by ID.
- Swagger UI: Delete Order
-
Update an Order
PATCH /orders/{order_id}- Updates an existing order.
- Swagger UI: Update Order
Modeling Endpoints
-
Create a Modeling Record
POST /modeling/- Creates a new modeling record for a customer.
- Swagger UI: Create Modeling
-
Get a Modeling Record
GET /modeling/{customer_id}- Retrieves a modeling record by customer ID.
- Swagger UI: Get Modeling
-
Delete a Modeling Record
DELETE /modeling/{customer_id}- Deletes a modeling record by customer ID.
- Swagger UI: Delete Modeling
-
Update a Modeling Record
PATCH /modeling/{customer_id}- Updates an existing modeling record.
- Swagger UI: Update Modeling
Churn Rate Endpoints
-
Create a Churn Rate Record
POST /churnrate/- Creates a new churn rate record.
- Swagger UI: Create Churn Rate
-
Get a Churn Rate Record
GET /churnrate/{risk_level}- Retrieves a churn rate record by risk level.
- Swagger UI: Get Churn Rate
-
Delete a Churn Rate Record
DELETE /churnrate/{risk_level}- Deletes a churn rate record by risk level.
- Swagger UI: Delete Churn Rate
-
Update a Churn Rate Record
PATCH /churnrate/{risk_level}- Updates an existing churn rate record.
- Swagger UI: Update Churn Rate
Metadata
Release files for CRR 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crr-0.0.3.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| CRR-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.4 MB
Release files / crr-0.0.3.tar.gz
| Download URL | crr-0.0.3.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb51e79d7e47d5f2397b3a0ff704e84ff699216509ec8913c620d8c1c28e69a8
|
|
BLAKE2b-256 checksum How to use checksums |
bc1ca077cc501d3c6be378fd0b9ca90d403ef28222e7a3a05281f9da2eab7994
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.10
|
Release files / CRR-0.0.3-py3-none-any.whl
| Download URL | CRR-0.0.3-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56744e72759b8c06a0f541064f9d76391cb1e1d9a4a20e5cde05bd63b78ca4a9
|
|
BLAKE2b-256 checksum How to use checksums |
960200154d1931f142127ec727797e180143645c5831bd1aac31b6440833179a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.10
|