Skip to content

Commit

Permalink
updated api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
dogversioning committed Oct 15, 2024
1 parent 5ad23a8 commit 5e92e4f
Showing 1 changed file with 65 additions and 68 deletions.
133 changes: 65 additions & 68 deletions docs/dashboard_api.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ servers:
basePath:
default: "/"
paths:
/data_packages:
/metadata:
get:
parameters:
- name: "name"
in: "query"
schema:
type: "string"
security:
- api_key: []
options:
Expand All @@ -35,15 +30,14 @@ paths:
content: {}
security:
- api_key: []
/metadata:
/last-valid:
get:
security:
- api_key: []
options:
summary: "CORS support"
responses:
"200":
description: "Default response for CORS method"
description: "200 response"
headers:
Access-Control-Allow-Origin:
schema:
Expand All @@ -57,15 +51,35 @@ paths:
content: {}
security:
- api_key: []
/aggregates:
/data-packages/{data_package_id}/chart:
get:
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
- name: "column"
in: "query"
required: true
schema:
type: "string"
- name: "filters"
in: "query"
schema:
type: "string"
security:
- api_key: []
options:
summary: "CORS support"
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
responses:
"200":
description: "Default response for CORS method"
description: "200 response"
headers:
Access-Control-Allow-Origin:
schema:
Expand All @@ -79,7 +93,7 @@ paths:
content: {}
security:
- api_key: []
/last_valid:
/aggregates:
get:
security:
- api_key: []
Expand Down Expand Up @@ -317,35 +331,19 @@ paths:
content: {}
security:
- api_key: []
/data_packages/{data_package_id}/chart:
/data-packages:
get:
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
- name: "column"
in: "query"
required: true
schema:
type: "string"
- name: "filters"
- name: "name"
in: "query"
schema:
type: "string"
security:
- api_key: []
options:
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
responses:
"200":
description: "Default response for CORS method"
description: "200 response"
headers:
Access-Control-Allow-Origin:
schema:
Expand All @@ -359,7 +357,7 @@ paths:
content: {}
security:
- api_key: []
/last_valid/{study}/{data_package}/{site}/{version}/{filename}:
/last-valid/{study}/{data_package}/{site}/{version}/{filename}:
get:
parameters:
- name: "filename"
Expand Down Expand Up @@ -390,7 +388,6 @@ paths:
security:
- api_key: []
options:
summary: "CORS support"
parameters:
- name: "filename"
in: "path"
Expand Down Expand Up @@ -419,7 +416,40 @@ paths:
type: "string"
responses:
"200":
description: "Default response for CORS method"
description: "200 response"
headers:
Access-Control-Allow-Origin:
schema:
type: "string"
Access-Control-Allow-Methods:
schema:
type: "string"
Access-Control-Allow-Headers:
schema:
type: "string"
content: {}
security:
- api_key: []
/data-packages/{data_package_id}:
get:
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
security:
- api_key: []
options:
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
responses:
"200":
description: "200 response"
headers:
Access-Control-Allow-Origin:
schema:
Expand Down Expand Up @@ -577,39 +607,6 @@ paths:
content: {}
security:
- api_key: []
/data_packages/{data_package_id}:
get:
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
security:
- api_key: []
options:
parameters:
- name: "data_package_id"
in: "path"
required: true
schema:
type: "string"
responses:
"200":
description: "Default response for CORS method"
headers:
Access-Control-Allow-Origin:
schema:
type: "string"
Access-Control-Allow-Methods:
schema:
type: "string"
Access-Control-Allow-Headers:
schema:
type: "string"
content: {}
security:
- api_key: []
components:
securitySchemes:
api_key:
Expand Down

0 comments on commit 5e92e4f

Please sign in to comment.