drift-org / backend

2 stars 0 forks source link

Prize route and model added #47

Closed anjanbharadwaj closed 3 years ago

anjanbharadwaj commented 3 years ago

Contributors

@anjanbharadwaj

Relevant issue

44 #45

Summary of change

Added prize model & prize creation route.

Testing/Verification

Passed tests

curl --location --request POST 'localhost:8080/prize' \
-H 'Content-Type: application/json' \
--data-raw '{
    "name": "free drift hoodie",
    "description": "pick up your merch by calling 408-408-4084"
}'
anjanbharadwaj commented 3 years ago

Sure, I'll add a curl test, but also now that we have actual tests do we need to keep including these in our description? Seems a bit redundant. We should probably consider making a Postman team workspace to share manual tests there.

brandonLi8 commented 3 years ago

Sure, I'll add a curl test, but also now that we have actual tests do we need to keep including these in our description? Seems a bit redundant. We should probably consider making a Postman team workspace to share manual tests there.

No, not super necessary, but still good to do it e2e once. Ask @teekenzie but i think the Postman team won't work (smth about pricing happened with our presoroban workspace).

teekenzie commented 3 years ago

No, not super necessary, but still good to do it e2e once. Ask @teekenzie but i think the Postman team won't work (smth about pricing happened with our presoroban workspace).

I am 100% down to share a Postman workspace. However, last time I checked, my Postman team was bugging out due to the expiration of my trial pro account or something like that. I am absolutely down to try creating one again though.