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

feat: add new api "notebook" #17

Closed
wants to merge 2 commits into from

Conversation

InertGas01
Copy link

> curl -X GET http://127.0.0.163:8000/notebook/User_Guide
Shows the content of note "User_Guide".
"/<Title>/ Show the content of the note with title <Title>."

> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/Content
If note "new_note_title" doesn't exist, create it with content "Content".
Otherwise, change the content of note "new_note_title" from "content" to "Content".

> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/append/can't
> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/append/contain
> curl -X POST http://127.0.0.163:8000/notebook/new_note_title/append/whitespaces.
Append " can't", " contain", " whitespaces." respectively to the content of note "new_note_title".

> curl -X GET http://127.0.0.163:8000/notebook/new_note_title
Shows the content of note "new_note_title".
"Content can't contain whitespaces."

@@ -1,3 +1,4 @@
//nolint:dupl
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase branch and remove this line.

@@ -1,3 +1,4 @@
//nolint:dupl
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase branch and remove this line.

@InertGas01 InertGas01 closed this Jan 2, 2025
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

Successfully merging this pull request may close these issues.

2 participants