kadalu / moana

Moana is a frontend for the Kadalu Storage / GlusterFS. Moana provides tools for setting up and managing the Kadalu Storage / Gluster pools.
GNU General Public License v3.0
18 stars 7 forks source link

New API to check if at least one user exists #257

Closed aravindavk closed 1 year ago

aravindavk commented 1 year ago

API is GET /api/v1/user-exists Return 200 if at least one user already exists. Return 204 if no user exists.

GET /api/v1/users is based on logged-in user's role so will not list all the users. This API is helpful if a Web based management console wants to show user creation screen if no user exists.