Get given.received assignments in API controller,routes, clientserver