(envConfig)
| 195 | */ |
| 196 | |
| 197 | export default function ctRouter(envConfig) { |
| 198 | /** |
| 199 | * @swagger |
| 200 | * |
| 201 | * security: |
| 202 | * - APIKeyHeader: [] |
| 203 | * |
| 204 | * tags: |
| 205 | * - name: CT - Organization search |
| 206 | * description: Check whether the provided organization is in any of the saved certificate transparency logs. |
| 207 | * |
| 208 | * /api/v1.0/ct/org: |
| 209 | * get: |
| 210 | * # Operation-specific security: |
| 211 | * security: |
| 212 | * - APIKeyHeader: [] |
| 213 | * description: Finds Certificate Transparency certificates based on their organization. |
| 214 | * tags: [CT - Organization search] |
| 215 | * produces: |
| 216 | * - application/json |
| 217 | * parameters: |
| 218 | * - name: org |
| 219 | * type: string |
| 220 | * required: true |
| 221 | * description: The organization |
| 222 | * in: query |
| 223 | * responses: |
| 224 | * 200: |
| 225 | * description: Returns a JSON object with the matched certificates. |
| 226 | * schema: |
| 227 | * $ref: '#/definitions/CT-LogResponse' |
| 228 | * 400: |
| 229 | * description: Bad request parameters. |
| 230 | * schema: |
| 231 | * $ref: '#/definitions/BadInputError' |
| 232 | * 404: |
| 233 | * description: No matching records found. |
| 234 | * schema: |
| 235 | * $ref: '#/definitions/ResultsNotFound' |
| 236 | * 500: |
| 237 | * description: Server error. |
| 238 | * schema: |
| 239 | * $ref: '#/definitions/ServerError' |
| 240 | * |
| 241 | * /api/v1.0/ct/org?count=1&org={org}: |
| 242 | * get: |
| 243 | * # Operation-specific security: |
| 244 | * security: |
| 245 | * - APIKeyHeader: [] |
| 246 | * description: Counts Certifcate Transparency certificates issued to a specific organization. |
| 247 | * tags: [CT - Organization search] |
| 248 | * produces: |
| 249 | * - application/json |
| 250 | * parameters: |
| 251 | * - name: org |
| 252 | * type: string |
| 253 | * required: true |
| 254 | * description: The organization |
no test coverage detected