-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default URL constants should be public #11
Comments
What do you think, @scanossjeronimo? |
As a somewhat related note, IMO it's a bit weird that the "scan/direct" path is part of the default URL. Usually, the path is specific to the endpoint you're calling, see this code in ORT's own SCANOSS client. The only thing "special" here is that the API just has this single endpoint. But in preparation for eventually having more endpoints, probably only the base URL, without any path, should serve as the default URL. |
@sschuberth We plan to have an abstract interface covering these (multiple) APIs in the future. For now we only implemented the ScanApi and as such put the full path into it. Is there a reason you want to be able to have the Also, there is the ability to supply the |
We'd like to be able to fall back explicitly to it if no URL is specified in ORT, see this code. |
Not sure if that's what you mean, but while I realize that we could simply not pass the URL to the builder / use an explicit |
OK. We'll prepare two new variables with public values for the base URL:
Does this work for you? |
That field is optional in the builder, so if you won't have a value, you don't have to specify it. However, we will expose the default base path for you, so you can construct the URL. |
Perfect, thanks! |
update download-artifact and update-artifact from v3 to v4 #11
These are package-private but should be public:
scanoss.java/src/main/java/com/scanoss/rest/ScanApi.java
Lines 238 to 239 in 8598c47
The text was updated successfully, but these errors were encountered: