test api handler
use getRequestURI
#1 add photo resource
#1 add context msg
revise response msg
fix incorrect index
enhance error handling