Frontend implementation of the MAPI (API Marketplace) module developed with React, Redux Toolkit, and TypeScript.
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.
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
The frontend provides a secure authentication system supporting multiple user roles with dedicated interfaces.
- 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
- Login: Secure login with email and password, token-based authentication
- Register: User registration with email verification workflow
- Email Verification: Account activation through verification codes
- 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
Consumers can discover and explore APIs through a comprehensive marketplace interface.
- 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
- Category-based filtering
- Functionality-based filtering
- Real-time search capabilities
- API popularity and rating display
Providers have comprehensive tools to manage their API offerings throughout the entire lifecycle.
- My APIs: List and manage all published APIs
- Dashboard Provider: Overview of API performance, subscriptions, and revenue
- Revenue Tracking: Monitor earnings and financial performance
- 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
- 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
- Confirm Invitation Page: Accept invitations to private subscription plans
- Invitation status tracking and management
The frontend provides comprehensive tools for managing subscriptions and payments.
- 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
- 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 History: View all payment transactions and invoices
- Invoice Details: View detailed invoice information and transaction history
The platform encourages interaction between API providers and consumers through community features.
- 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
- 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
Administrators have dedicated interfaces to oversee the platform and monitor its activity.
- Manage user and provider accounts
- View user subscriptions and account activity
- Perform administrative actions on platform accounts
- Monitor provider activity and performance
- Dashboard with platform statistics and key performance indicators
- Monitor user engagement, API usage, and platform revenue
- Frontend: https://mapi-front.vercel.app
- Backend API: https://mapi-backend-97nj.onrender.com
- API Documentation: https://mapi-backend-97nj.onrender.com/schema/docs/
Browse and discover published APIs available on the marketplace.
Manage API information, metadata, and configuration.
Create and configure API endpoints.
Configure subscription plans and pricing options.
Manage multiple API versions throughout the API lifecycle.
- 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
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
git clone https://github.com/Meriem-ht/mapi-front.git
cd mapi-frontnpm install
# or
yarn installCreate a .env file and configure the required variables:
VITE_API_URL=http://localhost:8000npm run dev
# or
yarn devThe application will be available at http://localhost:5173
I served as the technical lead of the API Marketplace team throughout the project.
- 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
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.
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
I participated in the design of the relational database schema with the team and proposed the architecture of the monetization subsystem.
Backend:
https://github.com/Meriem-ht/mapi-backend
Developed by the API Marketplace team (7 students) as part of the EasyLaw project at ESI Algiers.


