question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to create seperate API for Admin and Production (v5)

See original GitHub issue

Using v5 KeystoneJS

Aforementioned, I’ve come across a scenario which requires me have different endpoints for the Admin UI / GraphiQL Playground and the actual API to be served as endpoint in production. We need this due to the fact that we are using a custom middleware (as Authentication Guard) to filter out unauthenticated requests before they can even reach the resolvers that actually process any incoming API requests.

For example:

Endpoint for Admin UI: /admin/keystone Endpoint for Production: /api/v1

Can anyone help?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gautamsicommented, Nov 24, 2019

you can always run another instance of keystone connected to same database and mount admin-ui in that instance which listen to a separate port or internal IP instead of default.

1reaction
Vultrazcommented, Nov 23, 2019

You should be able to set those with the adminPath and apiPath AdminUI App config options.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Admin API How-To Guides Overview - DocuSign Developers
Discover how to use the DocuSign Admin API to automate and programmatically execute administrative tasks for your organization's DocuSign accounts.
Read more >
Ghost Admin API Documentation
Admin API keys can be obtained by creating a new Custom Integration under the Integrations screen in Ghost Admin. Keys for individual users...
Read more >
What's new in API Connect V5 for IBM Cloud
APIs are now published inside a Product . Products provide a method by which you can group APIs into a package that is...
Read more >
API (v5) - Pinterest Developers
Generate an OAuth access token by using an authorization code or a refresh token. IMPORTANT: You need to start the OAuth flow via...
Read more >
Manage API Keys - TechDocs - Broadcom Inc.
As a Portal Admin and API owner, you can define more granular access within a single application by adding API key/secret pairs for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found