GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Does the baseURL require a host name rather than a URL prefix?
Downloaded I/O Docs on August 10, 2011 from GitHub and noticed the apiconfig.json settings for baseURL expects a host name (e.g. example.com) rather than a URL prefix (e.g. http://example.com/api), with the publicPath expected to be the full relative path to the api (eg. /sampleAPI/v1) rather than a simple version identifier.
To clarify, if the API URL is at 'http://example.com/sampleAPI/v1', the baseURL appears to expect 'example.com' while the the publicPath should be '/sampleAPI/v1'.
Hello. Originally, we had baseURL accepting a full URL; however, we decided to separate the URI scheme (e.g. http:// https://) and make it a hostname only, and move the scheme into a field named protocol. So to your example:
baseURL => "example.com"
protocol => "http"
publicPath => "/sampleAPI/v1"
Thanks - merged pull request.