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

[#160866787] Refactor UI #33

Merged
merged 1 commit into from Oct 9, 2018
Merged

[#160866787] Refactor UI #33

merged 1 commit into from Oct 9, 2018

Conversation

susanwere
Copy link
Owner

What does this PR do?

Implements feature for a user to view the most answered questions

Background Information

Implements feature for a user to view the most answered questions

Description of task to be completed

  1. Implements feature for a user to view the most answered questions
TEST API-endpoint HTTP-verb
User can register /api/v2/auth/registration POST
User can login /api/v2/auth/login POST
User can post a question /api/v2/questions POST
User can get all questions /api/v2/questions GET
User can get a question and answer to a specific question /api/v2/questions/1 GET
User can update a specific question /api/v2/questions/1 PUT
User can delete a specific question /api/v2/questions/1 DELETE
User can add an answer to a specific question /api/v2/questions/1/answer POST
User can update an answer to a specific question /api/v2/questions/1/answer/1 PUT
User can Mark an answer to a given specific question /api/v2/questions/1/answer/1 PUT

User Details For Registration

{
	"username":"your_username",
	"email":"your_email",
	"password":"your_pass",
	"confirmpass":"your_pass"
}

User Details For Login

{
	"username":"your_username",
	"password":"your_pass"
}

Details for Posting a question

{
	"title":"question_title",
	"body":"question_body"
}

Details for answering a question

{
	"body":"answer_body"
}

Details for updating an answer

{
	"body":"answer_body"
}

How to manually test?

  1. Clone or download the project
    Stackoverflow-Lite

  2. Navigate to the project directory and change branch to challenge_three_latest
    challenge_three_latest

  3. Copy .env_example credentials or content into .env file and update with postgresql environment variables or credentials

  4. Create a `virtual environment' and activate it.
    'virtualenv venv
    source venv/bin/activate
    pip install -r requirements.txt'

  5. Run migration
    python migrate.py

  6. Start the server
    flask run

  7. Use local host to access the endpoints or visit here

  8. To run tests, Run 'pytest' on terminal

What is the relevant pivotal tracker stories?
#160866787

@susanwere susanwere merged commit cb8bd57 into develop Oct 9, 2018
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.

None yet

1 participant