Home

Pre-Registration-Datasync (1.0)

Download OpenAPI specification:Download

License: Mosip

Pre-Registration Datasync Service

clientcrypto

Operation related to offline Encryption and Decryption

Get signinging public key

Get signinging public key

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
metadata
object
required
object (PublicKeyRequestDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "request": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "response": {
    },
  • "errors": [
    ]
}

Get encryption public key

Get encryption public key

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
metadata
object
required
object (PublicKeyRequestDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "request": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "response": {
    },
  • "errors": [
    ]
}

Encrypt data using tpm

Encrypt data using tpm

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
metadata
object
required
object (TpmCryptoRequestDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "request": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "response": {
    },
  • "errors": [
    ]
}

Decrypt data using tpm

Decrypt data using tpm

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
metadata
object
required
object (TpmCryptoRequestDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "request": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "response": {
    },
  • "errors": [
    ]
}

Verify signature

Verify signature

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
metadata
object
required
object (TpmSignVerifyRequestDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "request": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "response": {
    },
  • "errors": [
    ]
}

Sign data using tpm

Sign data using tpm

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
metadata
object
required
object (TpmSignRequestDto)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "request": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "2019-08-24T14:15:22Z",
  • "metadata": { },
  • "response": {
    },
  • "errors": [
    ]
}

Data-Sync

Data-Sync Controller

Fetch all PreRegistrationIds

Fetch all PreRegistrationIds

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
object (DataSyncRequestDTO)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "request": {
    }
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "string",
  • "response": {
    },
  • "errors": [
    ]
}

Retrieve Pre-Registrations

Retrieve Pre-Registrations

path Parameters
preRegistrationId
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "string",
  • "response": {
    },
  • "errors": [
    ]
}

Retrieve Pre-Registrations

Retrieve Pre-Registrations

path Parameters
preRegistrationId
required
string
machineId
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "responsetime": "string",
  • "response": {
    },
  • "errors": [
    ]
}

Store consumed Pre-Registrations

Store consumed Pre-Registrations

Request Body schema: application/json
id
string
version
string
requesttime
string <date-time>
object (ReverseDataSyncRequestDTO)

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "version": "string",
  • "requesttime": "2019-08-24T14:15:22Z",
  • "request": {
    }
}
Home