Changeset 954


Ignore:
Timestamp:
Sep 10, 2019, 11:20:32 PM (5 years ago)
Author:
djay
Message:

Use rootUrl rather than serverAddress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_json.c

    r949 r954  
    520520      json_object_object_add(res2,"type",json_object_new_string("application/json"));
    521521      json_object_object_add(res2,"title",json_object_new_string("Process Description"));
    522       map* tmpUrl=getMapFromMaps(m,"main","serverAddress");
     522      map* tmpUrl=getMapFromMaps(m,"openapi","rootUrl");
    523523      char* tmpStr=(char*) malloc((strlen(tmpUrl->value)+strlen(rUrl)+13)*sizeof(char));
    524524      sprintf(tmpStr,"%s/processes/%s/",tmpUrl->value,rUrl);
     
    11411141  int createStatusLinks(maps* conf,int result,json_object* obj){
    11421142    json_object* res=json_object_new_array();
    1143     map *tmpPath = getMapFromMaps (conf, "main", "serverAddress");
     1143    map *tmpPath = getMapFromMaps (conf, "openapi", "rootUrl");
    11441144    map *cIdentifier = getMapFromMaps (conf, "lenv", "oIdentifier");
    11451145    map *sessId = getMapFromMaps (conf, "lenv", "usid");
     
    13411341      json_object_object_add(res1,"description",json_object_new_string(tmpMap->value));
    13421342      json_object_object_add(res5,"description",json_object_new_string(tmpMap->value));
    1343       tmpMap=getMapFromMaps(conf,"main","serverAddress");
     1343      tmpMap=getMapFromMaps(conf,"openapi","rootUrl");
    13441344      json_object_object_add(res5,"url",json_object_new_string(tmpMap->value));
    13451345    }
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png