Skip to main content

I've been working with a friend on setting up a website that uses the U2 RESTful server.  My friend's been doing most of the work. It's been in development but there's a lot of things working. We named the rest server "rest_test". That's not a name that works for production so I'd like to rename it.

The problem is, if I right-click on the server in the U2 REST Servers panel the rename function is disabled. I've tried copying the folder to a different name, exporting and importing it. No combination of steps has worked.

I also don't like the number of steps you have to go through to "deploy" a rest server.  Export the file to a zip, unzip it, go to the u2restdeploy folder run the batch file to start the deploy tool, define where you want the files to be deployed to...  This is not a good model if you've got multiple developers making local changes that need to be moved to the server.

So here are my questions:

  1. How do you rename a rest server?
  2. Are there easier ways to go deploy a rest server?
  3. Is there a better set of documentation on the underlying details than the U2_dbtools_user_guide?

Any help would be greatly appreciated.

Joe Goldthwaite

I've been working with a friend on setting up a website that uses the U2 RESTful server.  My friend's been doing most of the work. It's been in development but there's a lot of things working. We named the rest server "rest_test". That's not a name that works for production so I'd like to rename it.

The problem is, if I right-click on the server in the U2 REST Servers panel the rename function is disabled. I've tried copying the folder to a different name, exporting and importing it. No combination of steps has worked.

I also don't like the number of steps you have to go through to "deploy" a rest server.  Export the file to a zip, unzip it, go to the u2restdeploy folder run the batch file to start the deploy tool, define where you want the files to be deployed to...  This is not a good model if you've got multiple developers making local changes that need to be moved to the server.

So here are my questions:

  1. How do you rename a rest server?
  2. Are there easier ways to go deploy a rest server?
  3. Is there a better set of documentation on the underlying details than the U2_dbtools_user_guide?

Any help would be greatly appreciated.

Joe Goldthwaite

Joe,

I don't use the front-end to maintain my restful sites.  You can do it all at the OS level.  But my version is simplified by having a single UniBasic subroutine that handles all the incoming requests and outgoing respones.  But if we have to add a new subroutine we would just add it to the xml file.

If I need a new restful site I just copy one and then go in and rename things in the .ini and .xml files.

I hope this helps.


I've been working with a friend on setting up a website that uses the U2 RESTful server.  My friend's been doing most of the work. It's been in development but there's a lot of things working. We named the rest server "rest_test". That's not a name that works for production so I'd like to rename it.

The problem is, if I right-click on the server in the U2 REST Servers panel the rename function is disabled. I've tried copying the folder to a different name, exporting and importing it. No combination of steps has worked.

I also don't like the number of steps you have to go through to "deploy" a rest server.  Export the file to a zip, unzip it, go to the u2restdeploy folder run the batch file to start the deploy tool, define where you want the files to be deployed to...  This is not a good model if you've got multiple developers making local changes that need to be moved to the server.

So here are my questions:

  1. How do you rename a rest server?
  2. Are there easier ways to go deploy a rest server?
  3. Is there a better set of documentation on the underlying details than the U2_dbtools_user_guide?

Any help would be greatly appreciated.

Joe Goldthwaite

Hi David,

One thing I noticed is that the called subroutines are stored in XML files do not get changed when they're "deployed".  If  you have data files defined they go into json files and those are modified.

After I posted the question and figure out that the issue was only with the json files, Those are created if you add a data definition. Like you, we've been using called subroutines for all our interfaces. The data definitions were only created as a test so I just removed them for now.

I'd still like better documentation as to what that deploy step is actually doing.

Thanks for the advice!  I appreciate it.