-
Notifications
You must be signed in to change notification settings - Fork 8
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
Remove v1 hack from CanonicalFnAPIUrl #31
Remove v1 hack from CanonicalFnAPIUrl #31
Conversation
The v1 API is no longer supported so we can now remove this hack. C.f. the discussion on fnproject#30 and fnproject/fn#1347.
Some more testing in case it helps: Testing with a URL not containing
|
Although looking at https://github.com/search?p=1&q=org%3Afnproject+%2Fv1&type=Code there are still quite a few references to |
@vzDevelopment can we merge this? i think we should remove this and clean up refs to v1 everywhere, I know that extensions still root things at v1 but i'm kinda doubting anyone was regenerating the client bindings by copying our swagger and adding their endpoints with v1 (our swagger is v2) i'll kick circleci, they've been having issues... thanks for PR |
Thanks for reviewing and merging, Reed. Yeah I closed as I wanted to go through the v1 references and ensure these changes wouldn't cause anything to break before disrupting you with the PR. If you're happy then that's good with me. |
The V1 Fn Server API is no longer supported. Therefore, make a start on migrating the UI over the the V2 API. This commit migrates the App functionality over and means users can now add/delete/edit apps. This contributes to: fnproject#52, fnproject/fn#1347, fnproject/fn_go#31, and fnproject/fn#1258
The V1 Fn Server API is no longer supported. Therefore, make a start on migrating the UI over the the V2 API. This commit migrates the App functionality over and means users can now add/delete/edit apps. This contributes to: fnproject#52, fnproject/fn#1347, fnproject/fn_go#31, and fnproject/fn#1258
The v1 API is no longer supported so we can now remove this hack. C.f. the discussion on pull request 30 and the issue: fnproject/fn#1347.
Before this change, if the
FN_API_URL
was set to anything ending in/v1
e.g.http://localhost:8888/fn-routing/v1/
then it wouldn't work:After this change it is working as expected:
I have also updated the unit tests accordingly which can be tested with
cd provider && go test
N.b. you'll need my changes from #30 in order for
fn version
to work with paths.