- Timestamp:
- Sep 10, 2019, 11:20:32 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_json.c
r949 r954 520 520 json_object_object_add(res2,"type",json_object_new_string("application/json")); 521 521 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"); 523 523 char* tmpStr=(char*) malloc((strlen(tmpUrl->value)+strlen(rUrl)+13)*sizeof(char)); 524 524 sprintf(tmpStr,"%s/processes/%s/",tmpUrl->value,rUrl); … … 1141 1141 int createStatusLinks(maps* conf,int result,json_object* obj){ 1142 1142 json_object* res=json_object_new_array(); 1143 map *tmpPath = getMapFromMaps (conf, " main", "serverAddress");1143 map *tmpPath = getMapFromMaps (conf, "openapi", "rootUrl"); 1144 1144 map *cIdentifier = getMapFromMaps (conf, "lenv", "oIdentifier"); 1145 1145 map *sessId = getMapFromMaps (conf, "lenv", "usid"); … … 1341 1341 json_object_object_add(res1,"description",json_object_new_string(tmpMap->value)); 1342 1342 json_object_object_add(res5,"description",json_object_new_string(tmpMap->value)); 1343 tmpMap=getMapFromMaps(conf," main","serverAddress");1343 tmpMap=getMapFromMaps(conf,"openapi","rootUrl"); 1344 1344 json_object_object_add(res5,"url",json_object_new_string(tmpMap->value)); 1345 1345 }
Note: See TracChangeset
for help on using the changeset viewer.