v3.0
Covid Service

Servers

Choose a server to use:

/api/v1/
https://covid-qa.adara.com/api/v1/
https://covid-prod.adara.com/api/v1/
https://virtserver.swaggerhub.com/adara/covid-service/1.0.0

SwaggerHub API Auto Mocking

get news articles

GET /news

Auth
Query String
user_code stringrequired
trip_id stringoptional
Example Request
Copy
Responses
200
object object
active booleanoptional
response array[object]optional
title stringoptional
link stringoptional
published stringoptional
description stringoptional
source stringoptional
Example Response
200 User news
Copy

get user score

GET /scores

Auth
Query String
user_code stringrequired
trip_id stringrequired
Example Request
Copy
Responses
200 425
object object
active booleanoptional
response objectoptional
raw_score numberoptional
score numberoptional
display_score stringoptional
description stringoptional
percentile numberoptional
Example Response
200 User score available
425 User score not available yet
Copy

get list of locations

GET /locations

Auth
Query String
location_type string

Enum: airport,city

required
s stringrequired
Example Request
Copy
Responses
200
object object
active booleanoptional
response array[object]optional
id stringoptional
name stringoptional
state stringoptional
city stringoptional
county stringoptional
country stringoptional
Example Response
200 List of locations
Copy

add user

POST /signup

Auth
Request Body
object objectrequired
email string

pattern: ^([\D-]+(\w)*)+((\.(\w)+)?)+@(\D)+(\w)*((\.(\D)+(\w)*)+)?(\.)[a-z]{2,}$

required
Example Request
Copy
Responses
204 400
No response body
Example Response
204 User Signed up
400 Bad Request
Copy

add user

POST /validate

Auth
Request Body
object objectrequired
email string

pattern: ^([\D-]+(\w)*)+((\.(\w)+)?)+@(\D)+(\w)*((\.(\D)+(\w)*)+)?(\.)[a-z]{2,}$

required
passcode stringrequired
Example Request
Copy
Responses
200 403
object object
active booleanoptional
response objectoptional
user_code stringoptional
Example Response
200 User Signed up
403 Bad Request
Copy

support user optout

POST /optout

Auth
Request Body
object object
email string

pattern: ^([\D-]+(\w)*)+((\.(\w)+)?)+@(\D)+(\w)*((\.(\D)+(\w)*)+)?(\.)[a-z]{2,}$

optional
Example Request
Copy
Responses
204
No response body
Example Response
204 User opted out
Copy

get user trips

GET /trips

Auth
Query String
user_code stringrequired
trip_id stringoptional
Example Request
Copy
Responses
200
object object
active booleanoptional
response array[object]optional
start string

pattern: ^\d\d\d\d-\d\d-\d\d$

required
end string

pattern: ^\d\d\d\d-\d\d-\d\d$

required
rideshare booleanrequired
purpose stringrequired
airports array[object]required
city stringoptional
county stringoptional
state stringoptional
country stringoptional
code stringrequired
name stringoptional
prospective booleanoptional
home objectoptional
city stringrequired
county stringoptional
state stringoptional
country stringrequired
id stringrequired
cities array[object]required
city stringrequired
county stringoptional
state stringoptional
country stringrequired
id stringrequired
Example Response
200 user trips
Copy

send trip list and get user scores

POST /trips

Auth
Request Body
object objectrequired
user_code stringrequired
trips array[object]required
start string

pattern: ^\d\d\d\d-\d\d-\d\d$

required
end string

pattern: ^\d\d\d\d-\d\d-\d\d$

required
rideshare booleanrequired
purpose stringrequired
airports array[object]required
city stringoptional
county stringoptional
state stringoptional
country stringoptional
code stringrequired
name stringoptional
prospective booleanoptional
home objectoptional
city stringrequired
county stringoptional
state stringoptional
country stringrequired
id stringrequired
cities array[object]required
city stringrequired
county stringoptional
state stringoptional
country stringrequired
id stringrequired
Example Request
Copy
Responses
200
object object
active booleanoptional
response arrayoptional
start string

pattern: ^\d\d\d\d-\d\d-\d\d$

required
end string

pattern: ^\d\d\d\d-\d\d-\d\d$

required
rideshare booleanrequired
purpose stringrequired
airports array[object]required
city stringoptional
county stringoptional
state stringoptional
country stringoptional
code stringrequired
name stringoptional
prospective booleanoptional
home objectoptional
city stringrequired
county stringoptional
state stringoptional
country stringrequired
id stringrequired
cities array[object]required
city stringrequired
county stringoptional
state stringoptional
country stringrequired
id stringrequired
id stringrequired
Example Response
200 Trips added to profile
Copy