tarantool / tarantool/http

method to remove/reset/reload routes

Open
#150 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Lua
Stars
81
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Would be nice to have a method to remove or reset already registered routes as part of public http API. Possible scenarios of application:

  1. handlers reload for e.g. in case of application code upgrade
  2. live coding for e.g. i'm working on application that accepts webhooks and to iterate fast I setup webhook and traffic tunneling via ngrok to my localhost, then I start tarantool with httpd server and write and debug handler in live mode - write code, trigger webhook, write next version, trigger webhook etc.
  3. different maintenance scenarios e.g. degrading an API to allow only reads and disabling all write methods

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the public HTTP API and the existing route-registration behavior. Clarify whether removal, reset, and reload are separate operations and define how handlers and read/write routes should behave in each scenario; done means the API contract and expected behavior are settled and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.