Remove Swagger specification

This was only ever a spike into what it might look like to document
Notify’s API with Swagger (see
7c3d25a87a).
It’s no longer updated, and only talks about version 1 of the public
API.

Keeping it around now is just a liability, and gives us additional Pyup
upgrades to deal with.
This commit is contained in:
Chris Hill-Scott
2017-08-25 16:20:32 +01:00
parent 8642ee9f53
commit d0be79cc4c
6 changed files with 0 additions and 352 deletions

View File

@@ -1,18 +0,0 @@
import flex
import pytest
from flask import json
from tests import create_authorization_header
def test_spec_returns_valid_json(notify_api, sample_notification):
with notify_api.test_request_context():
with notify_api.test_client() as client:
auth_header = create_authorization_header(service_id=sample_notification.service_id)
response = client.get('/spec', headers=[auth_header])
# Check that its a valid Swagger schema
flex.load(
json.loads(response.get_data(as_text=True))
)