mirror of
https://github.com/valitydev/swag-dark-api.git
synced 2024-11-06 02:45:22 +00:00
models
This commit is contained in:
parent
eba8b2b5b6
commit
ff83ae45dc
@ -1,5 +1,5 @@
|
||||
var gulp = require('gulp');
|
||||
var util = require('gulp-util')
|
||||
var util = require('gulp-util');
|
||||
var gulpConnect = require('gulp-connect');
|
||||
var connect = require('connect');
|
||||
var cors = require('cors');
|
||||
|
4
spec/definitions/ClaimChangeset.yaml
Normal file
4
spec/definitions/ClaimChangeset.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
description: Набор изменений
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/ModificationUnit'
|
8
spec/definitions/ClaimModification.yaml
Normal file
8
spec/definitions/ClaimModification.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
type: object
|
||||
properties:
|
||||
documentModification:
|
||||
$ref: '#/definitions/DocumentModificationUnit'
|
||||
fileModification:
|
||||
$ref: '#/definitions/FileModificationUnit'
|
||||
commentModification:
|
||||
$ref: '#/definitions/CommentModificationUnit'
|
1
spec/definitions/CommentCreated.yaml
Normal file
1
spec/definitions/CommentCreated.yaml
Normal file
@ -0,0 +1 @@
|
||||
type: object
|
4
spec/definitions/CommentModification.yaml
Normal file
4
spec/definitions/CommentModification.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
type: object
|
||||
properties:
|
||||
creation:
|
||||
$ref: '#/definitions/CommentCreated'
|
12
spec/definitions/CommentModificationUnit.yaml
Normal file
12
spec/definitions/CommentModificationUnit.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- modification
|
||||
properties:
|
||||
id:
|
||||
description: Идентификатор комментария
|
||||
type: string
|
||||
maxLength: 40
|
||||
minLength: 1
|
||||
modification:
|
||||
$ref: '#/definitions/CommentModification'
|
4
spec/definitions/ContractModification.yaml
Normal file
4
spec/definitions/ContractModification.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
type: object
|
||||
properties:
|
||||
creation:
|
||||
$ref: '#/definitions/ContractParams'
|
12
spec/definitions/ContractModificationUnit.yaml
Normal file
12
spec/definitions/ContractModificationUnit.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- modification
|
||||
properties:
|
||||
id:
|
||||
description: Идентификатор договора
|
||||
type: string
|
||||
maxLength: 40
|
||||
minLength: 1
|
||||
modification:
|
||||
$ref: '#/definitions/ContractModification'
|
8
spec/definitions/ContractParams.yaml
Normal file
8
spec/definitions/ContractParams.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
type: object
|
||||
properties:
|
||||
contractorID:
|
||||
type: string
|
||||
template:
|
||||
$ref: '#/definitions/ContractTemplateRef'
|
||||
paymentInstitution:
|
||||
$ref: '#/definitions/PaymentInstitutionRef'
|
6
spec/definitions/ContractTemplateRef.yaml
Normal file
6
spec/definitions/ContractTemplateRef.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
properties:
|
||||
id:
|
||||
type: i32
|
1
spec/definitions/DocumentCreated.yaml
Normal file
1
spec/definitions/DocumentCreated.yaml
Normal file
@ -0,0 +1 @@
|
||||
type: object
|
4
spec/definitions/DocumentModification.yaml
Normal file
4
spec/definitions/DocumentModification.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
type: object
|
||||
properties:
|
||||
creation:
|
||||
$ref: '#/definitions/DocumentCreated'
|
12
spec/definitions/DocumentModificationUnit.yaml
Normal file
12
spec/definitions/DocumentModificationUnit.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- modification
|
||||
properties:
|
||||
id:
|
||||
description: Идентификатор документа
|
||||
type: string
|
||||
maxLength: 40
|
||||
minLength: 1
|
||||
modification:
|
||||
$ref: '#/definitions/DocumentModification'
|
1
spec/definitions/FileCreated.yaml
Normal file
1
spec/definitions/FileCreated.yaml
Normal file
@ -0,0 +1 @@
|
||||
type: object
|
4
spec/definitions/FileModification.yaml
Normal file
4
spec/definitions/FileModification.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
type: object
|
||||
properties:
|
||||
creation:
|
||||
$ref: '#/definitions/FileCreated'
|
12
spec/definitions/FileModificationUnit.yaml
Normal file
12
spec/definitions/FileModificationUnit.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- modification
|
||||
properties:
|
||||
id:
|
||||
description: Идентификатор файла
|
||||
type: string
|
||||
maxLength: 40
|
||||
minLength: 1
|
||||
modification:
|
||||
$ref: '#/definitions/FileModification'
|
14
spec/definitions/InvalidChangeset.yaml
Normal file
14
spec/definitions/InvalidChangeset.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
description: Невалидный набор изменений
|
||||
type: object
|
||||
required:
|
||||
- reason
|
||||
- invalid_changesets
|
||||
properties:
|
||||
reason:
|
||||
description: Причина
|
||||
type: string
|
||||
invalid_changesets:
|
||||
description: Список невалидных наборов изменений
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/ClaimChangeset'
|
7
spec/definitions/Modification.yaml
Normal file
7
spec/definitions/Modification.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
description: Изменение
|
||||
type: object
|
||||
properties:
|
||||
partyModification:
|
||||
$ref: '#/definitions/PartyModification'
|
||||
claimModification:
|
||||
$ref: '#/definitions/ClaimModification'
|
16
spec/definitions/ModificationUnit.yaml
Normal file
16
spec/definitions/ModificationUnit.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
description: ModificationUnit
|
||||
type: object
|
||||
required:
|
||||
- modificationID
|
||||
- createdAt
|
||||
- modification
|
||||
properties:
|
||||
modificationID:
|
||||
description: Идентификатор изменения
|
||||
type: i64
|
||||
createdAt:
|
||||
description: Дата и время создания
|
||||
type: string
|
||||
format: date-time
|
||||
modification:
|
||||
$ref: '#/definitions/Modification'
|
8
spec/definitions/PartyModification.yaml
Normal file
8
spec/definitions/PartyModification.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
type: object
|
||||
properties:
|
||||
contractorModification:
|
||||
$ref: '#/definitions/ContractorModificationUnit'
|
||||
contractModification:
|
||||
$ref: '#/definitions/ContractModificationUnit'
|
||||
shopModification:
|
||||
$ref: '#/definitions/ShopModificationUnit'
|
6
spec/definitions/PaymentInstitutionRef.yaml
Normal file
6
spec/definitions/PaymentInstitutionRef.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
properties:
|
||||
id:
|
||||
type: i32
|
@ -147,4 +147,4 @@ tags:
|
||||
|
||||
- name: Questionary
|
||||
x-displayName: Управление анкетами
|
||||
description: ""
|
||||
description: ""
|
||||
|
@ -27,7 +27,7 @@
|
||||
// simple way to redirect user to one or another
|
||||
var spec = window.location.search.substring(1);
|
||||
if (spec.length == 0) {
|
||||
spec = "api/swag-dark-api/spec/swagger.json";
|
||||
spec = "./swagger.json";
|
||||
}
|
||||
Redoc.init(
|
||||
spec,
|
||||
|
Loading…
Reference in New Issue
Block a user