This is for test only
curl --location --request POST '/users/create/' \
--form 'password="password"' \
--form 'email="user email"' \
--form 'name="user name"'
curl --location --request GET '/users/'
curl --location --request POST '/tags/create/' \
--form 'name="tag name"'
curl --location --request GET '/tags/'
curl --location --request POST '/questions/create/' \
--form 'title="the question title"' \
--form 'text="the question text will be here"' \
--form 'create_date="2022-02-02T19:00"' \
--form 'user="user_id"' \
--form 'tags="tag_id"' \
--form 'tags="tag_id"'
curl --location --request GET '/questions/'
curl --location --request POST '/answers/create/' \
--form 'text="the answer here"' \
--form 'create_date="2022-02-02T19:00"' \
--form 'user="user_id"' \
--form 'question="question_id"'
curl --location --request GET '/answers/'
curl --location --request POST '/comments/create/' \
--form 'text="this is a comment for Question 1"' \
--form 'user="1"' \
--form 'belong_to="1"' \
--form 'question="1"'
curl --location --request POST '/comments/create/' \
--form 'text="this is a comment for answer 1"' \
--form 'user="1"' \
--form 'belong_to="2"' \
--form 'answer="1"'
curl --location --request GET '/comments/' \
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.