Modified order of swift's endpoint creation params

Changed the parameters order for the swift endpoint creation.

Change-Id: I7574375e5165d2ee9477e0f5bdfe02dbe3b38c09
Fixes: bug #1175610
Merge "Modified order of swift's endpoint creation params"