Patent ID: 8898658

Claim:
A method comprising: sending, by a director network device, a message to a first application programming interface (API) of at least one agent network device, wherein the first API includes a provisioning API configured to provision the message to a second API, wherein the message includes instructions configured to enable the second API in the at least one agent network device to extend itself, and wherein the self-extension of the second API includes adding web services functions; and delivering, by the director network device, dynamic language code to the second API via the provisioning API, wherein the dynamic language code defines a contract between the director network device and the at least one agent network device using the added web services functions, wherein the at least one agent network device includes a first agent network device and a second agent network device, and wherein the contract defines parameters and error handling in a first web service application in the first agent network device and a second web service application in the second agent network device.