Commit c21dc052 authored by Daniel Perez's avatar Daniel Perez
Browse files

Moving swagger document to proper folder

parent e008f314
Pipeline #33819 passed with stages
in 5 minutes and 52 seconds
......@@ -24,9 +24,15 @@ info:
title: "Seismic Store Service"
version: "2.0.0"
description: "Seismic Domain Data Management APIs to store and manage seismic datasets ."
license:
name: "Apache 2.0"
url: "https://www.apache.org/licenses/LICENSE-2.0.html"
host: "api.evq.csp.slb.com"
basePath: "/seistore-svc/api/v3"
securityDefinitions:
authentication:
type: "apiKey"
name: "Authorization"
in: "header"
consumes:
- application/json
......
......@@ -16,7 +16,7 @@
"test-coverage": "env UTEST=true nyc mocha -r ts-node/register --reporter mocha-junit-reporter tests/utest/test.ts",
"test-automation": "npm run clean && npm install && npm run build && npm run test-coverage",
"test-e2e-parallel": "node ./tests/e2e/parallel/run_e2e_tests_parallel.js",
"copyStaticFiles": "copyfiles --error --up 1 ./src/swagger/swagger.yaml ./dist/",
"copyStaticFiles": "copyfiles --error --up 1 ./docs/api/seismic_dms_seistore_openapi.yaml ./dist/docs",
"postbuild": "npm run copyStaticFiles"
},
"nyc": {
......
......@@ -70,7 +70,7 @@ export class Server {
}
constructor() {
const swaggerDocument = YAML.load('./dist/swagger/swagger.yaml');
const swaggerDocument = YAML.load('./dist/docs/api/seismic_dms_seistore_openapi.yaml');
this.app = express();
this.app.use(bodyparser.urlencoded({ extended: false }));
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment