Skip to content
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

Allow ocs/v2.php/cloud/... routes #691

Merged
merged 1 commit into from
Aug 9, 2016
Merged

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Aug 1, 2016

One of the possibilities of the old OCS API is that you can define the
url yourself.

This PR makes this possible again by adding an optional root elemenet to
the route. Routes are thus:

.../ocs/v2.php/<root>/<url>

By default <root> = apps/<app>

This will allow for example the provisioning API etc to be in
../ovs/v2.php/cloud/users

@rullzer rullzer added the 2. developing Work in progress label Aug 1, 2016
@rullzer rullzer added this to the Nextcloud 11.0 milestone Aug 1, 2016
@mention-bot
Copy link

@rullzer, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @BernhardPosselt and @icewind1991 to be potential reviewers

@rullzer
Copy link
Member Author

rullzer commented Aug 2, 2016

Depends on #445 so we actually know better if we broke anything.

@MorrisJobke
Copy link
Member

Tested and it works 👍

One of the possibilities of the old OCS API is that you can define the
url yourself.

This PR makes this possible again by adding an optional root elemenet to
the route. Routes are thus:

.../ocs/v2.php/<root>/<url>

By default <root> = apps/<app>

This will allow for example the provisioning API etc to be in
../ovs/v2/php/cloud/users
@rullzer rullzer force-pushed the ocs_allow_all_old_routes branch from 034f382 to 63f6d2d Compare August 8, 2016 13:01
@rullzer rullzer added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 8, 2016
@rullzer
Copy link
Member Author

rullzer commented Aug 8, 2016

Ok so this works!
I'd like to get it in so I can start cleaning up more tech debt from the dark ages.

CC: @LukasReschke @BernhardPosselt @icewind1991

@rullzer
Copy link
Member Author

rullzer commented Aug 9, 2016

For seeing it in action #777

@LukasReschke
Copy link
Member

LGTM

@LukasReschke LukasReschke merged commit 5214b62 into master Aug 9, 2016
@LukasReschke LukasReschke deleted the ocs_allow_all_old_routes branch August 9, 2016 18:53
GitHubUser4234 pushed a commit to GitHubUser4234/server that referenced this pull request Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants