rule book front
This commit is contained in:
+176
-104
@@ -6,6 +6,57 @@ servers:
|
||||
- url: http://localhost:8080
|
||||
description: Generated server url
|
||||
paths:
|
||||
/rule-books/{ruleBookId}:
|
||||
get:
|
||||
tags:
|
||||
- rule-book-controller
|
||||
operationId: findRuleBookById
|
||||
parameters:
|
||||
- name: ruleBookId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
"400":
|
||||
description: Bad Request
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
put:
|
||||
tags:
|
||||
- rule-book-controller
|
||||
operationId: updateRuleBook
|
||||
parameters:
|
||||
- name: ruleBookId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/UpdateRuleBookRequest"
|
||||
required: true
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
"400":
|
||||
description: Bad Request
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
/ledgers/main/{ledgerId}:
|
||||
put:
|
||||
tags:
|
||||
@@ -64,6 +115,45 @@ paths:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/CombinedLedgerResponse"
|
||||
/rule-books:
|
||||
get:
|
||||
tags:
|
||||
- rule-book-controller
|
||||
operationId: findAllRuleBooks
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
"400":
|
||||
description: Bad Request
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
post:
|
||||
tags:
|
||||
- rule-book-controller
|
||||
operationId: createRuleBook
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CreateRuleBookRequest"
|
||||
required: true
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
"400":
|
||||
description: Bad Request
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
/process-activities:
|
||||
post:
|
||||
tags:
|
||||
@@ -120,57 +210,6 @@ paths:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/CombinedLedgerResponse"
|
||||
/characters/{characterId}/rule-book:
|
||||
get:
|
||||
tags:
|
||||
- rule-book-controller
|
||||
operationId: findByCharacterId
|
||||
parameters:
|
||||
- name: characterId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
"400":
|
||||
description: Bad Request
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
post:
|
||||
tags:
|
||||
- rule-book-controller
|
||||
operationId: setCharacterRuleBook
|
||||
parameters:
|
||||
- name: characterId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
format: int64
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/SetCharacterRuleBookRequest"
|
||||
required: true
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
"400":
|
||||
description: Bad Request
|
||||
"200":
|
||||
description: OK
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
/activity/fetch/{characterId}:
|
||||
post:
|
||||
tags:
|
||||
@@ -194,7 +233,7 @@ paths:
|
||||
get:
|
||||
tags:
|
||||
- ledger-controller
|
||||
operationId: findAll
|
||||
operationId: findAllLedgers
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
@@ -214,7 +253,7 @@ paths:
|
||||
get:
|
||||
tags:
|
||||
- ledger-controller
|
||||
operationId: findById
|
||||
operationId: findLedgerById
|
||||
parameters:
|
||||
- name: ledgerId
|
||||
in: path
|
||||
@@ -239,7 +278,7 @@ paths:
|
||||
get:
|
||||
tags:
|
||||
- character-controller
|
||||
operationId: getCharacters
|
||||
operationId: findAllCharacters
|
||||
responses:
|
||||
"404":
|
||||
description: Not Found
|
||||
@@ -255,6 +294,72 @@ paths:
|
||||
$ref: "#/components/schemas/CharacterResponse"
|
||||
components:
|
||||
schemas:
|
||||
RuleClauseResponse:
|
||||
type: object
|
||||
properties:
|
||||
rate:
|
||||
type: string
|
||||
enum:
|
||||
- NONE
|
||||
- VALUE
|
||||
- JITA_BUY
|
||||
- JITA_SELL
|
||||
- EVE_ESTIMATE
|
||||
fromLedgerRef:
|
||||
type: string
|
||||
toLedgerRef:
|
||||
type: string
|
||||
required:
|
||||
- fromLedgerRef
|
||||
- rate
|
||||
- toLedgerRef
|
||||
RuleResponse:
|
||||
type: object
|
||||
properties:
|
||||
rules:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/RuleClauseResponse"
|
||||
required:
|
||||
- rules
|
||||
UpdateRuleBookRequest:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
ledgerRefs:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
rules:
|
||||
type: object
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/RuleResponse"
|
||||
required:
|
||||
- ledgerRefs
|
||||
- name
|
||||
- rules
|
||||
RuleBookResponse:
|
||||
type: object
|
||||
properties:
|
||||
ruleBookId:
|
||||
type: string
|
||||
format: uuid
|
||||
name:
|
||||
type: string
|
||||
ledgerRefs:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
rules:
|
||||
type: object
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/RuleResponse"
|
||||
required:
|
||||
- ledgerRefs
|
||||
- name
|
||||
- ruleBookId
|
||||
- rules
|
||||
UpdateMainLedgerRequest:
|
||||
type: object
|
||||
properties:
|
||||
@@ -321,6 +426,23 @@ components:
|
||||
- ledgerId
|
||||
- memberLedgerIds
|
||||
- name
|
||||
CreateRuleBookRequest:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
ledgerRefs:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
rules:
|
||||
type: object
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/RuleResponse"
|
||||
required:
|
||||
- ledgerRefs
|
||||
- name
|
||||
- rules
|
||||
CreateMainLedgerRequest:
|
||||
type: object
|
||||
properties:
|
||||
@@ -341,56 +463,6 @@ components:
|
||||
required:
|
||||
- memberLedgerIds
|
||||
- name
|
||||
RuleResponse:
|
||||
type: object
|
||||
properties:
|
||||
rate:
|
||||
type: string
|
||||
enum:
|
||||
- NONE
|
||||
- VALUE
|
||||
- JITA_BUY
|
||||
- JITA_SELL
|
||||
- EVE_ESTIMATE
|
||||
fromLedgerId:
|
||||
type: string
|
||||
format: uuid
|
||||
toLedgerId:
|
||||
type: string
|
||||
format: uuid
|
||||
required:
|
||||
- rate
|
||||
RuleSetResponse:
|
||||
type: object
|
||||
properties:
|
||||
rules:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/RuleResponse"
|
||||
required:
|
||||
- rules
|
||||
SetCharacterRuleBookRequest:
|
||||
type: object
|
||||
properties:
|
||||
ruleSets:
|
||||
type: object
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/RuleSetResponse"
|
||||
required:
|
||||
- ruleSets
|
||||
RuleBookResponse:
|
||||
type: object
|
||||
properties:
|
||||
characterId:
|
||||
type: integer
|
||||
format: int64
|
||||
ruleSets:
|
||||
type: object
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/RuleSetResponse"
|
||||
required:
|
||||
- characterId
|
||||
- ruleSets
|
||||
LedgerResponse:
|
||||
type: object
|
||||
discriminator:
|
||||
|
||||
Reference in New Issue
Block a user