AtLAS-WVU / AtLAS-server

An open-source server application for dispatching, receiving, and tracking AtLAS (Autonomous Low Altitude Service) delivery drones.
https://deliverwithatlas.com/
GNU General Public License v3.0
1 stars 2 forks source link

Pending Requests #13

Closed owiegand closed 6 years ago

owiegand commented 6 years ago

GET Receives:

username 
token

returns

success true/false
debug: "debug message only when the request fails"
pending_requests: "only when the request is successful. See comment below for format"
owiegand commented 6 years ago

JSON Format that is returned during a correct response:

{  
   "success":true,
   "pending_requests":[  
      {  
         "requestID":"1234131"
         "sender_username":"test",
         "receiver_username":"owiegand",
         "can_we_approve":false,
         "delivery_message":"12312",
         "request_date":"February 19, 2018, 1:51 pm"
      },
      {  
         "requestID":"1234131"
         "sender_username":"owiegand",
         "receiver_username":"test",
         "can_we_approve":true,
         "delivery_message":"testing",
         "request_date":"February 19, 2018, 1:50 pm"
      }
   ]
}
owiegand commented 6 years ago

Finished in 21c7454d45df76228f1e08e93129b3f0fc1d2f37