move *.spec to api folder