Skip to content

Expose query as an endpoint #23

@kazhuravlev

Description

@kazhuravlev

This feature allows users to mark some query as available for api call. After user mark query as available for API call - he will receive an curl command with uniq query and with signed JWT token in header. This token will expired at specified (by user) time. Default - 1 month.

Tasks

  • Add public address to config. This address should contain a scheme (http/https), domain and port. Like that https://dbgatewway.example.com
  • Add ACL that enables this feature for all users
  • Add new handler to serve this queries
  • Add params to configure JWT tokens
  • Describe api docs. If applicable and possible - use this tool.

Example of ACL

{
	"user": "admin@example.com",
	"op": "expose-api-endpoint",
	"target": "*",
	"tbl": "*",
	"allow": true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions