Skip to content

mydatamyconsent/swift-sdk

Repository files navigation

Swift5 API client for MyDataMyConsent

Unleashing the power of consent by establishing trust. The Platform Core Developer API defines a set of capabilities that can be used to request, issue, manage and update data, documents and credentials by organizations. The API can be used to request, manage and update Decentralised Identifiers, Financial Data, Health Data issue Documents, Credentials directly or using OpenID Connect flows, and verify Messages signed with DIDs and much more.

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

Installation

Carthage

Run carthage update

CocoaPods

Run pod install

Documentation for API Endpoints

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

Class Method HTTP request Description
DataProcessingAgreementsAPI v1DataAgreementsGet GET /v1/data-agreements Get paginated data processing agreements.
DataProcessingAgreementsAPI v1DataAgreementsIdDelete DELETE /v1/data-agreements/{id} Delete a data processing agreement this will not delete a published or a agreement in use with consents.
DataProcessingAgreementsAPI v1DataAgreementsIdGet GET /v1/data-agreements/{id} Get data processing agreement by id.
DataProcessingAgreementsAPI v1DataAgreementsIdTerminatePut PUT /v1/data-agreements/{id}/terminate Terminate a data processing agreement by id.
DataProvidersDiscoveryAPI v1DataProvidersGet GET /v1/data-providers Discover all data providers in my data my consent by country and filters.
DataProvidersDiscoveryAPI v1DataProvidersIdGet GET /v1/data-providers/{id} Get a data provider details by provider id.
IndividualsAPI issuerIssuedoc1XmlPost POST /issuer/issuedoc/1/xml Digilocker compatible endpoint to issue document.
IndividualsAPI v1IndividualsConsentRequestsGet GET /v1/individuals/consent-requests Get all consent requests sent to Individuals.
IndividualsAPI v1IndividualsConsentRequestsPost POST /v1/individuals/consent-requests Create individual consent request.
IndividualsAPI v1IndividualsConsentRequestsRequestIdCancelPut PUT /v1/individuals/consent-requests/{request_id}/cancel Cancel the Individual data request by id.
IndividualsAPI v1IndividualsConsentRequestsRequestIdGet GET /v1/individuals/consent-requests/{request_id} Get Individual data consent request by id.
IndividualsAPI v1IndividualsConsentTemplatesGet GET /v1/individuals/consent-templates Get the paginated list of individual consent templates.
IndividualsAPI v1IndividualsConsentTemplatesTemplateIdGet GET /v1/individuals/consent-templates/{template_id} Get Individual consent template details by consent id.
IndividualsAPI v1IndividualsConsentsConsentIdDocumentsDocumentIdDownloadGet GET /v1/individuals/consents/{consent_id}/documents/{document_id}/download Download Individual consented document by document id.
IndividualsAPI v1IndividualsConsentsConsentIdDocumentsDocumentIdGet GET /v1/individuals/consents/{consent_id}/documents/{document_id} Get Individual consented document by document id.
IndividualsAPI v1IndividualsConsentsConsentIdDocumentsGet GET /v1/individuals/consents/{consent_id}/documents Get Individual consented document by consent id.
IndividualsAPI v1IndividualsConsentsConsentIdFinancialAccountsAccountIdGet GET /v1/individuals/consents/{consent_id}/financial-accounts/{account_id} Get individual consented financial account details.
IndividualsAPI v1IndividualsConsentsConsentIdFinancialAccountsAccountIdTransactionsGet GET /v1/individuals/consents/{consent_id}/financial-accounts/{account_id}/transactions Get individual consented financial account transactions.
IndividualsAPI v1IndividualsConsentsConsentIdFinancialAccountsGet GET /v1/individuals/consents/{consent_id}/financial-accounts Get all individual consented financial accounts.
IndividualsAPI v1IndividualsConsentsConsentIdGet GET /v1/individuals/consents/{consent_id} Get Individuals consent details by consent id.
IndividualsAPI v1IndividualsConsentsConsentIdHealthFhirBundleGet GET /v1/individuals/consents/{consent_id}/health/fhir/bundle Get Individual consented Health Records by consent id.
IndividualsAPI v1IndividualsConsentsGet GET /v1/individuals/consents Get the paginated list of Individual consents.
IndividualsAPI v1IndividualsDocumentsIssueIssueRequestIdUploadPost POST /v1/individuals/documents/issue/{issue_request_id}/upload Upload a document for issuance request of individual.
IndividualsAPI v1IndividualsDocumentsIssuePost POST /v1/individuals/documents/issue Issue a new document to an individual user.
IndividualsAPI v1IndividualsDocumentsIssuedDocumentIdGet GET /v1/individuals/documents/issued/{document_id} Get issued document.
IndividualsAPI v1IndividualsDocumentsIssuedGet GET /v1/individuals/documents/issued Get paginated list of issued documents of given document type.
IndividualsAPI v1IndividualsDocumentsTypesGet GET /v1/individuals/documents/types Get paginated list of registered document types.
OrganizationsAPI v1OrganizationsConsentRequestsGet GET /v1/organizations/consent-requests Get all consent requests sent to Organizations.
OrganizationsAPI v1OrganizationsConsentRequestsPost POST /v1/organizations/consent-requests Create consent request for an Organization.
OrganizationsAPI v1OrganizationsConsentRequestsRequestIdCancelPut PUT /v1/organizations/consent-requests/{request_id}/cancel Cancel the Organization data request by id.
OrganizationsAPI v1OrganizationsConsentRequestsRequestIdGet GET /v1/organizations/consent-requests/{request_id} Get Organization data request by id.
OrganizationsAPI v1OrganizationsConsentTemplatesGet GET /v1/organizations/consent-templates Get the paginated list of organization consent templates.
OrganizationsAPI v1OrganizationsConsentTemplatesTemplateIdGet GET /v1/organizations/consent-templates/{template_id} Get Organization consent template details by consent id.
OrganizationsAPI v1OrganizationsConsentsConsentIdDocumentsDocumentIdDownloadGet GET /v1/organizations/consents/{consent_id}/documents/{document_id}/download Download Organization consent document by document id.
OrganizationsAPI v1OrganizationsConsentsConsentIdDocumentsDocumentIdGet GET /v1/organizations/consents/{consent_id}/documents/{document_id} Get Organization consent document based on document id and consent id.
OrganizationsAPI v1OrganizationsConsentsConsentIdDocumentsGet GET /v1/organizations/consents/{consent_id}/documents Get Organization consent document by consent id.
OrganizationsAPI v1OrganizationsConsentsConsentIdFinancialAccountsAccountIdGet GET /v1/organizations/consents/{consent_id}/financial-accounts/{account_id} Get organization consented financial account details.
OrganizationsAPI v1OrganizationsConsentsConsentIdFinancialAccountsAccountIdTransactionsGet GET /v1/organizations/consents/{consent_id}/financial-accounts/{account_id}/transactions Get organization consented financial account transactions.
OrganizationsAPI v1OrganizationsConsentsConsentIdFinancialAccountsGet GET /v1/organizations/consents/{consent_id}/financial-accounts Get all organization consented financial accounts.
OrganizationsAPI v1OrganizationsConsentsConsentIdGet GET /v1/organizations/consents/{consent_id} Get Organization consent request details by consent id.
OrganizationsAPI v1OrganizationsConsentsGet GET /v1/organizations/consents Get the paginated list of Organization consents.
OrganizationsAPI v1OrganizationsDocumentsIssuePost POST /v1/organizations/documents/issue Issue a new document to an organization.
OrganizationsAPI v1OrganizationsDocumentsIssueUploadIssueRequestIdPost POST /v1/organizations/documents/issue/upload/{issue_request_id} Upload a document for issuance request of Organization.
OrganizationsAPI v1OrganizationsDocumentsIssuedDocumentIdGet GET /v1/organizations/documents/issued/{document_id} Get issued document.
OrganizationsAPI v1OrganizationsDocumentsIssuedGet GET /v1/organizations/documents/issued Get paginated list of issued documents of given document type.
OrganizationsAPI v1OrganizationsDocumentsTypesGet GET /v1/organizations/documents/types Get paginated list of registered document types.
SupportedIdentifiersAPI v1SupportedIdentifiersCountryIso2CodeGet GET /v1/supported-identifiers/{country_iso2_code} Get all supported identifiers by country.

Documentation For Models

Documentation For Authorization

OAuth2ClientCredentials

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • SupportedIdentifiers:Read: Read SupportedIdentifiers.
  • DataProviders:Read: Read DataProviders.
  • DataProcessingAgreements:Read: Read DataProcessingAgreements.
  • DataProcessingAgreements:Write: Read & Write DataProcessingAgreements.
  • Individuals:DocumentTypes:Read: Read Individual DocumentTypes.
  • Individuals:Documents:Read: Read Individual Issued Documents.
  • Individuals:Documents:Issue: Issue Individual Documents.
  • Organizations:DocumentTypes:Read: Read Organization DocumentTypes.
  • Organizations:Documents:Read: Read Organization Issued Documents.
  • Organizations:Documents:Issue: Issue Organization Documents.
  • Individuals:ConsentRequests:Request: Request Individual Consent requests.
  • Individuals:ConsentRequests:Cancel: Cancel Individual Consent requests.
  • Individuals:ConsentRequests:Read: Read Individual Consent requests.
  • Organizations:ConsentRequests:Request: Request Organization Consent requests.
  • Organizations:ConsentRequests:Cancel: Cancel Organization Consent requests.
  • Organizations:ConsentRequests:Read: Read Organization Consent requests.
  • Individuals:Consents:Read: Read Individual Consents.
  • Organizations:Consents:Read: Read Organization Consents.
  • Individuals:ConsentRequestTemplates:Read: Read Individual Consent Request templates.
  • Organizations:ConsentRequestTemplates:Read: Read Organization Consent Request templates.

Author

support@mydatamyconsent.com

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •