Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
68 stars 23 forks source link

Adding description to server archetype #73

Closed da-ekchajzer closed 1 year ago

da-ekchajzer commented 2 years ago

Problem

In order to identify the nature of each server archetypes we should provide a small text that describe it.

Solution

v1/server/all_default_models should return the description and the identifier that will be used in the request. We could also add other attributes that describes the archetype, year for instance.

Implementation

{
   "archetype-1": {
      "description" : "description",
      "year": 2019
   },
   "archetype-2": {
      "description" : "description",
      "year": 2019
   },
   "archetype-3": {
      "description" : "description",
      "year": 2019
   },
}