Owner Login
curl -X POST <http://localhost:8080/api/login/owner> -u [email protected]:123
Create New Owner Account
- owner creates new owner account.
- Replace token with the token you have gotten from the owner login.
curl -X POST <http://localhost:8080/api/owner-account-manager> \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer token" \\
-d '{
"firstName": "f2",
"secondName": "s2",
"thirdName": "t2",
"email": "[email protected]",
"phoneNumber": "2",
"password":"123"
}'
Get My Profile
- owner get his own profile details.
- Replace token with the token you have gotten from the owner login.
curl -X GET <http://localhost:8080/api/owner-account-manager> \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJzZWxmIiwic3ViIjoiMSIsImV4cCI6MTcxODAyMjQ1NiwiaWF0IjoxNzE4MDE4ODU2LCJzY29wZSI6Ik9XTkVSIn0.YG4YmIHkFksoawQMkoI3XEzqmtB4o1RjLuAcQAkyJqPcv5ydGwKAkpwfFH3Gevy0kS6auGWv-C3SXxiBdxnkn23wMmu1zSWTYAoj17plnqdyrFr0FXWj6sJPslIiSCWGkiB_p25T7uWONKZQ9PTaayVLKjlOzQNSqN9luQX--O7s-5Oxbq9uPLEtiD55ePcAnoxyfFQn1SMykOHB7b0Dpex3s42QbmSxfk5jB_yTqTx4RPuaaFf9xQk-xKog1P2zDg9jLpV9pyLsxaGVScF__kWiTUAbWCiXT7Vmtrgiw27w85uhH6NNUmaVDFI6N7juiCKGjDNLbYNirNUsrNuZ1A"
Get All Owners
- owner lists all owners in the system.
- Replace token with the token you have gotten from the owner login.
curl -X GET <http://localhost:8080/api/owner-account-manager/owners> \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer token"
Update Owner Account
- owner updates his own account.
- Replace token with the token you have gotten from the owner login.
curl -X PUT <http://localhost:8080/api/owner-account-manager> \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer token" \\
-d '{
"firstName": "updated f1",
"secondName": "updated s1",
"thirdName": "updated t1",
"email": "[email protected]",
"phoneNumber": "updated 1"
}'
Change Owner Account Password