absmach / magistrala-ui

UI Repository for Magistrala IoT
9 stars 15 forks source link

[FEATURE] Display group `parentID` #43

Closed rodneyosodo closed 8 months ago

rodneyosodo commented 8 months ago

Is there an existing feature request for this?

Is your feature request related to a problem? Please describe.

I'm not able to see the parentID of groups I have created

Describe the feature you are requesting, as well as the possible use case(s) for it.

To be able to view the parentID of a group

Indicate the importance of this feature to you.

Anything else?

curl -iX GET -H "Authorization: Bearer $USER_TOKEN" "http://localhost:9002/groups/$GROUP_ID"

HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 18 Dec 2023 09:44:02 GMT
Content-Length: 257

{"id":"36c1c3ac-9828-45b2-9887-391698447785","owner_id":"194ce330-0429-47aa-91bd-1054a8b3eec8","parent_id":"cd495d8d-2e9d-4dc1-87a5-33e43e0ed86b","name":"G3","created_at":"2023-12-18T09:30:37.639803Z","updated_at":"0001-01-01T00:00:00Z","status":"enabled"}

image-3