Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refac: split into two definitions
  • Loading branch information
aviskase committed Mar 23, 2021
1 parent 7243e20 commit 18f1bdb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
10 changes: 1 addition & 9 deletions openapi/openapi.yaml → openapi/addresses.yaml
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
version: 1.0.0
title: Stargate Network
title: Stargate Network - Addresses
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
Expand All @@ -14,19 +14,11 @@ tags:
in the Stargate Network. They are composed of a series of glyphs, at least seven depending on the
intended destination, which when entered in the correct order allow the Stargate to establish a wormhole
with another gate at the destination ([source](https://stargate.fandom.com/wiki/Stargate_address)).
- name: Stargates
description: >
A Stargate is a device which create wormholes, allowing for near-instantaneous transportation between
two distant points in space. ([source](https://stargate.fandom.com/wiki/Stargate)).
paths:
/addresses:
$ref: paths/addresses.yaml
/addresses/{id}:
$ref: paths/addresses@{id}.yaml
/stargates:
$ref: paths/stargates.yaml
/stargates/{id}:
$ref: paths/stargates@{id}.yaml
components:
securitySchemes:
api_key:
Expand Down
23 changes: 23 additions & 0 deletions openapi/gates.yaml
@@ -0,0 +1,23 @@
openapi: 3.0.3
info:
version: 1.0.0
title: Stargate Network - Gates
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
description:
$ref: description.md
tags:
- name: Stargates
description: >
A Stargate is a device which create wormholes, allowing for near-instantaneous transportation between
two distant points in space. ([source](https://stargate.fandom.com/wiki/Stargate)).
paths:
/stargates:
$ref: paths/stargates.yaml
/stargates/{id}:
$ref: paths/stargates@{id}.yaml
components:
securitySchemes:
api_key:
$ref: components/securitySchemes/api_key.yaml

0 comments on commit 18f1bdb

Please sign in to comment.