|
| 1 | +[ |
| 2 | + { |
| 3 | + "name": "health", |
| 4 | + "method": "GET", |
| 5 | + "path": "/health", |
| 6 | + "description": "Service health check", |
| 7 | + "includeInApiCoverage": false |
| 8 | + }, |
| 9 | + { |
| 10 | + "name": "auth-register", |
| 11 | + "method": "POST", |
| 12 | + "path": "/api/auth/register", |
| 13 | + "description": "Register a freelancer account", |
| 14 | + "json": { |
| 15 | + "email": "benchmark.freelancer@example.com", |
| 16 | + "password": "benchmark-pass-123", |
| 17 | + "role": "freelancer" |
| 18 | + } |
| 19 | + }, |
| 20 | + { |
| 21 | + "name": "auth-login", |
| 22 | + "method": "POST", |
| 23 | + "path": "/api/auth/login", |
| 24 | + "description": "Log in an existing client", |
| 25 | + "json": { |
| 26 | + "email": "benchmark.client@example.com", |
| 27 | + "password": "benchmark-pass-123" |
| 28 | + } |
| 29 | + }, |
| 30 | + { |
| 31 | + "name": "auth-oauth-callback", |
| 32 | + "method": "GET", |
| 33 | + "path": "/api/auth/oauth/github/callback", |
| 34 | + "coveragePath": "/api/auth/oauth/:provider/callback", |
| 35 | + "description": "OAuth provider callback" |
| 36 | + }, |
| 37 | + { |
| 38 | + "name": "auth-refresh", |
| 39 | + "method": "POST", |
| 40 | + "path": "/api/auth/refresh", |
| 41 | + "description": "Refresh an access token" |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "users-list", |
| 45 | + "method": "GET", |
| 46 | + "path": "/api/users", |
| 47 | + "description": "List users" |
| 48 | + }, |
| 49 | + { |
| 50 | + "name": "users-create", |
| 51 | + "method": "POST", |
| 52 | + "path": "/api/users", |
| 53 | + "description": "Create a user profile", |
| 54 | + "json": { |
| 55 | + "email": "benchmark.user@example.com", |
| 56 | + "name": "Benchmark User", |
| 57 | + "role": "client", |
| 58 | + "company": "Benchmark Studio" |
| 59 | + } |
| 60 | + }, |
| 61 | + { |
| 62 | + "name": "jobs-list", |
| 63 | + "method": "GET", |
| 64 | + "path": "/api/jobs", |
| 65 | + "description": "List jobs" |
| 66 | + }, |
| 67 | + { |
| 68 | + "name": "jobs-create", |
| 69 | + "method": "POST", |
| 70 | + "path": "/api/jobs", |
| 71 | + "description": "Create a job with realistic payload size", |
| 72 | + "json": { |
| 73 | + "title": "Build a secure onboarding dashboard", |
| 74 | + "description": "Benchmark payload for a medium-sized marketplace job brief with scope, acceptance criteria, milestones, and preferred collaboration details.", |
| 75 | + "budgetMin": 1500, |
| 76 | + "budgetMax": 4200, |
| 77 | + "categoryId": "cat_web_apps", |
| 78 | + "skills": ["node", "express", "react", "security-review", "performance"] |
| 79 | + } |
| 80 | + }, |
| 81 | + { |
| 82 | + "name": "proposals-list", |
| 83 | + "method": "GET", |
| 84 | + "path": "/api/proposals", |
| 85 | + "description": "List proposals" |
| 86 | + }, |
| 87 | + { |
| 88 | + "name": "proposals-create", |
| 89 | + "method": "POST", |
| 90 | + "path": "/api/proposals", |
| 91 | + "description": "Create a proposal", |
| 92 | + "json": { |
| 93 | + "jobId": "job_benchmark", |
| 94 | + "freelancerId": "usr_benchmark_freelancer", |
| 95 | + "coverLetter": "I can deliver a secure dashboard with clear milestones, weekly demos, and performance baselines.", |
| 96 | + "bidAmount": 2800, |
| 97 | + "estimatedDays": 14 |
| 98 | + } |
| 99 | + }, |
| 100 | + { |
| 101 | + "name": "payments-create", |
| 102 | + "method": "POST", |
| 103 | + "path": "/api/payments", |
| 104 | + "description": "Create a payment intent", |
| 105 | + "json": { |
| 106 | + "jobId": "job_benchmark", |
| 107 | + "amount": 50000, |
| 108 | + "currency": "usd", |
| 109 | + "milestone": "deposit" |
| 110 | + } |
| 111 | + }, |
| 112 | + { |
| 113 | + "name": "reviews-list", |
| 114 | + "method": "GET", |
| 115 | + "path": "/api/reviews", |
| 116 | + "description": "List reviews" |
| 117 | + }, |
| 118 | + { |
| 119 | + "name": "reviews-create", |
| 120 | + "method": "POST", |
| 121 | + "path": "/api/reviews", |
| 122 | + "description": "Create a review", |
| 123 | + "json": { |
| 124 | + "jobId": "job_benchmark", |
| 125 | + "rating": 5, |
| 126 | + "comment": "Clear communication, secure delivery, and strong documentation.", |
| 127 | + "reviewerId": "usr_benchmark_client", |
| 128 | + "revieweeId": "usr_benchmark_freelancer" |
| 129 | + } |
| 130 | + }, |
| 131 | + { |
| 132 | + "name": "messages-list", |
| 133 | + "method": "GET", |
| 134 | + "path": "/api/messages", |
| 135 | + "description": "List messages" |
| 136 | + }, |
| 137 | + { |
| 138 | + "name": "messages-create", |
| 139 | + "method": "POST", |
| 140 | + "path": "/api/messages", |
| 141 | + "description": "Send a project message", |
| 142 | + "json": { |
| 143 | + "threadId": "thread_benchmark", |
| 144 | + "senderId": "usr_benchmark_client", |
| 145 | + "recipientId": "usr_benchmark_freelancer", |
| 146 | + "body": "Can you confirm the milestone handoff checklist and next demo date?" |
| 147 | + } |
| 148 | + }, |
| 149 | + { |
| 150 | + "name": "notifications-list", |
| 151 | + "method": "GET", |
| 152 | + "path": "/api/notifications", |
| 153 | + "description": "List notifications" |
| 154 | + }, |
| 155 | + { |
| 156 | + "name": "notifications-create", |
| 157 | + "method": "POST", |
| 158 | + "path": "/api/notifications", |
| 159 | + "description": "Create a notification", |
| 160 | + "json": { |
| 161 | + "userId": "usr_benchmark_freelancer", |
| 162 | + "type": "milestone_due", |
| 163 | + "message": "Your benchmark milestone is due tomorrow.", |
| 164 | + "metadata": { |
| 165 | + "jobId": "job_benchmark", |
| 166 | + "severity": "info" |
| 167 | + } |
| 168 | + } |
| 169 | + }, |
| 170 | + { |
| 171 | + "name": "uploads-create", |
| 172 | + "method": "POST", |
| 173 | + "path": "/api/uploads", |
| 174 | + "description": "Upload a small handoff document", |
| 175 | + "multipart": { |
| 176 | + "fieldName": "file", |
| 177 | + "filename": "benchmark-handoff.txt", |
| 178 | + "contentType": "text/plain", |
| 179 | + "content": "Benchmark upload payload for the freelance marketplace API.\nIncludes milestone notes and delivery checklist.\n" |
| 180 | + } |
| 181 | + }, |
| 182 | + { |
| 183 | + "name": "search", |
| 184 | + "method": "GET", |
| 185 | + "path": "/api/search", |
| 186 | + "description": "Search jobs and users", |
| 187 | + "query": { |
| 188 | + "q": "secure react dashboard" |
| 189 | + } |
| 190 | + }, |
| 191 | + { |
| 192 | + "name": "admin-metrics", |
| 193 | + "method": "GET", |
| 194 | + "path": "/api/admin/metrics", |
| 195 | + "description": "Read admin metrics with a benchmark token", |
| 196 | + "auth": "benchmarkToken" |
| 197 | + } |
| 198 | +] |
0 commit comments