Conversation
|
Hi @f18m, thanks a lot for the proposal! Now, I must say there is something I actually don't like about this proposal: The I was thinking about a more integrated
What do you think @f18m ? |
Yeah sorry about that; consider the code is 99% AI generated. The reason for me to open this PR is to get feedback about the form/format of the HTTP POST.
I basically stopped at point 3 and wanted to get your feedback.
see my question #3 above. WDYT ?
will do
yep all good ideas. I have no clue how to implement them in Rust though, as it's not part of my expertise. Will see if Copilot/Claude can create at least a good starting proposal
thanks for fast feedback! |
From my side, we currently don't need a versioned API. Also the "CLI API" is not versioned - and yes, we may break compatibility with newer rustic versions, but IMO this is ok, currently.
Yes, of course!
I think we should go with normal JSON payload for the commands. However, there might be a command like
Yes, like this, but as written above, I would leave the config-update to a single command and have a quite slim API for normal command calling where this precedence is no topic as only the already loaded config is taken. |
add lots of FIXMEs as reminder
|
Hi @aawsome ,
So it turns out that to implement any server in Rustic (the same would apply if e.g. instead of an HTTP server we attempted to build a gRPC server or whatever other server), there is some refactor involved. Refactor Plan (shared backup core for CLI + HTTP)Targets
Steps
NotesAddress full app-wide decoupling later:
So now the big question: WDYT about that? |
|
@aawsome ping on above msg :) |
Submit first draft of API for a "serve" command.
See #1714 for full context