Replace many :project with :empty_projects in API specs
In order to reduce our test suite duration (#24899 (closed)), we should replace the :project
factory calls with the :empty_project
factory where possible.
This MR starts with API since most of the API endpoints don't actually need a repo.
This actually kind of reproduce !7282 (closed).