I recently converted one of my modules to Service Module in OS11. Before that, i had a Module Alias linked to that module on my dev environment.
When i transferred it to our int environment i found that i could not find the module in the alias list (SEO Friendly URLs - Module Alias Rules).
I was able to create the alias by republishing the older (not service module) version of the module and then transfer it back after the creation.
Is this a bug or is there a reason why Service modules are not selectable for creating a module alias?
So depending on your use case you have a few options:
If the name issue is deeper on the API url path, you can also customize the URL path of the methods.
Something like this:
Cheers
Rui Barbosa wrote:
Thank you. I will mark this one as solution, but i actually hope Outsystems will add Service Modules with an exposing webservice to the list of Modules in the SEO.
For now i will keep module structures as they are and add my publish old version magic to our release/deployment script. But you are correct this is not something i would like to maintain. I will need to split the modules and move logic accordingly.
Hi Stefano Valente
So I guess its by design...
Service modules don't have entry points besides the REST api's, so there should be little need to apply an SEO rule.
But please do elaborate on your use case.
We had just set a Module alias in place for the REST service (to have a more appropiate url). Then i decided to convert the module to a Service module so i could have a Service action without the Authorisation component to be used from our own UI.
The module alias was still active on our DEV environment. But when i exported the module to our INT environment for the first time as a service module, i could not select the module in SEO. After i published the previous version with the regular module, i could create the alias and publish back the new version (the service module version).
Perhaps service modules are not meant to be used this way, but since it is possible to create webservice in them, i would expect there is a possibility to have an alias in SEO.
Stefano, thanks for the feedback.
I'm forwarding this thread to our engineering team, but if you could create this on the ideas section that would be great.