-
-
Notifications
You must be signed in to change notification settings - Fork 46
User Profile
Sayem Hossain edited this page Nov 15, 2019
·
1 revision
PUT /api/v1/profiles/user/{username} HTTP/1.1
Host: localhost:8080
Authorization: Bearer 810108a4-e375-4914-9186-d11512dbcf36
Content-Type: application/json
{
"name":"Sayem Hossain",
"birthday": "2018-01-01",
"gender": "male",
"photo": "/images/c7e1c247-ef23-4b21-9243-927568bc7e45",
"bloodGroup" : "O_POSITIVE",
"lastDonated" : "2018-07-21",
"address":{
"flat": "23",
"floor": 2,
"house": "34/3",
"road": "Road 42",
"village": "",
"area" : "dhanmondi",
"postOffice": "dhanmondi",
"postCode": "1209",
"policeStation": "dhanmondi",
"upazila": "dhanmondi",
"district": "dhaka",
"division": "Dhaka",
"country": "Bangladesh"
}
}
Get own profile information.
GET /api/v1/profiles/user/{username} HTTP/1.1
Host: localhost:8080
Authorization: Bearer 810108a4-e375-4914-9186-d11512dbcf36
Response: Profile object, Json sample is exactly like above