how to create api on local system