ManagementSystem/BACKEND/Modules/Admin/.api/client-create.http

35 lines
1.1 KiB
HTTP
Executable File

@token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAvYXBpL3YxL2FkbWluL2xvZ2luIiwiaWF0IjoxNzAzNTc0OTU4LCJleHAiOjE3MDM2NjEzNTgsIm5iZiI6MTcwMzU3NDk1OCwianRpIjoiSnQyZDJBT3lCR3MxV2JpUiIsInN1YiI6IjEiLCJwcnYiOiJkMmZmMjkzMzlhOGEzZTgyYzM1ODJhNWE4ZTczOWRmMTc4OWJiMTJmIn0.x-G1dLHaSkgGlhuhXubnKnnd1HAQ2KPUwPcdkEYe2-A
###
POST http://localhost:8000/api/v1/admin/client/create
Authorization: Bearer {{token}}
Content-Type: multipart/form-data; boundary=boundary123
Accept: Application/json
--boundary123
Content-Disposition: form-data; name="name"
Kai 1
--boundary123
Content-Disposition: form-data; name="password"
Pay@2023
--boundary123
Content-Disposition: form-data; name="country_code"
VN
--boundary123
Content-Disposition: form-data; name="email"
kai.t1@apactech.io
--boundary123
Content-Disposition: form-data; name="phone"
01234567890
--boundary123
Content-Disposition: form-data; name="avatar"; filename="code.png"
Content-Type: image/png
< /mnt/c/Users/Administrator/Pictures/code.png
# Windows: C:/Users/{Username}/Pictures/logo.png
--boundary123--