From dad4cab7dead7d2e9962ff1d1c4940d0c1777473 Mon Sep 17 00:00:00 2001 From: marcsello Date: Sun, 19 Apr 2020 22:57:27 +0200 Subject: [PATCH] Updated stuff --- classification.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++++ extractor.yaml | 55 ------------------------------------------- 2 files changed, 58 insertions(+), 55 deletions(-) create mode 100644 classification.yml delete mode 100644 extractor.yaml diff --git a/classification.yml b/classification.yml new file mode 100644 index 0000000..d4e179e --- /dev/null +++ b/classification.yml @@ -0,0 +1,58 @@ +swagger: "2.0" +info: + description: "This is the classification interface of the Birbnetes system." + version: "1.0.0" + title: "Classification Service" + contact: + email: "punkosdmarcell@rocketmail.com" + license: + name: "Apache 2.0" + url: "http://www.apache.org/licenses/LICENSE-2.0.html" +host: "dev.k8s.tcloud.enginner" +basePath: "/api/classification/v1" +tags: +- name: "classification" + description: "Classification Service interaction" +schemes: +- "https" +- "http" +paths: + /classify: + post: + tags: + - "classification" + summary: "Start classifying sample" + description: "This endpoint recieves the features extracted by the feature extractor" + operationId: "classify" + consumes: + - "application/json" + produces: + - "application/json" + parameters: + - name: "modelId" + in: "body" + schema: + type: "object" + properties: + tag: + type: "string" + features: + type: "array" + items: + type: "number" + model: + type: "string" + responses: + 200: + description: "Classification started" + schema: + $ref: "#/definitions/ApiResponse" + +definitions: + ApiResponse: + type: "object" + properties: + status: + type: "string" + message: + type: "string" diff --git a/extractor.yaml b/extractor.yaml deleted file mode 100644 index 55d107c..0000000 --- a/extractor.yaml +++ /dev/null @@ -1,55 +0,0 @@ -swagger: "2.0" -info: - description: "This is the feature extraction interface of the Birbnetes system." - version: "1.0.5" - title: "Extractor Service" - contact: - email: "tormakristof@tormakristof.eu" - license: - name: "Apache 2.0" - url: "http://www.apache.org/licenses/LICENSE-2.0.html" -host: "dev.k8s.tcloud.enginner" -basePath: "/api/extractor/v1" -tags: -- name: "extractor" - description: "Extractor Service interaction" -schemes: -- "https" -- "http" -paths: - /audo: - post: - tags: - - "extractor" - summary: "uploads a sample into the system" - description: "" - operationId: "uploadFile" - consumes: - - "multipart/form-data" - produces: - - "application/json" - parameters: - - name: "tag" - in: "formData" - description: "Tag of sound file" - required: true - type: "string" - - name: "file" - in: "formData" - description: "Wave file to upload" - required: true - type: "file" - responses: - 200: - description: "successful operation" - schema: - $ref: "#/definitions/ApiResponse" - -definitions: - ApiResponse: - type: "object" - properties: - status: - type: "string" - message: - type: "string" \ No newline at end of file