Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

server: implement json api layer #5

Closed
sripwoud opened this issue Dec 12, 2024 · 4 comments
Closed

server: implement json api layer #5

sripwoud opened this issue Dec 12, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@sripwoud
Copy link
Collaborator

sripwoud commented Dec 12, 2024

Instead of serving directly pre generated html documents, we want to serve the DB data as json and let the client web app build the pages.

Probably not too complicated as the handlers logic are already implemented
More like a big refactor, we need to change the response of these handlers.
We should stop returning rinja templates. E.g here, use of rinja::into_response
and send json responses instead.

the existing API seems to be documented as comments/docstrings already in each handler file.

@sripwoud sripwoud added the enhancement New feature or request label Dec 12, 2024
@sripwoud
Copy link
Collaborator Author

cc @adria0

@AtHeartEngineer
Copy link

@sripwoud I think making new endpoints such as /api/v1/profile or whatever might be a better option. At some point we would have to turn of the front end ran by freedit and switch to our own front end, but at least in this way we could keep a separation between the two while the work is being done on it.

The new front end while its in alpha could be at forum.pse.dev/new or something like that.

Just some thoughts.

@sripwoud
Copy link
Collaborator Author

Oh yes you are right that is better!

@sripwoud
Copy link
Collaborator Author

transferred to privacy-scaling-explorations#5

@sripwoud sripwoud closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants