Move application service swagger out of c-s dir

This commit is contained in:
Daniel Wagner-Hall 2015-12-04 17:34:48 +00:00
parent 8c32627751
commit 614ee9ea1b
2 changed files with 15 additions and 16 deletions

View file

@ -198,4 +198,3 @@ paths:
} }
schema: schema:
type: object type: object

View file

@ -17,7 +17,7 @@ import subprocess
import urllib import urllib
import yaml import yaml
HTTP_APIS = "../api/client-server" HTTP_APIS = ("../api/application-service", "../api/client-server",)
EVENT_EXAMPLES = "../event-schemas/examples" EVENT_EXAMPLES = "../event-schemas/examples"
EVENT_SCHEMA = "../event-schemas/schema" EVENT_SCHEMA = "../event-schemas/schema"
CORE_EVENT_SCHEMA = "../event-schemas/schema/core-event-schema" CORE_EVENT_SCHEMA = "../event-schemas/schema/core-event-schema"
@ -549,7 +549,7 @@ class MatrixUnits(Units):
def load_swagger_apis(self): def load_swagger_apis(self):
apis = {} apis = {}
path = HTTP_APIS for path in HTTP_APIS:
for filename in os.listdir(path): for filename in os.listdir(path):
if not filename.endswith(".yaml"): if not filename.endswith(".yaml"):
continue continue