Skip to content

Latest commit

 

History

History
206 lines (142 loc) · 6.13 KB

File metadata and controls

206 lines (142 loc) · 6.13 KB

DataProcessingAgreementsAPI

All URIs are relative to https://api.mydatamyconsent.com

Method HTTP request Description
v1DataAgreementsGet GET /v1/data-agreements Get paginated data processing agreements.
v1DataAgreementsIdDelete DELETE /v1/data-agreements/{id} Delete a data processing agreement this will not delete a published or a agreement in use with consents.
v1DataAgreementsIdGet GET /v1/data-agreements/{id} Get data processing agreement by id.
v1DataAgreementsIdTerminatePut PUT /v1/data-agreements/{id}/terminate Terminate a data processing agreement by id.

v1DataAgreementsGet

    open class func v1DataAgreementsGet(pageNo: Int? = nil, pageSize: Int? = nil, completion: @escaping (_ data: PaginatedListOfDataProcessingAgreements?, _ error: Error?) -> Void)

Get paginated data processing agreements.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import MyDataMyConsent

let pageNo = 987 // Int |  (optional)
let pageSize = 987 // Int |  (optional)

// Get paginated data processing agreements.
DataProcessingAgreementsAPI.v1DataAgreementsGet(pageNo: pageNo, pageSize: pageSize) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
pageNo Int [optional]
pageSize Int [optional]

Return type

PaginatedListOfDataProcessingAgreements

Authorization

OAuth2ClientCredentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

[Back to top] [Back to API list] [Back to Model list] [Back to README]

v1DataAgreementsIdDelete

    open class func v1DataAgreementsIdDelete(id: String, completion: @escaping (_ data: Bool?, _ error: Error?) -> Void)

Delete a data processing agreement this will not delete a published or a agreement in use with consents.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import MyDataMyConsent

let id = "id_example" // String | 

// Delete a data processing agreement this will not delete a published or a agreement in use with consents.
DataProcessingAgreementsAPI.v1DataAgreementsIdDelete(id: id) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
id String

Return type

Bool

Authorization

OAuth2ClientCredentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

[Back to top] [Back to API list] [Back to Model list] [Back to README]

v1DataAgreementsIdGet

    open class func v1DataAgreementsIdGet(id: String, completion: @escaping (_ data: DataProcessingAgreement?, _ error: Error?) -> Void)

Get data processing agreement by id.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import MyDataMyConsent

let id = "id_example" // String | 

// Get data processing agreement by id.
DataProcessingAgreementsAPI.v1DataAgreementsIdGet(id: id) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
id String

Return type

DataProcessingAgreement

Authorization

OAuth2ClientCredentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

[Back to top] [Back to API list] [Back to Model list] [Back to README]

v1DataAgreementsIdTerminatePut

    open class func v1DataAgreementsIdTerminatePut(id: String, completion: @escaping (_ data: Bool?, _ error: Error?) -> Void)

Terminate a data processing agreement by id.

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import MyDataMyConsent

let id = "id_example" // String | 

// Terminate a data processing agreement by id.
DataProcessingAgreementsAPI.v1DataAgreementsIdTerminatePut(id: id) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
id String

Return type

Bool

Authorization

OAuth2ClientCredentials

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

[Back to top] [Back to API list] [Back to Model list] [Back to README]