merchant-center-application-kit icon indicating copy to clipboard operation
merchant-center-application-kit copied to clipboard

[Idea] Provide a package to help setting up an "external API" server

Open emmenko opened this issue 4 years ago • 2 comments

It would be helpful to have a package that takes care of most of the setup that an "external API" server would need to work with Custom Applications.

For example, including the JWKs middleware, extracting useful fields from the token, etc.

This would also help with migrations for the API versioning.

  • [x] Express-like middleware for authenticating the Bearer token
  • [x] JSON logger
  • [ ] Prometheus setup
  • [ ] Lightship (for Kubernetes) setup
  • [ ] Base express server with minimal setup

emmenko avatar Apr 16 '20 19:04 emmenko

Maybe just an express middleware, then maybe hapi plugin etc exposing certain things on the request would help plugging things together and getting started. A lot of that cruft we could actually steal from promster which works with many servers by now. Alternatively it could also be a complete server but then that could also build on the previous building blocks. Depends a bit on how much existing infrastructure Custom Apps on the server integrate with or if they start from scratch.

tdeekens avatar Apr 16 '20 20:04 tdeekens

Keeping the idea, with the low priority.

mmaltsev-ct avatar Mar 14 '22 09:03 mmaltsev-ct