Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • C carbon-device-mgt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 18
    • Merge requests 18
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • entgraentgra
  • carbon-device-mgt
  • Merge requests
  • !900

Implement multi-tenant api publishing

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Vigneshan requested to merge vigneshan/carbon-device-mgt:master into master Jun 08, 2022
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 6

Purpose

To publish APIs to multiple tenants which are defined via a config inside webapp-publisher-config.xml file.

Approach

  • Updated the WebappPublisherConfig.java file to read additional config for the tenant which the APIs should be published for.
  • Modified the logic inside the APIPublisherServiceImpl class to read the above-defined configs and publish them to relevant tenants.
  • Update the webapp-publisher-config.xml.j2 to fetch config from deployment.toml and patch it inside webapp-publisher-config.xml file.

Related MRs

  • https://gitlab.com/entgra/iots-community-with-updates/-/merge_requests/19
  • https://gitlab.com/entgra/proprietary-product/-/merge_requests/16
Edited Jun 08, 2022 by Vigneshan
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: master