-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/atlanticwave-sdx/oxpo-api-w…
…rapper into main
- Loading branch information
Showing
5 changed files
with
293 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
types { | ||
text/plain yaml; | ||
text/plain yml; | ||
} | ||
|
||
gzip on; | ||
gzip_static on; | ||
gzip_disable "msie6"; | ||
|
||
gzip_vary on; | ||
gzip_types text/plain text/css application/javascript; | ||
|
||
map $request_method $access_control_max_age { | ||
OPTIONS 1728000; # 20 days | ||
} | ||
server_tokens off; # Hide Nginx version | ||
|
||
server { | ||
listen $PORT; | ||
server_name localhost; | ||
index index.html index.htm; | ||
|
||
location $BASE_URL { | ||
absolute_redirect off; | ||
alias /usr/share/nginx/html/; | ||
expires 1d; | ||
|
||
location ~ swagger-initializer.js { | ||
expires -1; | ||
include templates/cors.conf; | ||
} | ||
|
||
location ~* \.(?:json|yml|yaml)$ { | ||
#SWAGGER_ROOT | ||
expires -1; | ||
|
||
include templates/cors.conf; | ||
} | ||
|
||
include templates/cors.conf; | ||
include templates/embedding.conf; | ||
} | ||
|
||
location $DEFAULT_TOPOLOGY { | ||
proxy_pass $DEFAULT_URL$TOPOLOGY_PATH; | ||
} | ||
|
||
location $TOPOLOGY_1 { | ||
proxy_pass $URL_1$TOPOLOGY_PATH; | ||
} | ||
|
||
location $TOPOLOGY_2 { | ||
proxy_pass $URL_2$TOPOLOGY_PATH; | ||
} | ||
|
||
location $TOPOLOGY_3 { | ||
proxy_pass $URL_3$TOPOLOGY_PATH; | ||
} | ||
|
||
location $DEFAULT_CONNECTION { | ||
proxy_pass $DEFAULT_URL$CONNECTION_PATH; | ||
} | ||
|
||
location $CONNECTION_1 { | ||
proxy_pass $URL_1$CONNECTION_PATH; | ||
} | ||
|
||
location $CONNECTION_2 { | ||
proxy_pass $URL_2$CONNECTION_PATH; | ||
} | ||
|
||
location $CONNECTION_3 { | ||
proxy_pass $URL_3$CONNECTION_PATH; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "Oxpo Api Wrapper", | ||
"description": "The wrapper abstracts the complexities of direct API calls and offers a consistent method to interact with different OXPO services", | ||
"version": "1.0.0", | ||
"contact": { | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "http://67.17.206.221" | ||
} | ||
], | ||
"tags": [ | ||
{ | ||
"name": "topology", | ||
"description": "Everything about your domain topology", | ||
"externalDocs": { | ||
"description": "Find out more", | ||
"url": "https://www.atlanticwave-sdx.net" | ||
} | ||
}, | ||
{ | ||
"name": "node", | ||
"description": "everything about a node in your domain" | ||
}, | ||
{ | ||
"name": "link", | ||
"description": "everything about a link in your domain" | ||
}, | ||
{ | ||
"name": "user", | ||
"description": "Operations about user", | ||
"externalDocs": { | ||
"description": "Find out more about our store", | ||
"url": "https://www.atlanticwave-sdx.net" | ||
} | ||
} | ||
], | ||
"paths": { | ||
"/topology": { | ||
"get": { | ||
"tags": [ | ||
"topology" | ||
], | ||
"summary": "Get SDX Topology", | ||
"description": "Get SDX topology", | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"content": { | ||
"application/json": {} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/topology/1": { | ||
"get": { | ||
"tags": [ | ||
"topology" | ||
], | ||
"summary": "Get Ampath SDX Topology", | ||
"description": "Get Ampath SDX topology", | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"content": { | ||
"application/json": {} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/topology/2": { | ||
"get": { | ||
"tags": [ | ||
"topology" | ||
], | ||
"summary": "Get SAX SDX Topology", | ||
"description": "Get SAX SDX topology", | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"content": { | ||
"application/json": {} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/topology/3": { | ||
"get": { | ||
"tags": [ | ||
"topology" | ||
], | ||
"summary": "Get Tenet SDX Topology", | ||
"description": "Get Tenet SDX topology", | ||
"responses": { | ||
"200": { | ||
"description": "Successful response", | ||
"content": { | ||
"application/json": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.