Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: '2.0'
- info:
- title: VIPCard Crypto - US01
- version: 1.0.0
- description: 'Dedicated, isolated, cryptographic processing'
- termsOfService: 'http://getvalid.com/terms/'
- contact:
- name: API Support
- url: 'http://www.getvalid.com/support'
- email: support@getvalid.com
- license:
- name: Apache 2.0
- url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
- host: validcryptous01functions.azurewebsites.net
- basePath: /
- schemes:
- - https
- paths:
- '/api/Enroll/{PublisherID}/{SpecificationID}':
- post:
- tags:
- - Publisher
- operationId: '/api/Enroll/{PublisherID}/{SpecificationID}/post'
- produces:
- - application/json
- consumes:
- - application/json
- parameters:
- - name: PublisherID
- in: path
- required: true
- type: string
- - name: SpecificationID
- in: path
- required: true
- type: string
- description: Sign a VIPCard's public key
- responses:
- '200':
- description: Success operation
- headers:
- X-Rate-Limit-Limit:
- description: The number of allowed requests in the current period
- type: integer
- X-Rate-Limit-Remaining:
- description: The number of remaining requests in the current period
- type: integer
- X-Rate-Limit-Reset:
- description: The number of seconds left in the current period
- type: integer
- security:
- - apikeyQuery: []
- '/api/Renew/{PublisherID}/{SpecificationID}':
- post:
- tags:
- - Publisher
- operationId: '/api/Renew/{PublisherID}/{SpecificationID}/post'
- produces:
- - application/json
- consumes:
- - application/json
- parameters:
- - name: PublisherID
- in: path
- required: true
- type: string
- - name: SpecificationID
- in: path
- required: true
- type: string
- description: >-
- Special function allowing the isolated renewal of data, without exposing
- attributes to the publisher
- responses:
- '200':
- description: Success operation
- headers:
- X-Rate-Limit-Limit:
- description: The number of allowed requests in the current period
- type: integer
- X-Rate-Limit-Remaining:
- description: The number of remaining requests in the current period
- type: integer
- X-Rate-Limit-Reset:
- description: The number of seconds left in the current period
- type: integer
- security:
- - apikeyQuery: []
- '/api/TokenPolicy/{PublisherID}':
- get:
- tags:
- - Publisher
- operationId: '/api/TokenPolicy/{PublisherID}//get'
- produces:
- - application/json
- consumes:
- - application/json
- parameters:
- - name: PublisherID
- in: path
- required: true
- type: string
- description: >-
- Create a Publisher and a Specification so that it can later create
- VIPCards
- responses:
- '200':
- description: Success operation
- headers:
- X-Rate-Limit-Limit:
- description: The number of allowed requests in the current period
- type: integer
- X-Rate-Limit-Remaining:
- description: The number of remaining requests in the current period
- type: integer
- X-Rate-Limit-Reset:
- description: The number of seconds left in the current period
- type: integer
- '/api/TokenPolicy/{PublisherID}/{SpecificationID}':
- get:
- tags:
- - Publisher
- operationId: '/api/TokenPolicy/{PublisherID}/{SpecificationID}/get'
- produces:
- - application/json
- consumes:
- - application/json
- parameters:
- - name: PublisherID
- in: path
- required: true
- type: string
- - name: SpecificationID
- in: path
- required: true
- type: string
- description: >-
- Create an Publisher and a Specification so that it can later create
- VIPCards
- responses:
- '200':
- description: Success operation
- headers:
- X-Rate-Limit-Limit:
- description: The number of allowed requests in the current period
- type: integer
- X-Rate-Limit-Remaining:
- description: The number of remaining requests in the current period
- type: integer
- X-Rate-Limit-Reset:
- description: The number of seconds left in the current period
- type: integer
- post:
- tags:
- - Publisher
- operationId: '/api/TokenPolicy/{PublisherID}/{SpecificationID}/post'
- produces:
- - application/json
- consumes:
- - application/json
- parameters:
- - name: PublisherID
- in: path
- required: true
- type: string
- - name: SpecificationID
- in: path
- required: true
- type: string
- - name: CreationData
- description: user to add to the system
- required: true
- in: body
- schema:
- $ref: '#/definitions/PublisherSpecification'
- responses:
- '200':
- description: Success operation
- headers:
- X-Rate-Limit-Limit:
- description: The number of allowed requests in the current period
- type: integer
- X-Rate-Limit-Remaining:
- description: The number of remaining requests in the current period
- type: integer
- X-Rate-Limit-Reset:
- description: The number of seconds left in the current period
- type: integer
- security:
- - apikeyQuery: []
- '/api/Verify/{TokenID}':
- post:
- tags:
- - Scanner
- operationId: '/api/Verify/{TokenID}/post'
- produces:
- - application/json
- consumes:
- - application/json
- parameters:
- - name: TokenID
- in: path
- required: true
- type: string
- description: >-
- Replace with Operation Object
- #http://swagger.io/specification/#operationObject
- responses:
- '200':
- description: Success operation
- headers:
- X-Rate-Limit-Limit:
- description: The number of allowed requests in the current period
- type: integer
- X-Rate-Limit-Remaining:
- description: The number of remaining requests in the current period
- type: integer
- X-Rate-Limit-Reset:
- description: The number of seconds left in the current period
- type: integer
- security:
- - apikeyQuery: []
- definitions:
- PublisherSpecification:
- description: Base information representing the publisher data
- allOf:
- - type: object
- properties:
- UIDP:
- type: string
- description: >-
- A base64 byte[] typically the lowercase DNS TLD name of the
- publisher
- example: domain.com
- Specification:
- type: string
- description: 'A base64 byte[] representing the data policy'
- example: {}
- NumberOfAttributes:
- type: integer
- maximum: 50
- minimum: 0
- default: 0
- description: >-
- A base64 byte[] representing the number of attributes defined in
- the Spec
- NonHashedValues:
- type: string
- description: >-
- A zero based array definfining which attributes are to be hashed.
- Homomorphic encryption requires non hashed values
- DeviceSupport:
- type: boolean
- default: false
- description: Is hardware support required?
- HashType:
- type: string
- description: The hash type used to encrypt attributes
- default: SHA256
- enum:
- - SHA1
- - SHA256
- - SHA384
- - SHA512
- ParameterSet:
- type: string
- description: >-
- The algorithm used to protect the data. EC is much smaller and
- faster than subgroups
- default: EC_P256_V1
- enum:
- - SubGroup_2048_256V1
- - SubGroup_3072_256V1
- - SubGroup_1024_160V1
- - EC_BN254_V1
- - EC_P256_V1
- - EC_P384_V1
- - EC_P521_V1
- required:
- - UIDP
- - ParameterSet
- - Specification
- - NumberOfAttributes
- - NonHashedValues
- - HashType
- securityDefinitions:
- apikeyQuery:
- type: apiKey
- name: code
- in: query
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement