https://github.com/prakhardoneria/html-editor-pro-database
https://github.com/prakhardoneria/html-editor-pro-database
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prakhardoneria/html-editor-pro-database
- Owner: PrakharDoneria
- Created: 2024-08-25T09:28:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-07T15:13:27.000Z (about 1 year ago)
- Last Synced: 2025-04-06T07:34:06.694Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Management API
## Endpoints
### 1. Save Project
- **Method:** `POST /save`
- **Request Body:**
```json
{
"url": "https://example.com/file.jpg",
"projectName": "My Project",
"username": "user123",
"uid": "user-unique-id",
"verified": false,
"email": "user@example.com"
}
```
- **Response:**
```json
{
"status": "success",
"projectId": "1"
}
```### 2. Rename Project
- **Method:** `PUT /rename`
- **Request Body:**
```json
{
"projectId": "1",
"name": "New Project Name"
}
```
- **Response:**
```json
{
"status": "success",
"message": "Project renamed successfully."
}
```### 3. Get Projects (Paginated)
- **Method:** `GET /projects?offset=0`
- **Response:**
```json
{
"status": "success",
"projects": [
{
"projectId": "1",
"File": "https://example.com/file.jpg",
"FileName": "My Project",
"Username": "user123",
"UID": "user-unique-id",
"Verified": false,
"Email": "user@example.com",
"Download": "0"
}
],
"total": 10
}
```### 4. Get User's Projects
- **Method:** `GET /profile?uid=user-unique-id`
- **Response:**
```json
{
"status": "success",
"projects": [
{
"projectId": "1",
"File": "https://example.com/file.jpg",
"FileName": "My Project",
"Username": "user123",
"UID": "user-unique-id",
"Verified": false,
"Email": "user@example.com",
"Download": "0"
}
]
}
```### 5. Verify Project
- **Method:** `GET /verify?projectId=1`
- **Response:**
```json
{
"status": "success",
"message": "Project verified."
}
```### 6. Get Project Info
- **Method:** `GET /info?projectId=1`
- **Response:**
```json
{
"status": "success",
"projectId": "1",
"FileName": "My Project",
"Username": "user123",
"UID": "user-unique-id",
"Verified": false,
"Download": "0"
}
```### 7. Get Leaderboard
- **Method:** `GET /leaderboard`
- **Response:**
```json
{
"status": "success",
"projects": [
{
"projectId": "1",
"FileName": "My Project",
"Username": "user123",
"Download": "100"
}
]
}
```### 8. Search Projects
- **Method:** `GET /search?q=my+project`
- **Response:**
```json
{
"status": "success",
"projects": [
{
"projectId": "1",
"FileName": "My Project",
"Username": "user123",
"UID": "user-unique-id",
"Verified": false,
"Download": "0"
}
]
}
```### 9. Delete Project
- **Method:** `DELETE /delete`
- **Request Body:**
```json
{
"projectId": "1",
"uid": "user-unique-id"
}
```
- **Response:**
```json
{
"status": "success",
"message": "Project deleted."
}
```### 10. Increase Download Count
- **Method:** `GET /increase?projectId=1`
- **Response:**
```json
{
"status": "success",
"download": "1"
}
```### 11. Clean Database
- **Method:** `GET /clean`
- **Response:**
```json
{
"status": "success",
"message": "Database cleaned."
}
```