Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.99 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.99 KB

Flask REST API

This project is a Flask-based REST API that provides click tracking functionality.

Table of Contents

Project Description

This Flask REST API is designed to track clicks and provide insights into campaign performance. It allows users to retrieve the total number of clicks recorded. The API is built using the Flask framework and follows RESTful principles.

Installation

To install and run the Flask API locally, follow these steps:

  1. Clone the repository: git clone <repository-url>
  2. Navigate to the project directory: cd flask-rest-api
  3. Install the required dependencies: pip install -r requirements.txt
  4. Run the Flask application: python app.py
  5. The API will be available at http://localhost:5000

Usage

Once the Flask API is running, you can interact with it using HTTP requests. Here's an example:

  • GET request to retrieve the total number of clicks:
    • Endpoint: /clicks
    • Response: {"total_clicks": 1000}

API Endpoints

The Flask API provides the following endpoints:

  • /clicks: Retrieves the total number of clicks recorded.

Technologies Used

The Flask REST API project utilizes the following technologies:

  • Flask: A micro web framework used for building the API.
  • Flask-RESTful: An extension for Flask that simplifies building RESTful APIs.
  • Python: The programming language used for implementing the API.

Contributing

Contributions to this project are welcome. To contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch: git checkout -b feature/your-feature-name
  3. Commit your changes: git commit -m "Add your changes"
  4. Push to the branch: git push origin feature/your-feature-name
  5. Submit a pull request

License

This project is licensed under the MIT License.