You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-6Lines changed: 39 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
-
2
1
# Faucet Backend API
3
2
4
-
This API provides endpoints for interacting with two main tables: `faucet.solana_balances` and `faucet.rate_limits`. Below are the available endpoints for each table.
3
+
This API provides endpoints for interacting with two main tables: `faucet.solana_balances` and `faucet.rate_limits`.
4
+
Below are the available endpoints for each table.
5
5
6
6
---
7
+
7
8
## How to Run
8
9
9
10
1. Clone the repository
@@ -78,8 +79,7 @@ This API provides endpoints for interacting with two main tables: `faucet.solana
78
79
"account": "string",
79
80
"balance": "number",
80
81
"date": "timestamp"
81
-
},
82
-
...
82
+
}
83
83
]
84
84
```
85
85
@@ -99,8 +99,7 @@ This API provides endpoints for interacting with two main tables: `faucet.solana
99
99
"account": "string",
100
100
"balance": "number",
101
101
"date": "timestamp"
102
-
},
103
-
...
102
+
}
104
103
]
105
104
```
106
105
@@ -176,6 +175,40 @@ This API provides endpoints for interacting with two main tables: `faucet.solana
176
175
}
177
176
```
178
177
178
+
### **Create a New Rate Limit Combination**
179
+
180
+
**POST**`/api/rate-limits-combo`
181
+
182
+
-**Description**: Adds a new rate limit combination entry. Each combination of `ip_address`, `wallet_address`,
183
+
and `github_username` is checked for uniqueness before inserting to DB.
184
+
-**Request Body**:
185
+
```json
186
+
{
187
+
"ip_address": "string",
188
+
"wallet_address": "string",
189
+
"github_username": "string"
190
+
}
191
+
```
192
+
-**Curl Command**:
193
+
```bash
194
+
curl -v -X POST http://localhost:3000/api/rate-limits-combo \
0 commit comments