rule book ui
This commit is contained in:
+94
-57
@@ -108,6 +108,57 @@ 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:
|
||||
@@ -190,29 +241,6 @@ paths:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/CharacterResponse"
|
||||
/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"
|
||||
components:
|
||||
schemas:
|
||||
UpdateMainLedgerRequest:
|
||||
@@ -301,40 +329,6 @@ components:
|
||||
required:
|
||||
- memberLedgerIds
|
||||
- name
|
||||
LedgerResponse:
|
||||
type: object
|
||||
discriminator:
|
||||
propertyName: type
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- MAIN
|
||||
- COMBINED
|
||||
CharacterResponse:
|
||||
type: object
|
||||
properties:
|
||||
characterId:
|
||||
type: integer
|
||||
format: int64
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- characterId
|
||||
- name
|
||||
RuleBookResponse:
|
||||
type: object
|
||||
properties:
|
||||
characterId:
|
||||
type: integer
|
||||
format: int64
|
||||
ruleSets:
|
||||
type: object
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/RuleSetResponse"
|
||||
required:
|
||||
- characterId
|
||||
- ruleSets
|
||||
RuleResponse:
|
||||
type: object
|
||||
properties:
|
||||
@@ -363,3 +357,46 @@ components:
|
||||
$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:
|
||||
propertyName: type
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- MAIN
|
||||
- COMBINED
|
||||
CharacterResponse:
|
||||
type: object
|
||||
properties:
|
||||
characterId:
|
||||
type: integer
|
||||
format: int64
|
||||
name:
|
||||
type: string
|
||||
required:
|
||||
- characterId
|
||||
- name
|
||||
|
||||
Reference in New Issue
Block a user