1.0.0 • Published 2 years ago

part_mgmt_001 v1.0.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
2 years ago

partnership_management

PartnershipManagement - JavaScript client for partnership_management This is Swagger UI environment generated for the TMF Partnership Management specification This SDK is automatically generated by the Swagger Codegen project:

  • API version: 4.0
  • Package version: 4.0
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install partnership_management --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var PartnershipManagement = require('partnership_management');

var api = new PartnershipManagement.EventsSubscriptionApi()
var body = new PartnershipManagement.EventSubscriptionInput(); // {EventSubscriptionInput} Data containing the callback endpoint to deliver the information

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registerListener(body, callback);

Documentation for API Endpoints

All URIs are relative to https://serverRoot/tmf-api/partnershipManagement/v4/

ClassMethodHTTP requestDescription
PartnershipManagement.EventsSubscriptionApiregisterListenerPOST /hubRegister a listener
PartnershipManagement.EventsSubscriptionApiunregisterListenerDELETE /hub/{id}Unregister a listener
PartnershipManagement.NotificationListenersClientSideApilistenToPartnershipChangeEventPOST /listener/partnershipChangeEventClient listener for entity PartnershipChangeEvent
PartnershipManagement.NotificationListenersClientSideApilistenToPartnershipCreateEventPOST /listener/partnershipCreateEventClient listener for entity PartnershipCreateEvent
PartnershipManagement.NotificationListenersClientSideApilistenToPartnershipDeleteEventPOST /listener/partnershipDeleteEventClient listener for entity PartnershipDeleteEvent
PartnershipManagement.NotificationListenersClientSideApilistenToPartnershipSpecificationChangeEventPOST /listener/partnershipSpecificationChangeEventClient listener for entity PartnershipSpecificationChangeEvent
PartnershipManagement.NotificationListenersClientSideApilistenToPartnershipSpecificationCreateEventPOST /listener/partnershipSpecificationCreateEventClient listener for entity PartnershipSpecificationCreateEvent
PartnershipManagement.NotificationListenersClientSideApilistenToPartnershipSpecificationDeleteEventPOST /listener/partnershipSpecificationDeleteEventClient listener for entity PartnershipSpecificationDeleteEvent
PartnershipManagement.PartnershipApicreatePartnershipPOST /partnershipCreates a Partnership
PartnershipManagement.PartnershipApideletePartnershipDELETE /partnership/{id}Deletes a Partnership
PartnershipManagement.PartnershipApilistPartnershipGET /partnershipList or find Partnership objects
PartnershipManagement.PartnershipApipatchPartnershipPATCH /partnership/{id}Updates partially a Partnership
PartnershipManagement.PartnershipApiretrievePartnershipGET /partnership/{id}Retrieves a Partnership by ID
PartnershipManagement.PartnershipSpecificationApicreatePartnershipSpecificationPOST /partnershipSpecificationCreates a PartnershipSpecification
PartnershipManagement.PartnershipSpecificationApideletePartnershipSpecificationDELETE /partnershipSpecification/{id}Deletes a PartnershipSpecification
PartnershipManagement.PartnershipSpecificationApilistPartnershipSpecificationGET /partnershipSpecificationList or find PartnershipSpecification objects
PartnershipManagement.PartnershipSpecificationApipatchPartnershipSpecificationPATCH /partnershipSpecification/{id}Updates partially a PartnershipSpecification
PartnershipManagement.PartnershipSpecificationApiretrievePartnershipSpecificationGET /partnershipSpecification/{id}Retrieves a PartnershipSpecification by ID

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.