-
Notifications
You must be signed in to change notification settings - Fork 16
/
redantai.pythonanywhere.com.yaml
38 lines (38 loc) · 1.24 KB
/
redantai.pythonanywhere.com.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
openapi: 3.0.2
info:
title: WeatherWhiz
description: Get weather information for a given location and time option.
version: 1.0.0
servers:
- url: https://redantai.pythonanywhere.com/
paths:
/weather/:
get:
operationId: getWeatherByLocation
summary: Get weather information for a given location and time option
parameters:
- in: query
name: location
schema:
type: string
required: true
description: The location for which to get the weather information
- in: query
name: time
schema:
type: string
required: true
description: The time option for the weather forecast ('current', 'minutely', 'hourly', 'daily')
responses:
'200':
description: A JSON object containing weather information for the specified location and time option
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
error:
type: string
example: "Invalid input. Please provide a valid location and time option."