so i need to create a rest endpoint that basically creates an entry in the database, a address token when the customer is initialised. I have two possible endpoints:
POST - customer/address-token - this creates a address for a user
POST - customer/initialise -
im thinking should i use the former or latter? I have read a few topics on this, whereby the latter is a termed a controller resource type?
CodePudding user response:
I guess the first form is better and more intuitive to know what are do.
POST - customer/address-token - this creates a address for a user