Skip to content

Implement Admin APIs for Tenants #139

@k1ch

Description

@k1ch

Feature Overview

Is your feature request related to a problem? Please describe.
As an admin usher user, I would like to have APIs available to manage tenants.

API Design

Status URL Auth Params Notes
GET /tenants bearerAdminAuth optional: query param List tenants
POST /tenants bearerAdminAuth Tenant attributes: body Create a new tenant
TODO GET /tenants/{key} bearerAdminAuth optional: query param Get single tenant
TODO PATCH /tenants/{key} bearerAdminAuth Tenant attributes: body Update existing tenant
TODO DELETE /tenants/{key} bearerAdminAuth Tenant key: path, required Delete a tenant

Implementation Notes

  • The source files should be placed in the src/api_endpoints/tenants folder.

Questions

  1. Regarding the PATCH API, besides the tenant key and timestamps, should there be any restrictions on what can be updated for a tenant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: adminAdministration related functionalityenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions