resource to crete swift endpoint