-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/init-cleanup' into develop
- Loading branch information
Showing
45 changed files
with
413 additions
and
68 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 @@ | ||
{{ autoChannelIndexer() }} |
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,4 @@ | ||
publish: | ||
message: | ||
payload: | ||
$ref: ../../components/schemas/ms-auth/cacheConnection.yml |
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,6 @@ | ||
publish: | ||
operationId: {{uniqueOpId('Publish')}} | ||
message: | ||
contentType: application/json | ||
payload: | ||
$ref: ../../components/schemas/ms-auth/cacheUser.yml.njk |
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 @@ | ||
{{ autoComponentIndexer() }} |
16 changes: 16 additions & 0 deletions
16
init-files/asyncapi/components/schemas/ms-auth/cacheConnection.yml
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,16 @@ | ||
type: object | ||
properties: | ||
username: | ||
type: string | ||
connections: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
updated: | ||
type: string | ||
format: date | ||
state: | ||
type: string | ||
username: | ||
type: string |
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,6 @@ | ||
type: object | ||
properties: | ||
username: | ||
type: string | ||
email: | ||
type: string |
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,33 @@ | ||
asyncapi: 2.0.0 | ||
info: | ||
title: "{{ packageJson('name') }}" | ||
version: 1.0.1 | ||
description: Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks. | ||
license: | ||
name: Apache 2.0 | ||
url: https://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
defaultContentType: application/json | ||
|
||
channels: | ||
$ref: ./channels/index.yml | ||
|
||
components: | ||
schemas: | ||
$ref: ./components/schemas/index.yml | ||
|
||
{{ | ||
inject([{ | ||
toAllOperations: { | ||
content: { | ||
description: '{{ autoSummary() }}', | ||
publish: { | ||
operationId: "{{ uniqueOpId({firstSegmentSplit: '_'}) }}", | ||
message: { | ||
contentType: 'application/json' | ||
} | ||
} | ||
} | ||
} | ||
}]) | ||
}} |
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,8 @@ | ||
type: object | ||
properties: | ||
totalResultCount: | ||
type: number | ||
offset: | ||
type: number | ||
limit: | ||
type: number |
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,4 @@ | ||
type: object | ||
properties: | ||
health: | ||
type: string |
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 @@ | ||
{{ autoComponentIndexer({dropBaseName: true}) }} |
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,6 @@ | ||
type: object | ||
required: | ||
- name | ||
properties: | ||
name: | ||
type: string |
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 @@ | ||
{{ mixin("../../mixins/pagination.yml", "../generic/searchMeta.yml.njk", "./model.yml.njk", "--skip-auto-indent") }} |
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,60 @@ | ||
swagger: "2.0" | ||
info: | ||
version: 1.0.1 | ||
title: "{{ packageJson('name') }}" | ||
description: A sample API | ||
contact: | ||
name: Swagger API Team | ||
email: 'john@boats.io' | ||
url: https://github.com/johndcarmichael/boats/ | ||
license: | ||
name: Apache 2.0 | ||
url: https://www.apache.org/licenses/LICENSE-2.0.html | ||
|
||
schemes: | ||
- https | ||
- http | ||
host: api.example.com | ||
|
||
securityDefinitions: | ||
jwtToken: | ||
type: apiKey | ||
in: header | ||
name: authorization | ||
apiKey: | ||
type: apiKey | ||
in: header | ||
name: x-api-key | ||
|
||
paths: | ||
$ref: paths/index.yml | ||
parameters: | ||
$ref: parameters/index.yml | ||
definitions: | ||
$ref: definitions/index.yml | ||
|
||
{{ | ||
inject([{ | ||
toAllOperations: { | ||
excludePaths: ['/health'], | ||
content: { | ||
security: [{ | ||
jwtToken: [] | ||
}] | ||
} | ||
} | ||
}, { | ||
toAllOperations: { | ||
content: { | ||
tags: [ '{{ autoTag() }}' ], | ||
summary: '{{ autoSummary() }}', | ||
operationId: '{{ uniqueOpId() }}', | ||
responses: { | ||
'200': { | ||
description: 'OK' | ||
} | ||
} | ||
} | ||
} | ||
}]) | ||
}} |
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,8 @@ | ||
type: object | ||
properties: | ||
meta: | ||
$ref: {{ var1 }} | ||
data: | ||
type: array | ||
items: | ||
$ref: {{ var2 }} |
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 @@ | ||
{{ autoComponentIndexer() }} |
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,5 @@ | ||
in: path | ||
name: id | ||
type: string | ||
required: true | ||
description: ID of object |
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,5 @@ | ||
in: query | ||
name: offset | ||
required: false | ||
type: integer | ||
description: The number of items to skip before starting to collect the result set. |
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,4 @@ | ||
responses: | ||
'200': | ||
schema: | ||
$ref: ../../definitions/health/model.yml |
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 @@ | ||
{{ autoPathIndexer() }} |
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,6 @@ | ||
parameters: | ||
- $ref: ../../parameters/queryOffset.yml | ||
responses: | ||
'200': | ||
schema: | ||
$ref: ../../definitions/user/models.yml |
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,6 @@ | ||
parameters: | ||
- $ref: ../../../parameters/pathId.yml | ||
responses: | ||
'200': | ||
schema: | ||
$ref: ../../../definitions/user/model.yml |
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 @@ | ||
{{ autoComponentIndexer() }} |
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,6 @@ | ||
in: path | ||
name: id | ||
schema: | ||
type: string | ||
required: true | ||
description: ID of object to fetch |
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,7 @@ | ||
in: query | ||
name: offset | ||
required: false | ||
schema: | ||
type: integer | ||
minimum: 0 | ||
description: The number of items to skip before starting to collect the result set |
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,8 @@ | ||
type: object | ||
properties: | ||
totalResultCount: | ||
type: number | ||
offset: | ||
type: number | ||
limit: | ||
type: number |
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,4 @@ | ||
type: object | ||
properties: | ||
http: | ||
type: boolean |
Empty file.
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,6 @@ | ||
type: object | ||
required: | ||
- name | ||
properties: | ||
name: | ||
type: string |
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 @@ | ||
{{ mixin("../../../mixins/pagination.yml", "../generic/searchMeta.yml.njk", "./model.yml.njk", "--skip-auto-indent") }} |
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 @@ | ||
{{ autoComponentIndexer() }} |
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,3 @@ | ||
type: apiKey | ||
in: header | ||
name: Authorization |
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,80 @@ | ||
openapi: "3.0.0" | ||
info: | ||
version: "{{ packageJson('version') }}" | ||
title: "{{ packageJson('name') }}" | ||
|
||
paths: | ||
$ref: paths/index.yml | ||
|
||
components: | ||
parameters: | ||
$ref: components/parameters/index.yml | ||
schemas: | ||
$ref: components/schemas/index.yml | ||
securitySchemes: | ||
$ref: components/security/index.yml | ||
|
||
{{ | ||
inject([ | ||
{ | ||
toAllOperations: { | ||
content: { | ||
tags: [ '{{ autoTag() }}' ], | ||
summary: '{{ autoSummary() }}', | ||
operationId: '{{ uniqueOpId() }}', | ||
responses: { | ||
'200': { | ||
description: 'OK' | ||
}, | ||
'400': { | ||
description: 'Bad Request' | ||
}, | ||
'401': { | ||
description: 'Unauthorized' | ||
}, | ||
'403': { | ||
description: 'Forbidden' | ||
}, | ||
'406': { | ||
description: 'Not Acceptable' | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
toAllOperations: { | ||
includeOnlyPaths: [ | ||
'/admin/**' | ||
], | ||
content: { | ||
'x-permission': '{{ routePermission() }}' | ||
} | ||
} | ||
}, | ||
{ | ||
toAllOperations: { | ||
excludePaths: [ | ||
'/health' | ||
], | ||
content: { | ||
security: [{ | ||
jwtToken: [] | ||
}] | ||
} | ||
} | ||
}, | ||
{ | ||
toAllOperations: { | ||
includeMethods: ['post', 'patch'], | ||
content: { | ||
responses: { | ||
'422': { | ||
description: 'Not Acceptable' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
]) | ||
}} |
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,8 @@ | ||
type: object | ||
properties: | ||
meta: | ||
$ref: {{ var1 }} | ||
data: | ||
type: array | ||
items: | ||
$ref: {{ var2 }} |
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,6 @@ | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas/health/model.yml |
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 @@ | ||
{{ autoPathIndexer() }} |
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,8 @@ | ||
parameters: | ||
- $ref: ../../components/parameters/queryOffset.yml | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../components/schemas/user/models.yml |
Oops, something went wrong.