-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathnasa-media-prod.vercel.app.yaml
58 lines (58 loc) · 1.75 KB
/
nasa-media-prod.vercel.app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
openapi: 3.0.3
info:
title: NASA Media API
description: Retrieve images and videos from NASA's vast media library.
version: 1.0.0
servers:
- url: 'https://nasa-media-prod.vercel.app/' # Base URL of the server
paths:
/api/proxy/searchAssets: # Endpoint path for searching media assets
get:
summary: Search for media assets
operationId: searchMedia
parameters:
- name: q
in: query
description: Free text search terms to compare to all indexed metadata.
required: false
schema:
type: string
responses:
'200':
description: Search results returned.
content:
application/json:
schema:
type: object
properties:
collection:
type: object
description: The collection of search results.
'400':
description: Bad request, invalid input.
/api/proxy/getAsset: # Endpoint path for retrieving a media asset's manifest
get:
summary: Retrieve a media asset's manifest
operationId: getAsset
parameters:
- name: nasa_id
in: query
description: The media asset's NASA ID.
required: true
schema:
type: string
responses:
'200':
description: Media asset manifest returned.
content:
application/json:
schema:
type: object
properties:
collection:
type: object
description: The media asset's manifest.
'400':
description: Bad request, invalid input.
'404':
description: Media asset not found.