Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- basePath: /v1
- consumes:
- - application/json
- definitions:
- SBC:
- properties:
- ip:
- type: string
- username:
- type: string
- password:
- type: string
- realm:
- type: string
- required:
- - ip
- type: object
- CCM:
- properties:
- ip:
- type: string
- username:
- type: string
- required:
- - ip
- type: object
- DIDAssociation:
- properties:
- did:
- type: number
- format: double
- extension:
- type: number
- format: double
- required:
- - did
- - extension
- type: object
- Customer:
- properties:
- sbc:
- $ref: '#/definitions/SBC'
- ccm:
- $ref: '#/definitions/CCM'
- didAssociations:
- type: array
- items:
- $ref: '#/definitions/DIDAssociation'
- id:
- type: number
- format: double
- type: object
- CustomerCreateRequest:
- properties:
- sbc:
- $ref: '#/definitions/SBC'
- ccm:
- $ref: '#/definitions/CCM'
- didAssociations:
- type: array
- items:
- $ref: '#/definitions/DIDAssociation'
- type: object
- CustomerUpdateRequest:
- properties:
- sbc:
- $ref: '#/definitions/SBC'
- ccm:
- $ref: '#/definitions/CCM'
- didAssociations:
- type: array
- items:
- $ref: '#/definitions/DIDAssociation'
- type: object
- info:
- title: tsoa-example
- version: 0.0.1
- description: An example app using tsoa
- license:
- name: MIT
- paths:
- /Customer/All:
- get:
- operationId: All
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- examples:
- application/json:
- didAssociations: []
- sbc:
- password: aeiou
- ip: aeiou
- realm: aeiou
- username: aeiou
- id: 0
- description: 'Get All the users '
- security: []
- parameters: []
- /Customer:
- post:
- operationId: Create
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- description: Create a customer
- security: []
- parameters:
- - description: This is a user creation request description
- in: body
- name: request
- required: true
- schema:
- $ref: '#/definitions/CustomerCreateRequest'
- '/Customer/{customerId}':
- get:
- operationId: Get
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- description: 'Get a customer by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- patch:
- operationId: Update
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- description: 'Update a customer by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: body
- name: request
- required: true
- schema:
- $ref: '#/definitions/CustomerUpdateRequest'
- delete:
- operationId: Delete
- produces:
- - application/json
- responses:
- '204':
- description: No content
- description: 'Delete a user by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- '/Customer/{customerId}/ccm':
- get:
- operationId: GetCustomerCCM
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/CCM'
- description: 'Get customer CCM configuration by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- patch:
- operationId: UpdateCustomerCCM
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- description: 'Update customer CCM configuration by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: body
- name: request
- required: true
- schema:
- $ref: '#/definitions/CCM'
- delete:
- operationId: DeleteCustomerCCM
- produces:
- - application/json
- responses:
- '204':
- description: No content
- description: 'Delete customer CCM configuration by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- '/Customer/{customerId}/association':
- get:
- operationId: GetCustomerAssociation
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/CCM'
- description: 'Get customer associations configuration by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- patch:
- operationId: UpdateCustomerAssociation
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- description: 'Update customer associations configuration by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: body
- name: request
- required: true
- schema:
- $ref: '#/definitions/CCM'
- delete:
- operationId: DeleteCustomerAssociation
- produces:
- - application/json
- responses:
- '204':
- description: No content
- description: 'Delete customer associations configuration by customerId '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- '/Customer/{customerId}/association/did/{did}':
- get:
- operationId: GetCustomerAssociationByDID
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/CCM'
- description: 'Get customer association configuration by customerId and DID '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: path
- name: did
- required: true
- format: double
- type: number
- patch:
- operationId: UpdateCustomerAssociationByDID
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- description: 'Update customer association configuration by customerId and DID '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: path
- name: did
- required: true
- format: double
- type: number
- - in: body
- name: request
- required: true
- schema:
- $ref: '#/definitions/CCM'
- delete:
- operationId: DeleteCustomerAssociationByDID
- produces:
- - application/json
- responses:
- '204':
- description: No content
- description: 'Delete customer association configuration by customerId and DID '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: path
- name: did
- required: true
- format: double
- type: number
- '/Customer/{customerId}/association/ext/{ext}':
- get:
- operationId: GetCustomerAssociationByExtension
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/CCM'
- description: 'Get customer association configuration by customerId and Unigy extension '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: path
- name: ext
- required: true
- format: double
- type: number
- patch:
- operationId: UpdateCustomerAssociationByExtension
- produces:
- - application/json
- responses:
- '200':
- description: Ok
- schema:
- $ref: '#/definitions/Customer'
- description: 'Update customer association configuration by customerId and Unigy extension '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: path
- name: ext
- required: true
- format: double
- type: number
- - in: body
- name: request
- required: true
- schema:
- $ref: '#/definitions/CCM'
- delete:
- operationId: DeleteCustomerAssociationByExtension
- produces:
- - application/json
- responses:
- '204':
- description: No content
- description: 'Delete customer association configuration by customerId and Unigy extension '
- security: []
- parameters:
- - in: path
- name: customerId
- required: true
- format: double
- type: number
- - in: path
- name: ext
- required: true
- format: double
- type: number
- produces:
- - application/json
- swagger: '2.0'
- securityDefinitions: {}
- host: 'localhost:3000'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement