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
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
I wanted to know what is the proper way to convert my Roxy configuration from "app-type=mvc" to "app-type=hybrid" while also using my custom url rewriter code.
My current Roxy configuration is as follows (using my own custom url rewriter):
I changed my Roxy configuration to hybrid (I want to use the MarkLogic REST APIs) using the same HTTP App Server to the following (still using my custom url rewriter):
The above changes did not work. I noticed that if I download Roxy from github and configure it for hybrid there is a directory that is created "rest-api" which does not exist in my current Roxy directory
git clone git://github.com/marklogic/roxy.git
ml init new-project --server-version=7 --app-type=hybrid
Obviously I am doing something wrong here. I wanted to know what is the proper way of doing this.
The text was updated successfully, but these errors were encountered:
The rest-api directory that gets created for hybrid and rest applications holds configuration for the REST API, as well as extensions and transforms. The simplest way to add that is to use "ml new" or "ml init" with a hybrid or rest project, then copy that directory over.
For your custom rewriter, see lines 40-50 of the built-in rewriter. The provided rewriter starts by trying to rewrite the URL the Roxy way; if the URL is unchanged from that, it runs it through the MarkLogic REST API rewriter. If you add that section to your custom rewriter, you should be fine.
In reply to the original message: properties were changed correctly from the looks of it, but not sure if the user did a bootstrap. That is necessary to get the rewrite-resolves-globally setting into the app server, and that is necessary to be able to run the REST api endpoints (of which the code resides in the Modules folder on filesys)..
A Roxy user sent me this question:
I wanted to know what is the proper way to convert my Roxy configuration from "app-type=mvc" to "app-type=hybrid" while also using my custom url rewriter code.
My current Roxy configuration is as follows (using my own custom url rewriter):
I changed my Roxy configuration to hybrid (I want to use the MarkLogic REST APIs) using the same HTTP App Server to the following (still using my custom url rewriter):
The above changes did not work. I noticed that if I download Roxy from github and configure it for hybrid there is a directory that is created "rest-api" which does not exist in my current Roxy directory
git clone git://github.com/marklogic/roxy.git
ml init new-project --server-version=7 --app-type=hybrid
Obviously I am doing something wrong here. I wanted to know what is the proper way of doing this.
The text was updated successfully, but these errors were encountered: