fasten-project / fasten

Analyse package dependency networks at the call graph level
https://www.fasten-project.eu
Apache License 2.0
91 stars 28 forks source link

Simplify REST-API Classes #404

Closed gdrosos closed 2 years ago

gdrosos commented 2 years ago

Description

Simplified the REST-API Plugin structure by removing all the API Service and API Service Implementation classes, and moving the implementation directly to the initial API corresponding class.

Motivation and context

Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here.

Currently, the REST-API plugin was unnecessarily complex. To be more precise, the current implementation included for each endpoint:

To adduce an example: the PackageApi, PackageApiService and PackageApiServiceIml classes have been merged into a single PackageApi class.

Testing

Please describe in detail how you tested your changes.