api-collab / api-collab-server

0 stars 2 forks source link

API Breaking Change - All Endpoint returning lists should have a single schema #47

Closed kand617 closed 6 years ago

kand617 commented 6 years ago

We currently have /apis returning a response as

{
    "apis": []
}

This has a a major drawback. We have to create a new class for each type of list element. For example, if we had a list of versions, we would have to create a new class to with a field named versions.

Suggestion: Keep the containers generic.

{
    "items": []
}

@sudhirtumati your thoughts?

kand617 commented 6 years ago

Resolved by PR #49