Configure API Directories to Source Control

You can share your API files and collaborate with other team members by configuring your local API directories that are in the admin repository to source control systems (SCS), such as Git or Apache Subversion (SVN). When you stop API Server or restart it, API Server determines which SCS files and directories it should not modify or delete using the lacignore.json file that is located in the admin repository.
lac42
You can share your API files and collaborate with other team members by configuring your local API directories that are in the admin repository to source control systems (SCS), such as Git or Apache Subversion (SVN). When you stop API Server or restart it, API Server determines which SCS files and directories it should not modify or delete using the
lacignore.json
 file that is located in the admin repository.
The API directories that you add as entries to the
lacignore.json
 file are not included in API exports.
For more information about how to export your API, see Import and Export APIs.
For more information about the location of this file, see View your API Definition.
The following code snippet shows an example of the 
lacignore.json
 file that 
Layer7 Live API Creator
includes:
{
   "comments": "Server must be stopped before changing this file.
You can modify this file.
Only ignoreFiles and ignoreDirectories are used.
",
   "ignoreFiles": [],
   "ignoreDirectories":  [
      "UserFiles",
      ".git",
      ".svn"
   ]
}
Follow these steps:
  1. Stop API Server. 
  2. Configure your API directory to your SCS. For example, when you add an API directory to Git, your SCS creates a
    .git
    directory under the API directory.
  3. Add the directory or file as entries to the
    lacignore.json
    file.
    You can add other file directories for your project or files that you want 
    Layer7 Live API Creator
     to not modify or delete by adding entries for those directories and files into this file.
  4. When you are ready to use 
    Layer7 Live API Creator
     again, restart API Server.
You have configured your API directory to SCS.