marios-stam / Project_IOT

0 stars 0 forks source link

Issues w/ DB & routing #26

Closed frank20a closed 2 years ago

frank20a commented 2 years ago
  1. get_uncompleted_bounties_in_radius is not routed c125dbbcc5cf6165f4c798735effbf6dff77185b
  2. Need routes for the following in bounties b217468868b404d93fedc60d97422149be09f9ed
    • PUT /complete_bounty, calls complete_bounty(bounty_id, usr_id) IMPLEMENTED
    • PUT /accept_bounty, calls accept_bounty(bounty_id, usr_id) IMPLEMENTED
  3. Useless routings (comment ONLY THE ROUTES out... might be needed later. db_interface.py functions are used though) a5b6280b62582ad1ab9e3eccd78ee7ae3ab642bd
    • GET /bounties/ (No need for this specific API endpoint, use GET /bounties/get_all and get_uncompleted_bounties_in_radius)
    • PUT /bounties (No need for general API endpoint, replaced by accept/complete bounty)
  4. in /bounty/db_interface.py in complete_bounty() fix to return HTTP error code (see comment) b217468868b404d93fedc60d97422149be09f9ed
  5. in /bounty/db_interface.py in asign_bounty() fix to check for error code on get_bounty and return HTTP error code (see comments) b217468868b404d93fedc60d97422149be09f9ed
marios-stam commented 2 years ago

Implemented 1,2,3 at commit 8c94a553b8c4d05b862de0dd9627aef0f3931d04 You told me you are going to do the rest

frank20a commented 2 years ago

Everything good