(envConfig)
| 322 | |
| 323 | /* eslint-disable-next-line no-unused-vars */ |
| 324 | export default function graphsRouter(envConfig) { |
| 325 | |
| 326 | /** |
| 327 | * @swagger |
| 328 | * |
| 329 | * security: |
| 330 | * - APIKeyHeader: [] |
| 331 | * |
| 332 | * tags: |
| 333 | * - name: Graphs - Fetch zone links |
| 334 | * description: Fetch the d3.js links component of the zone's graph. |
| 335 | * - name: Graphs - Fetch zone config |
| 336 | * description: Fetch the d3.js config component of the zone's graph. |
| 337 | * - name: Graphs - Fetch zone docs |
| 338 | * description: Fetch the d3.js docs component of the zone's graph. |
| 339 | * - name: Graphs - Fetch zone count |
| 340 | * description: Fetch the count of the graphs for the zone. |
| 341 | * - name: Graphs - Fetch zone data |
| 342 | * description: Fetch the d3.js data component of the zone's graph. |
| 343 | * |
| 344 | * /api/v1.0/graphs/{zone}?dataType=links: |
| 345 | * get: |
| 346 | * # Operation-specific security: |
| 347 | * security: |
| 348 | * - APIKeyHeader: [] |
| 349 | * description: Returns the d3.js links for the provided zone. This is just one part of making a complete graph. |
| 350 | * tags: [Graphs - Fetch zone links] |
| 351 | * produces: |
| 352 | * - application/json |
| 353 | * parameters: |
| 354 | * - name: zone |
| 355 | * type: string |
| 356 | * required: true |
| 357 | * description: The zone ("example.org", "example.com", etc.) to fetch. |
| 358 | * in: path |
| 359 | * - name: dataType |
| 360 | * type: string |
| 361 | * required: true |
| 362 | * description: Set to "links" for this type of query. |
| 363 | * in: query |
| 364 | * responses: |
| 365 | * 200: |
| 366 | * description: Returns the links for the relevant zone. |
| 367 | * type: object |
| 368 | * schema: |
| 369 | * $ref: '#/definitions/GraphLinks' |
| 370 | * 400: |
| 371 | * description: Bad request parameters. |
| 372 | * schema: |
| 373 | * $ref: '#/definitions/BadInputError' |
| 374 | * 404: |
| 375 | * description: Bad request parameters. |
| 376 | * schema: |
| 377 | * $ref: '#/definitions/ResultsNotFound' |
| 378 | * 500: |
| 379 | * description: Server error. |
| 380 | * schema: |
| 381 | * $ref: '#/definitions/ServerError' |
no test coverage detected