Open SEAPUNK opened 8 years ago
I'm going to apply a pattern to how path parameters are managed.
Say we have a path: /rack/:rack_id/change_barcode/:new_barcode And let's say we have a function for it: changeRackBarcode()
/rack/:rack_id/change_barcode/:new_barcode
changeRackBarcode()
What we'll do here is the following:
changeRackBarcode(rack_id, new_barcode, data, ctx)
It makes sense, and is definitely a good pattern to follow.
I'm going to apply a pattern to how path parameters are managed.
Say we have a path:
/rack/:rack_id/change_barcode/:new_barcode
And let's say we have a function for it:changeRackBarcode()
What we'll do here is the following:
changeRackBarcode(rack_id, new_barcode, data, ctx)
It makes sense, and is definitely a good pattern to follow.