cleanup and fix
This commit is contained in:
+28
-220
@@ -19,7 +19,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: The rule book
|
||||
@@ -29,13 +29,6 @@ paths:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
"404":
|
||||
description: No rule book with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
put:
|
||||
tags:
|
||||
- rule-book
|
||||
@@ -48,7 +41,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
requestBody:
|
||||
description: New state of the rule book
|
||||
content:
|
||||
@@ -68,13 +61,6 @@ paths:
|
||||
Returned when:
|
||||
- the request is invalid (e.g. blank name)
|
||||
- the rule book is the default rule book, which cannot be modified
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
delete:
|
||||
tags:
|
||||
- rule-book
|
||||
@@ -87,29 +73,15 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"204":
|
||||
description: The rule book was deleted
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"400":
|
||||
description: |-
|
||||
Returned when:
|
||||
- the rule book is associated to a character
|
||||
- the rule book is the default rule book, which cannot be deleted
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/main/{ledgerId}:
|
||||
put:
|
||||
tags:
|
||||
@@ -123,7 +95,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
requestBody:
|
||||
description: New state of the main ledger
|
||||
content:
|
||||
@@ -143,22 +115,8 @@ paths:
|
||||
Returned when:
|
||||
- the ledger is not a main ledger
|
||||
- the request is invalid
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/combined/{ledgerId}:
|
||||
put:
|
||||
tags:
|
||||
@@ -172,7 +130,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
requestBody:
|
||||
description: New state of the combined ledger
|
||||
content:
|
||||
@@ -192,22 +150,8 @@ paths:
|
||||
Returned when:
|
||||
- the ledger is not a combined ledger
|
||||
- the request is invalid
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/characters/{characterId}/rule-book:
|
||||
get:
|
||||
tags:
|
||||
@@ -220,8 +164,8 @@ paths:
|
||||
description: Id of the character
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
"200":
|
||||
description: The rule book assignment of the character
|
||||
@@ -231,22 +175,8 @@ paths:
|
||||
$ref: "#/components/schemas/CharacterRuleBookResponse"
|
||||
"400":
|
||||
description: Invalid character id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No rule book assigned to this character
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
put:
|
||||
tags:
|
||||
- character-rule-book
|
||||
@@ -258,8 +188,8 @@ paths:
|
||||
description: Id of the character
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
requestBody:
|
||||
description: Rule book and ledger bindings to assign
|
||||
content:
|
||||
@@ -281,13 +211,6 @@ paths:
|
||||
- a bound ledger does not exist
|
||||
- a bound ledger is not a main or system ledger
|
||||
- a required ledger binding is missing
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/rule-books:
|
||||
get:
|
||||
tags:
|
||||
@@ -323,26 +246,14 @@ paths:
|
||||
description: URL of the created rule book
|
||||
style: simple
|
||||
schema:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
default: ""
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
type: string
|
||||
format: uri
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/RuleBookResponse"
|
||||
"400":
|
||||
description: Invalid request (e.g. blank name)
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/process-activities:
|
||||
post:
|
||||
tags:
|
||||
@@ -373,26 +284,14 @@ paths:
|
||||
description: URL of the created main ledger
|
||||
style: simple
|
||||
schema:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
default: ""
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
type: string
|
||||
format: uri
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: "#/components/schemas/MainLedgerResponse"
|
||||
"400":
|
||||
description: Invalid request (e.g. blank name)
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/combined:
|
||||
post:
|
||||
tags:
|
||||
@@ -414,13 +313,8 @@ paths:
|
||||
description: URL of the created combined ledger
|
||||
style: simple
|
||||
schema:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
default: ""
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
type: string
|
||||
format: uri
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
@@ -428,13 +322,6 @@ paths:
|
||||
"400":
|
||||
description: "Invalid request (e.g. blank name, a member ledger missing\
|
||||
\ or already contained)"
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/activity/fetch:
|
||||
post:
|
||||
tags:
|
||||
@@ -456,20 +343,13 @@ paths:
|
||||
description: Id of the character
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
"200":
|
||||
description: New activities fetched and stored
|
||||
"400":
|
||||
description: No character with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/rule-books/script-definitions:
|
||||
get:
|
||||
tags:
|
||||
@@ -495,8 +375,8 @@ paths:
|
||||
description: The market type id to scan
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
- name: days
|
||||
in: query
|
||||
description: Number of most recent days of history to analyse
|
||||
@@ -535,13 +415,6 @@ paths:
|
||||
$ref: "#/components/schemas/MarketScanResponse"
|
||||
"400":
|
||||
description: The days parameter is not greater than 0
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/market/{marketTypeId}/history:
|
||||
get:
|
||||
tags:
|
||||
@@ -554,8 +427,8 @@ paths:
|
||||
description: Id of the market type
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: integer
|
||||
format: int64
|
||||
- name: days
|
||||
in: query
|
||||
description: Optional number of most recent days to return; omit for the full
|
||||
@@ -564,7 +437,6 @@ paths:
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
default: ""
|
||||
minimum: 1
|
||||
responses:
|
||||
"200":
|
||||
@@ -577,13 +449,6 @@ paths:
|
||||
$ref: "#/components/schemas/MarketHistoryResponse"
|
||||
"400":
|
||||
description: The days parameter is not greater than 0
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/market/scan:
|
||||
get:
|
||||
tags:
|
||||
@@ -632,13 +497,6 @@ paths:
|
||||
$ref: "#/components/schemas/MarketScanResponse"
|
||||
"400":
|
||||
description: The days parameter is not greater than 0
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/market/prices:
|
||||
get:
|
||||
tags:
|
||||
@@ -652,8 +510,10 @@ paths:
|
||||
description: "Market type ids to price, e.g. types=34,35"
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
type: array
|
||||
items:
|
||||
type: integer
|
||||
format: int64
|
||||
responses:
|
||||
"200":
|
||||
description: "The order book for each requested type, one entry per type"
|
||||
@@ -668,13 +528,6 @@ paths:
|
||||
Returned when:
|
||||
- the types parameter is missing
|
||||
- a types value is not a numeric id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers:
|
||||
get:
|
||||
tags:
|
||||
@@ -703,7 +556,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: The ledger
|
||||
@@ -713,22 +566,8 @@ paths:
|
||||
$ref: "#/components/schemas/LedgerResponse"
|
||||
"400":
|
||||
description: The ledger cannot be exposed (system ledger)
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/{ledgerId}/transactions:
|
||||
get:
|
||||
tags:
|
||||
@@ -742,7 +581,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: All transactions in the ledger
|
||||
@@ -754,13 +593,6 @@ paths:
|
||||
$ref: "#/components/schemas/TransactionResponse"
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/ledgers/{ledgerId}/balance:
|
||||
get:
|
||||
tags:
|
||||
@@ -774,7 +606,7 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
default: ""
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: The balance of the ledger
|
||||
@@ -784,13 +616,6 @@ paths:
|
||||
$ref: "#/components/schemas/BalanceResponse"
|
||||
"404":
|
||||
description: No ledger with this id
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
type: string
|
||||
additionalProperties:
|
||||
default: ""
|
||||
default: ""
|
||||
/characters:
|
||||
get:
|
||||
tags:
|
||||
@@ -847,14 +672,9 @@ components:
|
||||
type: boolean
|
||||
ledgerRefs:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
type: string
|
||||
default: ""
|
||||
pattern: "[a-z][a-zA-Z0-9]*"
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
script:
|
||||
type: string
|
||||
required:
|
||||
@@ -874,14 +694,9 @@ components:
|
||||
type: boolean
|
||||
ledgerRefs:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
type: string
|
||||
default: ""
|
||||
pattern: "[a-z][a-zA-Z0-9]*"
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
script:
|
||||
type: string
|
||||
required:
|
||||
@@ -1009,14 +824,9 @@ components:
|
||||
type: boolean
|
||||
ledgerRefs:
|
||||
type: array
|
||||
contains:
|
||||
default: ""
|
||||
items:
|
||||
type: string
|
||||
default: ""
|
||||
pattern: "[a-z][a-zA-Z0-9]*"
|
||||
unevaluatedItems:
|
||||
default: ""
|
||||
script:
|
||||
type: string
|
||||
required:
|
||||
@@ -1125,7 +935,6 @@ components:
|
||||
- orderCount
|
||||
- sell
|
||||
LedgerResponse:
|
||||
default: null
|
||||
discriminator:
|
||||
propertyName: type
|
||||
mapping:
|
||||
@@ -1203,7 +1012,6 @@ components:
|
||||
- transactionId
|
||||
- transfers
|
||||
TransferResponse:
|
||||
default: null
|
||||
discriminator:
|
||||
propertyName: type
|
||||
mapping:
|
||||
|
||||
Reference in New Issue
Block a user