Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api Setup #3

Open
2 of 9 tasks
Xeimyn opened this issue Dec 3, 2024 · 0 comments
Open
2 of 9 tasks

Api Setup #3

Xeimyn opened this issue Dec 3, 2024 · 0 comments

Comments

@Xeimyn
Copy link
Owner

Xeimyn commented Dec 3, 2024

Public (no auth)

Endpoint returns
/thoughts list of public thoughts title(STRING), description(STRING), timestamp(INT), edited(BOOL)
/thought(title) gets thought content by title

Private (Auth)

Endpoint returns
/all list of all thoughts
/adminThought gets thought content by title (includes private ones)
/add(title,description,html,css) adds a new thougt ()
/update(title,description,html,css edits thought with new content
/private(title) private thought by title
/publish(title) publishes thought by title
/delete(title) delets thought by title

Auth is done via HTTP Basic Auth

Tech:

  • FastAPI
  • Sqlite
  • Sqlite ORM (tbd)

TODO:

  • thoughts
  • thought
  • all
  • adminTought
  • add
  • update
  • private
  • publish
  • delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant