Page tree

Versions Compared

Key

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

...

  • CRUD
    • get(serviceId)
    • add(Service)
    • update(serviceId, Service)
    • delete(serviceId)
  • Querying Catalog
    • getServices(page, perPage)
  • Search / Filtering
    • findService(path, operation, value)
    • findServices(path, operation, value, page, perPage)

Implementation

A Java-based implementation is available and can be used by applications as follows:

...

Alternatively, the Registration instance can be instantiated and populated directly for required configuration and data values.

to add a service registration:

Code Block
ServiceCatalog.add(registration);

to get a given Service:

Code Block
Service service = ServiceCatalog.get(serviceID);

to update a given service:


Code Block
ServiceCatalog.update(serviceID, registration);

to delete a given service:

Code Block
ServiceCatalog.delete(serviceID);


to get registered services as SCatalog:

Code Block
SCatalog catalog = ServiceCatalog.getServices(page, perPage);


to find a service for a given criteria:

Code Block
Service service = ServiceCatalog.findService(path, criteria, value);

to find services for a given criteria:

Code Block
SCatalog catalog = ServiceCatalog.findServices(path, criteria, value, page, perPage);