When you use the ApiLogin method to authenticate to a library, the Server Application Programming Server determines the library to log in to by parsing the host name of the API URL. The Server Application Programming Server reads the beginning of the host name, up to the first period, as the library alias. The alias must match the value of the Alias attribute of a Library element in the APIServer.config file for the installation of the API Server Internet Information Services. For example, if the library alias is MyAitLibrary, then values that will work with the ApiLogin method for the API URL include the following.
The actual URL does not matter as long as the library alias is the first part of the host name and the URL points to the API Server Internet Information Services installation. To configure the library alias URL you can either configure your DNS server with alias entries with the URL values to point to the API Server Internet Information Services installation.
If you are developing locally, you can edit the hosts file in the C:\Windows\System32\drivers\etc folder on your local machine. The example below show entries in the hosts file that point to API Server Internet Information Services installations on the local computer that support all of the examples in the list above.
You can also add entries that point to IP addresses for servers other than on your local machine (for example, a centralized development server).