New-Release
Pre-release
Pre-release
π Subscription API - v1.0.0
π Initial Release
This is the first release of Subscription API, a robust backend system for managing user subscriptions with authentication and secure token-based access.
π Features
β
User Authentication: Secure JWT-based login and signup
β
Refresh Tokens: Implements refresh token mechanism for session management
β
Subscription Management: Easily manage user subscriptions
β
MongoDB Integration: Uses Mongoose for seamless database operations
β
RESTful API: Well-structured API endpoints for smooth integration
π¦ Installation
- Clone the repository
git clone https://github.com/cpojha/Subscription-API.git cd Subscription-API - Install dependencies
npm install - Set up environment variables
Create a.envfile and add:MONGO_URI=your_mongodb_connection_string JWT_SECRET=your_secret_key REFRESH_SECRET=your_refresh_token_secret - Run the API
The server will start at
npm starthttp://localhost:5000
π API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/auth/signup | Register a new user |
| POST | /api/auth/login | Authenticate user |
| POST | /api/auth/refresh | Generate new access token |
| GET | /api/subscription | Get user subscription info |
| POST | /api/subscription | Create a subscription |
π οΈ Improvements in Future Releases
- β Role-based access control (RBAC)
- β Subscription plan upgrades
- β API rate limiting for security
- β Webhooks for real-time updates
π― Contributors
π‘ Have feedback or ideas? Open an issue or submit a pull request! π
This markdown can be used in your GitHub releases section. Let me know if you need any modifications! π
Here's a **Markdown release note** for your **Subscription-API** project: