Adds 'create' action to api

Added 'create' action, resolved merge conflicts with 'index' action.