Skip to content

Commit

Permalink
APIs.guru API definition now passing dredd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Nov 13, 2017
1 parent be6c01b commit 7d4c347
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dredd.yml
Expand Up @@ -31,5 +31,5 @@ hooks-worker-term-retry: 500
hooks-worker-handler-host: 127.0.0.1
hooks-worker-handler-port: 61321
config: ./dredd.yml
blueprint: APIs/apis.guru/2.0/swagger.yaml
endpoint: 'https://api.apis.guru'
blueprint: resources/apis_guru_swagger.yaml
endpoint: 'https://api.apis.guru/v2'
8 changes: 5 additions & 3 deletions resources/apis_guru_swagger.yaml
Expand Up @@ -20,15 +20,14 @@ info:
externalDocs:
url: https://github.com/APIs-guru/openapi-directory/blob/master/API.md
produces:
- application/json; charset=utf8
- application/json; charset=utf-8
- application/json
security: []
tags:
- name: APIs
description: Actions relating to APIs in the collection
paths:
/list.json:
description: Provides a list of all APIs in the directory.
get:
operationId: listAPIs
tags:
Expand All @@ -47,7 +46,6 @@ paths:
schema:
$ref: "#/definitions/APIs"
/metrics.json:
description: Provides basic metrics.
get:
operationId: getMetrics
summary: Get basic metrics
Expand Down Expand Up @@ -164,6 +162,10 @@ definitions:
description: Copy of `info` section from Swagger spec
type: object
minProperties: 1
externalDocs:
description: Copy of `externalDocs` section from Swagger spec
type: object
minProperties: 1
additionalProperties: false
Metrics:
description: List of basic metrics
Expand Down

0 comments on commit 7d4c347

Please sign in to comment.