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

Test results LoganSchwarz #7

Open
loganjsch opened this issue Nov 9, 2023 · 4 comments
Open

Test results LoganSchwarz #7

loganjsch opened this issue Nov 9, 2023 · 4 comments

Comments

@loganjsch
Copy link

No description provided.

@loganjsch
Copy link
Author

Flow 1.
I can see that the socials/add doesn't exit on your Render docs, so may need to update example flows.

Curl:
curl -X 'POST'
'https://peak-peeps.onrender.com/users/create_account'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'
-H 'Content-Type: application/json'
-d '{
"username": "calpolySteve"
}'
Response:
"OK"

Curl
curl -X 'POST'
'https://peak-peeps.onrender.com/users/add_follower'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'
-H 'Content-Type: application/json'
-d '{
"user_to_update": {
"username": "calpolySteve"
},
"follower_to_add": {
"username": "Biker_Dave"
}
}'
Response:
Internal Server Error

I might have done something wrong but example flow 1 ends here.

@loganjsch
Copy link
Author

Flow 2.

Curl:
curl -X 'GET'
'https://peak-peeps.onrender.com/routes/popular'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'

Response:
[
"Steve",
"Steve",
"Lucas Pierce",
"Steve"
]

These are bunch of names, should they be trail names?

Curl:
curl -X 'POST'
'https://peak-peeps.onrender.com/reviews/add'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'
-H 'Content-Type: application/json'
-d '{
"user_id": 1,
"route_id": 1,
"description": "WoOw So amazing!",
"rating": 5
}'
Response:
Internal Server Error

Flow ends here with error.

@loganjsch
Copy link
Author

Flow 3.
Curl:
curl -X 'POST'
'https://peak-peeps.onrender.com/routes/add'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'
-H 'Content-Type: application/json'
-d '{
"name": "Zac'''s special hike",
"user_id": 1,
"location": "nowheresbbville",
"coordinates": [
111,020
],
"length": 3,
"difficulty": 4,
"activities": "rock climbing"
}'

Response
{
"message": [
"['body', 111]: Expecting ',' delimiter: line 6 column 10 (char 111)"
],
"data": null
}
I suppose this is an error on my api parameter calls, but shouldn't coordinates have long and lat?

@loganjsch
Copy link
Author

New Flow 1.
I am nefarious and want people off my trail. So I make a new account, find the highest rated trail, and all rate the trail poorly.
Curl:
curl -X 'POST'
'https://peak-peeps.onrender.com/users/create_account'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'
-H 'Content-Type: application/json'
-d '{
"username": "evilGuy"
}'
Response:
"OK"

Curl:
curl -X 'POST'
'https://peak-peeps.onrender.com/reviews/add'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'
-H 'Content-Type: application/json'
-d '{
"user_id": 3,
"route_id": 1,
"description": "So bad don'''t come!",
"rating": 1
}'
Curl:
Internal Server Error

New Flow 2.
I'm a Cal Poly student and want trail with my mom for mom's weekend. She wants a trail of medium difficulty, so I find that.
Curl:
Curlcurl -X 'GET'
'https://peak-peeps.onrender.com/routes/popular'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'
Response:
[
"Steve",
"Steve",
"Lucas Pierce",
"Steve"
]

This doesn't help I don't think, because its people names not trails.

New Flow 3.
I know I'm going to Germany in 3 days, and I have a German friend with hikes in Germany on his account. I want to hike right when I land. So I look on the app for trails under his account, but oh no! He doesn't have an account and it should let me know.
Curl:
curl -X 'GET'
'https://peak-peeps.onrender.com/routes/followers?friend_username=heinz_germanman'
-H 'accept: application/json'
-H 'access_token: PeepCoins123!'

Response:
Internal Server Error

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