flask restful create functional endpoints