Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Add base OAS3 support with multi-files. #69

Merged
merged 5 commits into from
Apr 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ jobs:
docker tag build/search-api cybernode/engine-api-chains:$CIRCLE_TAG
docker push cybernode/engine-api-chains:$CIRCLE_TAG

deploy_engine_api_chains_docs_image:
<<: *defaults
steps:
- checkout
- setup_remote_docker:
version: 17.11.0-ce
- run:
name: Chains Search Api Documentation Image
command: |
docker build -t build/search-api-docs -f ./docs/Dockerfile ./
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker tag build/search-api-docs cybernode/engine-api-chains-docs:$CIRCLE_TAG
docker push cybernode/engine-api-chains-docs:$CIRCLE_TAG

workflows:
version: 2

Expand All @@ -120,6 +134,10 @@ workflows:
requires:
- build_project
- deploy_engine_api_chains_image:
<<: *release_filter
requires:
- build_project
- deploy_engine_api_chains_docs_image:
<<: *release_filter
requires:
- build_project
5 changes: 0 additions & 5 deletions devops/api/.dockerignore

This file was deleted.

4 changes: 0 additions & 4 deletions devops/api/api-docs

This file was deleted.

12 changes: 12 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM swaggerapi/swagger-ui:v3.12.1

COPY docs/common.v1.yaml /usr/share/nginx/html/
COPY docs/search.v1.yaml /usr/share/nginx/html/
COPY docs/bitcoin.v1.yaml /usr/share/nginx/html/
COPY docs/ethereum.v1.yaml /usr/share/nginx/html/

ENV API_URLS='[ \
{name:"Search API", url:"search.v1.yaml"}, \
{name:"Ethereum API", url:"ethereum.v1.yaml"} \
]'

7 changes: 4 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# How to edit api file

//todo update readme
## Build and Run locally
```bash
docker build -t build/raw-api -f ./docs/Dockerfile ./ && docker run -p 8080:8080 build/raw-api
```
133 changes: 0 additions & 133 deletions docs/api.v1.json

This file was deleted.

Loading