Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Systems: Get localized names and descriptions via API #589

Open
1 task done
maicol07 opened this issue Jul 20, 2020 · 2 comments
Open
1 task done

Systems: Get localized names and descriptions via API #589

maicol07 opened this issue Jul 20, 2020 · 2 comments

Comments

@maicol07
Copy link

maicol07 commented Jul 20, 2020

Feature request

  • I confirm that this is a feature request rather than a question.

What problem does this feature solve?

The systems API endpoint returns ids, not localized names and descriptions

What does the proposed API look like?

See above

How should this be implemented in your opinion?

Using the localized files, add to the json files the localized names and descriptions of each system (keeping the id)

Are you willing to work on this yourself?**

No, as I don't know Vue

@maicol07 maicol07 changed the title Systems: Get localized names instead of IDs via API Systems: Get localized names and descriptions via API Jul 20, 2020
@juliomrqz
Copy link
Owner

Hello @maicol07. I don't quite understand what's your feature request. Can be more clear about it? Thanks.

You may want to read this announcement first #551.

@maicol07
Copy link
Author

At the moment, with 0.5 the api call to the systems endpoint is like this:

Call to https://demo.statusfy.co/static/content/api/v0/systems.en.json

Response:

[
 {
   "name": "cdn",
   "status": "partial-outage",
   "order": 1
 },
 {
   "name": "conversions",
   "status": "partial-outage",
   "order": 2
 },
 {
   "name": "site-delivery",
   "status": "operational",
   "order": 3
 },
 {
   "name": "api",
   "status": "partial-outage",
   "order": 4
 }
]

What I request is to edit this to:

 {
   "id": "cdn",
   "name": "CDN",
   "status": "partial-outage",
   "order": 1
 },
 {
   "id": "conversions",
   "name": "Conversions",
   "status": "partial-outage",
   "order": 2
 },
 {
   "id": "site-delivery",
   "name": "Site delivery",
   "status": "operational",
   "order": 3
 },
 {
   "id": "api",
   "name": "API",
   "status": "partial-outage",
   "order": 4 
 }
]

So the translated name for each system. At the moment changing the locale in the endpoint does not make any difference.

The name field would be the translated name for that system (added in locale files) while the id one would be the system id added in the config file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants