- Add OpenAPI schema endpoint at /openapi.json with proper logging - Make server exportable for testing by wrapping app.listen in module check - Add Jest test suite covering all API endpoints - Improve request logging with IP addresses and timestamps - Add development dependencies for testing (jest, supertest)
21 lines
438 B
JSON
21 lines
438 B
JSON
{
|
|
"name": "no-as-service",
|
|
"version": "1.0.0",
|
|
"description": "A lightweight API that returns random rejection or no reasons.",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"start": "node index.js",
|
|
"test": "jest"
|
|
},
|
|
"author": "hotheadhacker",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"express": "^4.18.2",
|
|
"express-rate-limit": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"jest": "^30.1.2",
|
|
"supertest": "^7.1.4"
|
|
}
|
|
}
|