Added auto create api key to models

Add authorization and authentication to resources