-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from RabotaRu/mustache
Mustache
- Loading branch information
Showing
33 changed files
with
1,110 additions
and
225 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
contexts: | ||
#*********************************************************** | ||
# Контекст-пример сервиса заказов | ||
#*********************************************************** | ||
dochub.example: | ||
title: Контектс-пример | ||
components: | ||
- dochub.examples.orders | ||
- dochub.examples.payment |
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,65 @@ | ||
components: | ||
#*********************************************************** | ||
# Компонент-пример сервиса заказов | ||
#*********************************************************** | ||
dochub.examples.orders: | ||
title: Сервис управления заказами | ||
entity: component | ||
technologies: | ||
- PHP | ||
asyncapi: # Кастомное поле, созданное для примера сборки контрактов из архитектуры через шаблоны | ||
# см. https://dochub.info/docs/dochub.templates | ||
servers: | ||
orders: | ||
url: mqtt://order.host.net | ||
protocol: mqtt | ||
description: Orders gateway | ||
channels: | ||
order/create: | ||
subscribe: | ||
operationId: emitOrderCreate | ||
message: | ||
$ref: "#/components/messages/OrderCreate" | ||
components: | ||
messages: | ||
OrderCreate: | ||
name: orderCreate | ||
title: Создание заказа | ||
contentType: application/json | ||
payload: | ||
$ref: "#/components/schemas/order" | ||
schemas: | ||
order: | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
format: uuid | ||
customer: | ||
type: string | ||
format: uuid | ||
curr: | ||
type: string | ||
description: "Валюта" | ||
value: | ||
type: number | ||
description: "Сумма" | ||
createdAt: | ||
type: string | ||
format: date-time | ||
description: "Момент создания" | ||
openapi: # Кастомное поле, созданное для примера сборки контрактов из архитектуры через шаблоны | ||
# см. https://dochub.info/docs/dochub.templates | ||
paths: | ||
/orders: | ||
get: | ||
summary: Получение списка заказов | ||
responses: | ||
'200': # status code | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
format: uid |
65 changes: 65 additions & 0 deletions
65
public/documentation/arch/components/examples/payment.yaml
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,65 @@ | ||
components: | ||
#*********************************************************** | ||
# Компонент-пример сервиса оплаты | ||
#*********************************************************** | ||
dochub.examples.payment: | ||
title: Сервис оплаты | ||
entity: component | ||
expert: R.Piontik | ||
technologies: | ||
- SberPay | ||
- Go | ||
asyncapi: # Кастомное поле, созданное для примера сборки контрактов из архитектуры через шаблоны | ||
# см. https://dochub.info/docs/dochub.templates | ||
servers: | ||
payments: | ||
url: mqtt://pay.host.net | ||
protocol: mqtt | ||
description: Payment gateway | ||
channels: | ||
pay/payment: | ||
subscribe: | ||
operationId: emitPayment | ||
message: | ||
$ref: "#/components/messages/Payment" | ||
components: | ||
messages: | ||
Payment: | ||
name: payment | ||
title: Оплата | ||
summary: Сообщение по оплате | ||
contentType: application/json | ||
payload: | ||
$ref: "#/components/schemas/payment" | ||
schemas: | ||
payment: | ||
type: object | ||
properties: | ||
account: | ||
type: string | ||
description: "Номер счета" | ||
curr: | ||
type: string | ||
description: "Валюта" | ||
value: | ||
type: number | ||
description: "Сумма" | ||
createdAt: | ||
type: string | ||
format: date-time | ||
description: "Момент создания" | ||
openapi: # Кастомное поле, созданное для примера сборки контрактов из архитектуры через шаблоны | ||
# см. https://dochub.info/docs/dochub.templates | ||
paths: | ||
/payments: | ||
get: | ||
summary: Получение списка счетов | ||
responses: | ||
'200': # status code | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
type: string | ||
format: uid |
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,10 @@ | ||
#*********************************************************** | ||
# Компонет-примеры | ||
#*********************************************************** | ||
components: | ||
dochub.examples: | ||
title: Примеры | ||
imports: | ||
- order.yaml | ||
- payment.yaml | ||
- context.yaml |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ imports: | |
- gitlab.yaml | ||
- browser.yaml | ||
- web.yaml | ||
- examples/root.yaml |
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
11 changes: 11 additions & 0 deletions
11
public/documentation/docs/manual/docs/examples/asyncapi_template.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,11 @@ | ||
{ | ||
"asyncapi": "2.4.0", | ||
"info": { | ||
"title": "Пример генерации асинхронных контрактов", | ||
"version": "1.0.0", | ||
"description": "Информация о контрактах собирается по всей архитектуре" | ||
} | ||
{{#content}} | ||
,"{{field}}":{{&body}} | ||
{{/content}} | ||
} |
16 changes: 16 additions & 0 deletions
16
public/documentation/docs/manual/docs/examples/openapi_template.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,16 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "Пример шаблона OpenAPI", | ||
"description": "Контракты собираются из нескольких компонентов архитетуры" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "http://host.net", | ||
"description": "Сервис заказов" | ||
} | ||
] | ||
{{#content}} | ||
,"{{field}}":{{&body}} | ||
{{/content}} | ||
} |
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 @@ | ||
@startuml | ||
title Сущности использованные при описании архитектуры | ||
{{#entities}} | ||
{{{.}}} {{{.}}} as {{{.}}} | ||
{{/entities}} | ||
@enduml |
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
Oops, something went wrong.