create function api.root() returns jsonb
language plpgsql
immutable set search_path = '' as $$
begin
return '{
"swagger": "2.0",
"info": {
"title": "Private API",
"version": "1.0.0",
"description": "This API is not publicly documented."
},
"paths": {}
}'::jsonb;
end; $$;
grant execute on function api.root () to anon, authenticated, service_role;
-- noqa: disable=all
alter role anon set pgrst.db_root_spec = 'api.root';
alter role authenticated set pgrst.db_root_spec = 'api.root';
alter role service_role set pgrst.db_root_spec = 'api.root';
-- noqa: enable=all
create function api.root() returns jsonb
language plpgsql
immutable set search_path = '' as $$
begin
return '{
"swagger": "2.0",
"info": {
"title": "Private API",
"version": "1.0.0",
"description": "This API is not publicly documented."
},
"paths": {}
}'::jsonb;
end; $$;
grant execute on function api.root () to anon, authenticated, service_role;
-- noqa: disable=all
alter role anon set pgrst.db_root_spec = 'api.root';
alter role authenticated set pgrst.db_root_spec = 'api.root';
alter role service_role set pgrst.db_root_spec = 'api.root';
-- noqa: enable=all