This commit is contained in:
DenisEzhov 2019-06-24 15:51:53 +03:00
parent eba8b2b5b6
commit ff83ae45dc
23 changed files with 147 additions and 3 deletions

View File

@ -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');

View File

@ -0,0 +1,4 @@
description: Набор изменений
type: array
items:
$ref: '#/definitions/ModificationUnit'

View File

@ -0,0 +1,8 @@
type: object
properties:
documentModification:
$ref: '#/definitions/DocumentModificationUnit'
fileModification:
$ref: '#/definitions/FileModificationUnit'
commentModification:
$ref: '#/definitions/CommentModificationUnit'

View File

@ -0,0 +1 @@
type: object

View File

@ -0,0 +1,4 @@
type: object
properties:
creation:
$ref: '#/definitions/CommentCreated'

View File

@ -0,0 +1,12 @@
type: object
required:
- id
- modification
properties:
id:
description: Идентификатор комментария
type: string
maxLength: 40
minLength: 1
modification:
$ref: '#/definitions/CommentModification'

View File

@ -0,0 +1,4 @@
type: object
properties:
creation:
$ref: '#/definitions/ContractParams'

View File

@ -0,0 +1,12 @@
type: object
required:
- id
- modification
properties:
id:
description: Идентификатор договора
type: string
maxLength: 40
minLength: 1
modification:
$ref: '#/definitions/ContractModification'

View File

@ -0,0 +1,8 @@
type: object
properties:
contractorID:
type: string
template:
$ref: '#/definitions/ContractTemplateRef'
paymentInstitution:
$ref: '#/definitions/PaymentInstitutionRef'

View File

@ -0,0 +1,6 @@
type: object
required:
- id
properties:
id:
type: i32

View File

@ -0,0 +1 @@
type: object

View File

@ -0,0 +1,4 @@
type: object
properties:
creation:
$ref: '#/definitions/DocumentCreated'

View File

@ -0,0 +1,12 @@
type: object
required:
- id
- modification
properties:
id:
description: Идентификатор документа
type: string
maxLength: 40
minLength: 1
modification:
$ref: '#/definitions/DocumentModification'

View File

@ -0,0 +1 @@
type: object

View File

@ -0,0 +1,4 @@
type: object
properties:
creation:
$ref: '#/definitions/FileCreated'

View File

@ -0,0 +1,12 @@
type: object
required:
- id
- modification
properties:
id:
description: Идентификатор файла
type: string
maxLength: 40
minLength: 1
modification:
$ref: '#/definitions/FileModification'

View 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'

View File

@ -0,0 +1,7 @@
description: Изменение
type: object
properties:
partyModification:
$ref: '#/definitions/PartyModification'
claimModification:
$ref: '#/definitions/ClaimModification'

View 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'

View File

@ -0,0 +1,8 @@
type: object
properties:
contractorModification:
$ref: '#/definitions/ContractorModificationUnit'
contractModification:
$ref: '#/definitions/ContractModificationUnit'
shopModification:
$ref: '#/definitions/ShopModificationUnit'

View File

@ -0,0 +1,6 @@
type: object
required:
- id
properties:
id:
type: i32

View File

@ -147,4 +147,4 @@ tags:
- name: Questionary
x-displayName: Управление анкетами
description: ""
description: ""

View File

@ -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,