Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new endpoint for config #277

Closed
BogdanIrimie opened this issue Feb 8, 2024 · 2 comments
Closed

Add new endpoint for config #277

BogdanIrimie opened this issue Feb 8, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@BogdanIrimie
Copy link
Contributor

When the console service is configured topaz exposes a /api/v1/config endpoint with a JSON containing URLs to the endpoints it provides.

The topaz console is moving to a model where it can display multiple configs. To support this in Topaz we need to add a new endpoint e.g. /api/v2/config with the following format

[
  {
    "configType": "auto",
    "name": "<some_random_name_for_config>",
    "address": "https://localhost:8080/api/v2/config",
    "asertoDirectoryUrl": "https://localhost:9394",
    "authorizerServiceUrl": "https://localhost:8384",
    "authorizerApiKey": "",
    "directoryApiKey": "",
    "directoryTenantId": "",
    "asertoDirectoryReaderUrl": "https://localhost:9394",
    "asertoDirectoryWriterUrl": "https://localhost:9394",
    "asertoDirectoryModelUrl": "https://localhost:9394"
  }
]
@BogdanIrimie BogdanIrimie added the enhancement New feature or request label Feb 8, 2024
@BogdanIrimie
Copy link
Contributor Author

BogdanIrimie commented Feb 9, 2024

The format was updated to

{
  "readOnly": true,
  "configs": [
    {
      "configType": "auto",
      "name": "Topaz Config",
      "address": "https://localhost:4321/api/v2/config",
      "asertoDirectoryUrl": "https://localhost:9393",
      "authorizerServiceUrl": "https://localhost:8383",
      "authorizerApiKey": "",
      "directoryApiKey": "",
      "directoryTenantId": "",
      "asertoDirectoryReaderUrl": "https://localhost:9393",
      "asertoDirectoryWriterUrl": "https://localhost:9393",
      "asertoDirectoryModelUrl": "https://localhost:9393"
    }
  ]
}

@BogdanIrimie BogdanIrimie self-assigned this Feb 9, 2024
@gertd
Copy link
Member

gertd commented May 13, 2024

done

curl -s -k https://localhost:8080/api/v2/config | jq .
{
  "readOnly": true,
  "authenticationType": "anonymous",
  "configs": [
    {
      "configType": "auto",
      "name": "Topaz Config",
      "address": "https://localhost:8080/api/v2/config",
      "authorizerServiceUrl": "https://localhost:8383",
      "authorizerApiKey": "",
      "directoryServiceUrl": "https://localhost:9393",
      "directoryApiKey": "",
      "directoryTenantId": "",
      "directoryReaderServiceUrl": "https://localhost:9393",
      "directoryWriterServiceUrl": "https://localhost:9393",
      "directoryImporterServiceUrl": "https://localhost:9393",
      "directoryExporterServiceUrl": "https://localhost:9393",
      "directoryModelServiceUrl": "https://localhost:9393"
    }
  ]
}

@gertd gertd closed this as completed May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants