Versions Compared

Key

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

For every single of operation on the entities use the following templates and provide sample REST notification POST calls.
It is assumed that the Pub/Sub uses the Register and UnRegister mechanisms described in the REST Guidelines reproduced below.

Anchor
_Toc404167115
_Toc404167115
REGISTER LISTENER POST /hub

Description :
Sets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. Subsequent POST calls will be rejected by the service if it does not support multiple listeners. In this case DELETE /api/hub/{id} must be called before an endpoint can be created again.
Behavior :
Returns HTTP/1.1 status code 204 if the request was successful.
Returns HTTP/1.1 status code 409 if request is not successful.

REQUEST

POST /api/hub
Accept: application/json

{"callback": "http://in.listener.com"}

RESPONSE

201
Content-Type: application/json
Location: /api/hub/42

{"id":"42","callback":"http://in.listener.com","query":null}

Anchor
_Toc404167116
_Toc404167116
UNREGISTER LISTENER DELETE hub/{id}

Description :
Clears the communication endpoint address that was set by creating the Hub.
Behavior :
Returns HTTP/1.1 status code 204 if the request was successful.
Returns HTTP/1.1 status code 404 if the resource is not found.

REQUEST

DELETE /api/hub/{id}
Accept: application/json

RESPONSE

204

Anchor
_Toc404167117
_Toc404167117
publish {EventTYPE} POST /listener

Description :
Provide the Event description
Behavior :
Returns HTTP/1.1 status code 201 if the service is able to set the configuration.

REQUEST

POST /client/listener
Accept: application/json

{
"eventType": "EventType",
"eventTime": "2014-09-27T05:46:25.0Z",
"eventId": "1562231",
"event":
{
EVENT BODY }
}

RESPONSE

201
Content-Type: application/json

Example see TMF REST Design Guidelines.

Anchor
_Toc203490686
_Toc203490686
Anchor
_Toc225613461
_Toc225613461
Anchor
_Toc225603250
_Toc225603250
Anchor
_Toc235288526
_Toc235288526
Anchor
_Toc404167118
_Toc404167118
Release History

 

Release Number

Date

Release led by:

Description

Release 0.7

11/09/2013

[email protected]
[email protected]
[email protected]
[email protected]

First Spec Jam in Paris.

Release 1.0

15/05/2014

[email protected]
[email protected]

Reformatted to Template 1.1

 

Anchor
_Toc396927082
_Toc396927082
Anchor
_Toc399512010
_Toc399512010
Anchor
_Toc399751811
_Toc399751811
Anchor
_Toc404167119
_Toc404167119
Contributors to Document

Veronique Mauneau

Orange

Jean-Luc Tymen

Orange

Pierre Gauthier

TM Forum

John Morey

Ciena

Cliff C Faurer

AMKB Cloud

 

© TM Forum 2015. All Rights Reserved