Commit b88206b2 authored by Gary Wong's avatar Gary Wong

Add proposed AM API v4 response fields to GENI "getversion" results.

parent 1ec1b025
......@@ -11956,16 +11956,21 @@ static char *getgenigetversion( tmcdreq_t *reqp ) {
if( mysql_num_rows( res ) ) {
MYSQL_ROW row = mysql_fetch_row( res );
GOUTPUT( buf, sizeof buf, "{\"code_tag\":\"%s\","
"\"urn\":\"urn:publicid:IDN+" OURDOMAIN
GOUTPUT( buf, sizeof buf, "{\"geni_am_code_version\":\"%s\","
"\"geni_urn\":\"urn:publicid:IDN+" OURDOMAIN
"+authority+cm\","
"\"url\":\"" TBBASE ":12369/protogeni/xmlrpc/am\","
"\"geni_am_type\":\"protogeni\","
"\"geni_single_allocation\":true,"
"\"geni_allocate\":\"geni_disjoint\","
"\"geni_api_versions\":{"
"\"1\":\"" TBBASE ":12369/protogeni/xmlrpc/am/1.0\","
"\"2\":\"" TBBASE ":12369/protogeni/xmlrpc/am/2.0\","
"\"3\":\"" TBBASE ":12369/protogeni/xmlrpc/am/3.0\"},"
"\"geni_credential_types\":{"
"\"geni_type\":\"geni_sfa\",\"geni_version\":\"2\","
"\"geni_type\":\"geni_sfa\",\"geni_version\":\"3\"}}",
"{\"geni_type\":\"geni_sfa\","
"\"geni_version\":\"2\"},"
"{\"geni_type\":\"geni_sfa\","
"\"geni_version\":\"3\"}}}",
row[ 0 ] );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment