You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, instead of setting api.apiClient.basePath for each API as mentioned in #4, we can do this:
constapiClient=newJsflagr.ApiClient()apiClient.basePath='<SERVER_URL>'constevaluationApi=newJsflagr.EvaluationApi(apiClient)constconstraintApi=newJsflagr.constraintApi(apiClient)// ... and so on, and so forth
I believe both method, either setting url manually for each API or using constructor argument, must be documented.
The text was updated successfully, but these errors were encountered:
Related Issue
#4 (How to set server Flagr endpoint)?
Issue
Current
README.md
contains no documentation on how to change server url, in which it is always default tohttp://localhost/v1/api
.Known solution
Setting
basePath
for each API.Proposed solution
After looking at the source code, i found that each exposed API constructor receives
ApiClient
instance. For example,EvaluationApi
.jsflagr/src/api/EvaluationApi.js
Lines 46 to 47 in 0c3775a
So, instead of setting
api.apiClient.basePath
for each API as mentioned in #4, we can do this:I believe both method, either setting url manually for each API or using constructor argument, must be documented.
The text was updated successfully, but these errors were encountered: