i am using magento 2.1.1 php version 7.0
this is my payload and response.
i want to add customer token in the response and i am using following magento 2 api :
http://host/index.php/rest/default/V1/customers
Example (*) in the response i want to add seesion id in following response :
{
"id": 2278,
"group_id": 1,
"created_at": "2018-11-13 14:06:24",
"updated_at": "2018-11-13 14:06:24",
"created_in": "Default Store View",
"email": "[email protected]",
"firstname": "test",
"lastname": "lastName",
"store_id": 1,
"website_id": 1,
"addresses": [],
"disable_auto_group_change": 0
"session_id": "b5la2wrgxx00oqu83yuvqdthnqjv1tmv"
}
Hope you guys understand my problem
Magento\Customer\Model\AccountManagement
this is model where buisness logic is there andMagento\Customr\Api\AccountManagementInterface
this is interface. You can refer the Answer given by Ramkishan and accept the answer if that works.