Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
Table of Contents
maxlevel1

Anchor
Overview
Overview

Overview

Universal Controller supports the following RESTful-based web services for Business Service operations, which are listed alphabetically on this page.

Formatting specifications for each web service, including details about property requirements, are provided.

Anchor
Create a Business Service
Create a Business Service

Create a Business Service


Description

URI

HTTP Method

POST

Description

Creates a Business Service.

Example URI

http://localhost:8080/uc/resources/businessservice

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

Example Request

See Create a Business Service: Example Request, below.

Business Service Properties

See Business Service Properties 63543283, below.

Example Response

  • Status 200 /OK
    Successfully created the Business Service with sysId {sysId}.

Anchor
Create a Business Service Example Request
Create a Business Service Example Request

Create a Business Service: Example Request

XML Request

JSON Request


Expand
titleXML Request


 <businessService retainSysIds="true">
	<description>1</description>
	<name>test</name>
	<sysId>e3a0d7b81f904c8fa4ae55cde6d58665</sysId>
</businessService>




Expand
titleJSON Request


{
  "description": 1,
  "name": "test",
  "retainSysIds": true,
  "sysId": "e3a0d7b81f904c8fa4ae55cde6d58665"
}



Anchor
Business Service Properties
Business Service Properties

Business Service: Properties

Property

UI Field Name

Description

Specifications

Required

Anchor
description - CBS
description - CBS
description

Description

User-defined; description of this record.


N

Anchor
exportReleaseLevel - CBS
exportReleaseLevel - CBS
exportReleaseLevel

n/a

Universal Controller release that the record was exported from.

read onlyN

Anchor
exportTable - CBS
exportTable - CBS
exportTable

n/aRecord table information.read onlyN

Anchor
name - CBS
name - CBS
name

Name

Name used within the Controller to identify this Business Service.

Maximum 40 alphanumerics.

Y

Anchor
retainSysIds - CBS
retainSysIds - CBS
retainSysIds

n/a

Specification for whether or not the Create a Business Service web service will persist the sysId property.

  • If retainSysIds="true" and sysId is included in the request/response, sysId will be persisted to the database.
  • If retainSysIds="false" and sysId is included in the request/response, sysId will be ignored; it will be autogenerated by the Controller.
Note
titleNote

In XML web services, retainSysIds is specified as an attribute in the <businessService> element.


Valid values: true/false (default is true).

N

Anchor
sysId - CBS
sysId - CBS
sysId

n/a

System ID field in the database for this Business Service record.

Persisted only if retainSysIds is set to true.

N

Anchor
Delete a Business Service
Delete a Business Service

Delete a Business Service


Description

URI

HTTP Method

DELETE

Description

Deletes a Business Service.

URI Parameters

See Delete a Business Service: URI Parameters, below.

Example URI

http://localhost:8080/uc/resources/businessservice?busserviceid=77171434c0a801c9016d5b2b5d17ddee

Example Response

  • Status 200 /OK
    Business Service deleted successfully.
  • Status 400 /Bad Request
    Mutual exclusion violation. Cannot specify busservicename and bussserviceid at the same time.
  • Status 404 /Not Found
    A business service with {name/id} "test" does not exist.

Anchor
Delete a Business Service URI Parameters
Delete a Business Service URI Parameters

Delete a Business Service: URI Parameters

Parameter

Description

Specifications

Required

Mutually Exclusive With

busserviceid

ID used within the Controller to identify this Business Service.

String; URI parameter.

Y
(unless busservicename
is specified)

busservicename

busservicename

Name used within the Controller to identify this Business Service.

String; URI parameter.

Y
(unless busserviceid
is specified)

busserviceid

Anchor
List Business Services
List Business Services

List Business Services


Description

URI

HTTP Method

GET

Description

Retrieves information on all Business Services.

Example URI

http://localhost:8080/uc/resources/businessservice/list

Authentication

HTTP Basic

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

See List Business Services: Example Response, below.

Response Properties

See Business Service Properties 63543283.

Anchor
List Business Services Example Response
List Business Services Example Response

List Business Services: Example Response

XML Request

JSON Request


Expand
titleXML Request
<businessServices>
	<businessService exportReleaseLevel="7.2.0.0" exportTable="ops_generic group" version="1"> <description /> <name>bus service 1</name> <sysId>639d90bf8b61479191f46b1e524ac916</sysId> </businessService> <businessService exportReleaseLevel="7.2.0.0" exportTable="ops_generic group" version="4"> <description/> <name>bus service 2</name> <sysId>0ff4a7bafa0441a9b1a57b6451344ab6</sysId> </businessService> <businessService exportReleaseLevel="7.2.0.0" exportTable="ops_generic group"" version="1"> <description/> <name>bus service 3</name> <sysId>2822fa2848de438c97167bfa1d7a633c</sysId> </businessService> <businessService exportReleaseLevel="7.2.0.0" exportTable="ops_generic group" version="1"> <description/> <name>bus service 4</name> <sysId>ff4b77d628ae4bc78c78f383bf1265b0</sysId> </businessService> </businessServices>




Expand
titleJSON Request
[
  {
  "description": null,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_generic_group",
"name": "bus service 1", "sysId": "639d90bf8b61479191f46b1e524ac916", "version": 1 }, { "description" " null,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_generic_group",
"name": "bus service 2", "sysId": "0ff4a7bafa0441a9b1a57b6451344ab6", "version": 4 }, { "description": null,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_generic_group",
"name": "bus service 3", "sysId": "2822fa2848de438c97167bfa1d7a633c", "version": 1 }, { "description": null,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_generic_group",
"name": "bus service 4", "sysId": "ff4b77d628ae4bc78c78f383bf1265b0", "version": 1 } ]


Anchor
Modify a Business Service
Modify a Business Service

Modify a Business Service


Description

URI

http://host_name/uc/resources/businessservice

HTTP Method

PUT

Description

Modifies the Business Service specified by the sysId.

Example URI

http://localhost:8080/uc/resources/businessservice

Consumes Content-Type

application/xml, application/json

Produces Content-Type

n/a

Example Request

See Modify a Business Service: Example Request, below.

Business Service Properties

See Business Service Properties 63543283.

Example Response

  • Status 200 /OK
    Successfully updated the business service with sysId <sysId> to version <version>.

Anchor
Modify a Business Service Example Request
Modify a Business Service Example Request

Modify a Business Service: Example Request

XML Request

JSON Request


Expand
titleXML Request
 <businessService>
	<description>1</description>
	<name>test</name>
	<sysId>e3a0d7b81f904c8fa4ae55cde6d58665</sysId>
</businessService>



Expand
titleJSON Request
{
  "description": 1,
  "name": "test",
  "sysId": "e3a0d7b81f904c8fa4ae55cde6d58665"
}


Anchor
Read a Business Service
Read a Business Service

Read a Business Service

URI

HTTP Method

GET

Description

Retrieves information on a specific Business Service.

URI Parameters

See Read a Business Service: URI Parameters, below.

Example URI

Consumes Content-Type

n/a

Produces Content-Type

application/xml, application/json

Example Response

See Read a Business Service: Example Response, below.

Business Service Properties

See Business Service Properties 63543283.

Anchor
Read a Business Service URI Parameters
Read a Business Service URI Parameters

Read a Business Service: URI Parameters

Parameter

Description

Specifications

Required

Mutually Exclusive With

busserviceid

ID used within the Controller to identify this Business Service.

String; URI parameter.

Y
(unless busservicename
is specified)

busservicename

busservicename

Name used within the Controller to identify this Business Service.

String; URI parameter.

Y
(unless busserviceid
is specified)

busserviceid

Anchor
Read a Business Service Example Response
Read a Business Service Example Response

Read a Business Service: Example Response

The retainSysIds and version properties are specified as attributes in XML.

The exportReleaseLevel and exportTable properties are specified as attributes in XML.

XML Response

JSON Response


Expand
titleXML Response
<businessService exportReleaseLevel="7.2.0.0" exportTable="ops_generic group" retainSysIds="true"version="1"> <description>1</description> <name>test</name> <sysId>e3a0d7b81f904c8fa4ae55cde6d58665</sysId> </businessService>



Expand
titleJSON Response
{
  "description": 1,
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_generic_group",
"name": "test", "retainSysIds": true, "sysId": "e3a0d7b81f904c8fa4ae55cde6d58665", "version": 1 }


...