Skip to main content

Tool for doing retention rate analysis

Project description

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:

  1. Clone the Repository

    git clone https://github.com/areg-hovakimyan/CRR
    
  2. Move to project directory

    cd CRR
    
  3. Install required libraries

    pip install -r requirements.txt
    
  4. Run the Application

    uvicorn run:app 
    

Base URL

All URLs referenced in the documentation have the following base:

http://127.0.0.1:8000/docs

Customer Endpoints

  • Get Customer 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

  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crr-0.0.3.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distribution

CRR-0.0.3-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page