Refactor new ReST endpoints to share more code rather than duplicating it

Description

We provide more and more new angular UIs which also requires implementing new ReST services. In order to provide useful error messages to the user a generic error object is returned in error scenarios. However each module is implementing these logic individually.
For example See Geocoder, Classification or Endpoints API.

These common functionalities should be consolidated and put either in opennms-web-api or if not reasonable in a "commons" or "shared" module.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Markus von Rüden May 29, 2019 at 8:31 AM

Good point. We may be able to put it there.
I changed the description to reflect that.

Just be aware, that at the moment we don't expose classes from opennms-web-api via custom.properties.

Benjamin Reed May 28, 2019 at 3:43 PM

Isn't that what opennms-web-api is supposed to be?

Details

Assignee

Reporter

Priority

PagerDuty

Created May 28, 2019 at 9:23 AM
Updated September 21, 2021 at 9:27 PM