* clears authentications when logout is clicked * tests the headers sent in the network request * adds test for multiple api keys * refactors tests to extract common uses * correct test message description Co-authored-by: kyle shockey <kyleshockey@gmail.com>
48 lines
906 B
YAML
48 lines
906 B
YAML
openapi: 3.0.0
|
|
info:
|
|
title: Demo API
|
|
description: First test
|
|
termsOfService: 'http://demo.io/terms-of-service/'
|
|
contact:
|
|
name: Demo Support
|
|
email: support@demo.io
|
|
version: 1.0.0
|
|
|
|
paths:
|
|
/4641_1:
|
|
get:
|
|
summary: Returns a 200
|
|
security:
|
|
- api_key_1: []
|
|
responses:
|
|
'200':
|
|
description: A 200
|
|
content:
|
|
application/text:
|
|
schema:
|
|
type: string
|
|
/4641_2:
|
|
get:
|
|
summary: Returns a 200
|
|
security:
|
|
- api_key_1: []
|
|
- api_key_2: []
|
|
responses:
|
|
'200':
|
|
description: A 200
|
|
content:
|
|
application/text:
|
|
schema:
|
|
type: string
|
|
|
|
components:
|
|
securitySchemes:
|
|
api_key_1:
|
|
type: apiKey
|
|
name: api_key_1
|
|
in: header
|
|
api_key_2:
|
|
type: apiKey
|
|
name: api_key_2
|
|
in: header
|