{"swagger":"2.0","info":{"version":"v1","title":"Stock API"},"basePath":"","paths":{"/api/profile":{"get":{"tags":["Api"],"operationId":"GetProfile","consumes":[],"produces":["text/plain","application/json","text/json"],"parameters":[],"responses":{"200":{"description":"Success","schema":{"$ref":"#/definitions/ResponseModel[IUserProfileFullAddress]"}}}},"post":{"tags":["Api"],"operationId":"EditProfile","consumes":["application/json-patch+json","application/json","text/json","application/*+json"],"produces":["text/plain","application/json","text/json"],"parameters":[{"name":"paramBody","in":"body","required":false,"schema":{"$ref":"#/definitions/UserProfile"}}],"responses":{"200":{"description":"Success","schema":{"$ref":"#/definitions/ResponseModel[IUserProfileFullAddress]"}}}}},"/.well-known/health":{"get":{"tags":["Home"],"operationId":"HealthChecks","consumes":[],"produces":["text/plain","application/json","text/json"],"parameters":[],"responses":{"200":{"description":"Success","schema":{"type":"string"}}}}}},"definitions":{"ResponseModel[IUserProfileFullAddress]":{"type":"object","properties":{"message":{"type":"string"},"responseData":{"uniqueItems":false,"type":"array","items":{"$ref":"#/definitions/IUserProfileFullAddress"}},"error":{"uniqueItems":false,"type":"array","items":{"type":"object"}}}},"IUserProfileFullAddress":{"type":"object","properties":{"fullName":{"type":"string"},"fisrtNameTh":{"type":"string"},"lastNameTh":{"type":"string"},"idCard":{"type":"string"},"dateOfBirth":{"type":"string"},"email":{"type":"string"},"phoneNumber":{"type":"string"},"streetAddress":{"type":"string"},"province":{"$ref":"#/definitions/AddressProvince"},"district":{"$ref":"#/definitions/AddressDistrict"},"subDistrict":{"$ref":"#/definitions/AddressSubDistrict"},"postalCode":{"type":"string"},"country":{"type":"string"}}},"AddressProvince":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"AddressDistrict":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"AddressSubDistrict":{"required":["id","name"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}},"UserProfile":{"required":["fisrtNameTh","lastNameTh","idCard","email","phoneNumber","dateOfBirth","streetAddress","provinceId","districtId","subDistrictId","postalCode"],"type":"object","properties":{"fullName":{"maxLength":255,"pattern":"^[ก-๙]*$","type":"string"},"fisrtNameTh":{"maxLength":255,"pattern":"^[ก-๙]*$","type":"string"},"lastNameTh":{"maxLength":255,"pattern":"^[ก-๙]*$","type":"string"},"idCard":{"maxLength":13,"pattern":"^(\\d{13})?$","type":"string"},"email":{"maxLength":100,"pattern":"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{1,})$","type":"string"},"phoneNumber":{"maxLength":30,"pattern":"^(\\+66|66|0)\\d{9}$","type":"string"},"dateOfBirth":{"format":"date","maxLength":20,"pattern":"^\\d{4}\\-(0[1-9]|1[012])\\-(0[1-9]|[12][0-9]|3[01])$","type":"string"},"streetAddress":{"type":"string"},"provinceId":{"type":"string"},"districtId":{"type":"string"},"subDistrictId":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"}}}},"securityDefinitions":{"Bearer":{"name":"Authorization","in":"header","type":"apiKey","description":"JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\""}},"security":[{"Bearer":[]}]}