http://host/register/guid GET ------------------------------------------ Return JSON { result:bool; prefix:string; }
2 Get the PIN for different type user
http://host/PINs GET ------------------------------------------ Return JSON { collect_monitoer_PIN:string; disposal_monitor_PIN:string; leaners_hangers_PIN:string; assessments_PIN:string; admin_PIN:string; } 3 Get the applicant list. http://host/applicants GET ------------------------------------------ Return JSON { applicants:Arrary { name:string; ID:id; ??? not sure if we need ID or not. } }
4 Get contractor list.
http://host/contractor GET ------------------------------------------ Return JSON { contractor:Arrary { name:string; ID:id; ??? not sure if we need ID or not. } }
5 Get debris Type list
http://host/debris GET ------------------------------------------ Return JSON { debris:Arrary { name:string; ID:id; ??? not sure if we need ID or not. } } 6 Get subcontractor list. http://host/subcontractor GET ------------------------------------------ Return JSON { subcontractor:Arrary { name:string; ID:id; ??? not sure if we need ID or not. } } 7 Upload JSON file http://host/upload POST http head { upload_type:enum; 1,2,3,4,5 = collect_monitoer,disposal_monitor,leaners_ hangers,assessments,photo } upload Body {JSON file} or Photo ------------------------------------------ Return JSON { result:bool; message:string; }