Skip to content

About

Frontend for MAPI, an API marketplace where users discover APIs and providers publish and manage their services through dedicated dashboards.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MAPI Frontend

Frontend implementation of the MAPI (API Marketplace) module developed with React, Redux Toolkit, and TypeScript.

Project Context

EasyLaw is a legal technology platform designed to simplify access to legal services by bringing together several complementary modules within a single ecosystem. Its objective is to connect legal professionals, citizens, and businesses through digital services that improve access to legal information, legal assistance, and professional tools.

The platform includes multiple modules, such as legal consultation services and MAPI (API Marketplace), which enables organizations and developers to publish, discover, manage, and monetize APIs through a unified marketplace.

This repository contains the frontend implementation of the MAPI module only.

The project was carried out as part of the Software Engineering Project module during the second year of the Computer Systems Engineering specialization (2CS) at the Higher National School of Computer Science (ESI, ex-INI), Algiers. Around seven students were responsible for the design and development of the API Marketplace module, while the remaining team members worked on the legal services module.

Overview

MAPI (API Marketplace) is a platform that allows API providers to publish, document, version, secure, and monetize their APIs while enabling consumers to discover, subscribe to, and integrate these APIs through a unified marketplace.

The frontend provides a comprehensive user interface supporting the complete API lifecycle, including:

  • User authentication and role-based access
  • API discovery and browsing
  • API publication and management for providers
  • API versioning and endpoint documentation
  • Subscription and pricing management
  • Payment processing and invoice management
  • Community discussions and support tickets
  • Platform administration and analytics

Core Features

1. Authentication & Authorization

The frontend provides a secure authentication system supporting multiple user roles with dedicated interfaces.

Multi-Role Access

  • Administrator: Platform management dashboard, user and provider administration, analytics overview
  • Provider: API management dashboard, pricing configuration, revenue tracking, support ticket management
  • Consumer: API discovery, subscription management, payment processing, support ticket creation

Authentication Pages

  • Login: Secure login with email and password, token-based authentication
  • Register: User registration with email verification workflow
  • Email Verification: Account activation through verification codes

Profile Management

  • User Profile Settings: Personal information management for consumers
  • User Security Settings: Password management and security preferences
  • Provider Profile Settings: Provider-specific information and company details
  • Provider Security Settings: Provider account security management

2. API Discovery & Browsing

Consumers can discover and explore APIs through a comprehensive marketplace interface.

API Hub

  • Main Page: Browse all available APIs with search and filtering
  • API Details: View comprehensive API information including descriptions, categories, and functionalities
  • API About: Detailed API overview with provider information
  • Endpoints: View all API endpoints with HTTP methods and descriptions
  • Pricing: View subscription plans and pricing options

Search & Filtering

  • Category-based filtering
  • Functionality-based filtering
  • Real-time search capabilities
  • API popularity and rating display

3. API Management for Providers

Providers have comprehensive tools to manage their API offerings throughout the entire lifecycle.

API Dashboard

  • My APIs: List and manage all published APIs
  • Dashboard Provider: Overview of API performance, subscriptions, and revenue
  • Revenue Tracking: Monitor earnings and financial performance

API Configuration

  • General API Configuration: Create and edit API details, descriptions, and metadata
  • API Versioning: Manage multiple API versions with release control
  • Endpoint Management: Add, modify, and configure API endpoints with detailed specifications
  • Endpoint Details: View and manage individual endpoint configurations

Pricing Management

  • Public Pricing Plans: Configure public subscription tiers (Basic, Pro, Ultra, Mega)
  • Private Pricing Plans: Create enterprise-specific pricing with invitation workflow
  • Feature Management: Define and manage API features for different plans
  • Object Management: Configure pricing objects for usage-based billing
  • Promotion Management: Create and manage promotional campaigns with discounts

Invitation System

  • Confirm Invitation Page: Accept invitations to private subscription plans
  • Invitation status tracking and management

4. Subscription & Payment Management

The frontend provides comprehensive tools for managing subscriptions and payments.

Subscription Plans

  • Subscription Plans Page: View available monthly subscription plans for APIs
  • Subscription Plans Per Use: View pay-per-use pricing options
  • Plan Details: View detailed plan information including features and limits
  • Plan Comparison: Compare different subscription options

Payment Processing

  • Subscription Plan Payment: Process monthly subscription payments
  • Pay-Per-Use Payment: Process usage-based payments
  • Payment Method Management: Add and manage payment methods
  • Access Key Generation: Generate API access keys after successful subscription

Invoice Management

  • Invoice History: View all payment transactions and invoices
  • Invoice Details: View detailed invoice information and transaction history

5. Community & Support

The platform encourages interaction between API providers and consumers through community features.

Discussions

  • Discussions Page: View community discussions around APIs
  • Discussion Details: Participate in threaded discussions
  • Add Discussion Modal: Create new discussion topics
  • Discussion Replies: Add replies to existing discussions

Support Tickets

  • User Tickets: View and manage support tickets
  • Add Ticket: Create new support tickets with priority and description
  • Ticket Discussions: View ticket-related discussions
  • Provider Tickets: Provider-specific support ticket management
  • Ticket Status Tracking: Monitor ticket status and progress

6. Administration & Analytics

Administrators have dedicated interfaces to oversee the platform and monitor its activity.

User & Provider Management

  • Manage user and provider accounts
  • View user subscriptions and account activity
  • Perform administrative actions on platform accounts
  • Monitor provider activity and performance

Platform Analytics

  • Dashboard with platform statistics and key performance indicators
  • Monitor user engagement, API usage, and platform revenue

Live Demo

Screenshots

API Marketplace

Browse and discover published APIs available on the marketplace.

API Marketplace

API Management

Manage API information, metadata, and configuration.

API Management

Endpoint Management

Create and configure API endpoints.

Endpoint Management

Pricing Plans

Configure subscription plans and pricing options.

Pricing Plans

API Versioning

Manage multiple API versions throughout the API lifecycle.

API Versioning

Tech Stack

  • Framework: React 18.3.1
  • Language: TypeScript 5.2.2
  • Build Tool: Vite 5.2.11
  • State Management: Redux Toolkit 2.2.2
  • Routing: React Router DOM 6.23.1
  • UI Components:
    • Material UI (MUI) 5.15.15
    • Ant Design 5.17.2
    • Radix UI components
    • Tailwind CSS 3.4.3
  • HTTP Client: Axios 1.6.8
  • Charts: Chart.js 4.4.3, Recharts 2.12.7
  • Icons: Lucide React, React Icons, FontAwesome

Project Structure

src/
├── app/                    # Redux store configuration and routing
│   ├── App.tsx            # Main application component with route definitions
│   ├── store.ts           # Redux store configuration
│   └── PrivateRoutes.tsx  # Protected route components
├── components/            # Reusable React components
│   ├── features/          # Redux slices and feature-specific components
│   ├── api_hub/           # API marketplace components
│   ├── apis_management/   # API provider management components
│   ├── support_hub/       # Support and ticket components
│   └── ui/                # Generic UI components
├── pages/                 # Page-level components
│   ├── api_hub/           # API browsing and discovery pages
│   ├── apis_management/   # API provider management pages
│   ├── authentication/   # Login, register, verification pages
│   ├── payment/           # Payment and subscription pages
│   ├── support_hub/       # Support ticket pages
│   ├── admin/             # Admin dashboard pages
│   ├── discussions/       # Community discussion pages
│   ├── Subscriptions/     # Subscription management pages
│   ├── invoices/          # Invoice and payment history pages
│   ├── UserSettings/      # User profile and settings pages
│   └── home/              # Landing page
├── types/                 # TypeScript type definitions
├── styles/                # Global styles and CSS
├── assets/                # Static assets (images, fonts)
└── lib/                   # Utility libraries

Getting Started

1. Clone the repository

git clone https://github.com/Meriem-ht/mapi-front.git
cd mapi-front

2. Install dependencies

npm install
# or
yarn install

3. Configure environment variables

Create a .env file and configure the required variables:

VITE_API_URL=http://localhost:8000

4. Start the development server

npm run dev
# or
yarn dev

The application will be available at http://localhost:5173

My Contribution

I served as the technical lead of the API Marketplace team throughout the project.

Technical Leadership

  • Planned and coordinated the development of the API Marketplace module
  • Organized technical meetings and distributed development tasks
  • Reviewed and validated pull requests
  • Managed the integration of independently developed features into a coherent backend and frontend
  • Ensured compatibility between different components developed by team members throughout the project

Backend

I designed and implemented the complete API monetization subsystem, including:

  • Subscription plans
  • Public and private pricing models
  • Objects and Features associated with subscription plans
  • Promotions
  • Business rules governing API monetization
  • Backend endpoints required for the provider api dashboard

I also contributed to the implementation and integration of backend APIs required by the frontend features I developed.

Frontend

I developed the complete provider dashboard related to API management, including:

  • API Management: List, create, and edit APIs with comprehensive configuration options
  • API Versioning: Manage multiple API versions with release control and status tracking
  • Endpoint Management: Add, modify, and configure API endpoints with detailed specifications including HTTP methods, data formats, parameters, and examples
  • Pricing Management: Configure public subscription plans (Basic, Pro, Ultra, Mega) with flexible pricing models
  • Private Plans: Create enterprise-specific pricing with invitation workflow and status tracking
  • Objects & Features Management: Define pricing objects and API features with plan-specific availability
  • Promotion Management: Create and manage promotional campaigns with percentage discounts and time limits

Database Design

I participated in the design of the relational database schema with the team and proposed the architecture of the monetization subsystem.


Related Repository

Backend:

https://github.com/Meriem-ht/mapi-backend

Authors

Developed by the API Marketplace team (7 students) as part of the EasyLaw project at ESI Algiers.

About

Frontend for MAPI, an API marketplace where users discover APIs and providers publish and manage their services through dedicated dashboards.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages