cURL
curl --request POST \ --url https://serengo.zias.be/api/friends \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "friendId": "<string>" } '
{ "id": "<string>", "requesterId": "<string>", "addresseeId": "<string>", "status": "pending", "requester": { "id": "<string>", "username": "<string>", "profilePicture": "<string>" }, "addressee": { "id": "<string>", "username": "<string>", "profilePicture": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Friend request sent
pending
accepted
blocked
Show child attributes