friends api as one api and accept and reject apis as one api