Key Benefits:
-
Effortless Setup: Say goodbye to complex API development. Our platform simplifies the process by letting you input your JSON data directly.
-
User-Friendly: You don't need to be a coding expert to use our API solution. It's designed with ease of use in mind, making it accessible to everyone.
-
Time-Saving: Eliminate the need for extensive coding and testing. You can have your API up and running in no time.
-
Customization: Tailor your API to your specific needs by providing your JSON data.
Whether you're a seasoned developer or just starting with APIs, our JSON Lite API solution can help you quickly and efficiently create the API you need. Try it out today and experience the simplicity of API creation like never before.
- JWT Authentication: Secure user authentication with JSON Web Tokens to protect your API endpoints.
- User Management: Endpoints for user signup, login, profile updates, and deletion.
- CRUD Operations: Implement CRUD (Create, Read, Update, Delete) operations for your data entities.
- Middleware: Utilizes Express middleware for authentication and request handling.
- Modular Structure: Organized codebase with clear separation of concerns for easy maintenance and scalability.
Clone the repository:
git clone https://github.com/BengalByte/json-lite-api.gitConfigure environment variables (e.g., database connection, JWT secret) in a .env file.
cd json-lite-apinpm install
npm run dev
Signup:
Create a new user account by providing a username and password in the request body.
POST /api/signupLogin:
POST /api/login
Authenticate and receive a JWT token by providing valid credentials (username and password) in the request body.
Get User Profile:
bash
GET /api/profile
Retrieve the user's profile information. Requires a valid JWT token.
Update User Profile:
bash
PATCH /api/profile
Update the user's profile information. Requires a valid JWT token.
Delete User Account:
bash
DELETE /api/profile
Delete the user's account and associated data. Requires a valid JWT token.
Data Operations Replace entity with the name of your data entity (e.g., products, users).
Get All Entities:
bash
GET /api/entity
Retrieve all entities of the specified type.
Get Single Entity:
bash
GET /api/entity/:id
Retrieve a single entity by its unique identifier.
Create Entity:
bash
POST /api/entity
Create a new entity by providing the necessary data in the request body.
Update Entity:
bash
PUT /api/entity/:id
Update an existing entity by providing the updated data in the request body.
Delete Entity:
bash
DELETE /api/entity/:id
Delete an entity by its unique identifier.
Contributing Feel free to contribute to the development of this API by opening issues or submitting pull requests. Your feedback and contributions are highly appreciated.