2
我試圖在IBM Graph Data Store上創建模式,但我收到「POST is not allowed」錯誤。見下面的代碼:BlueMix中的IBM Graph上出現「POST is not allowed」錯誤
[email protected] ~]$ curl "https://ibmgraph-alpha.ng.bluemix.net/
4f92b002-1e10-4f49-93f7-b9835b8daf91/schema" \
-X POST \
-u "$username:$password" \
-d '{"propertyKeys": [{"name": "DBVid", "dataType": "Float", "cardinality":
"SINGLE"},
{"name": "Oid", "dataType": "Integer", "cardinality":
"SINGLE"},
{"name": "Name", "dataType": "String", "cardinality":
"SINGLE"}],
"vertexLabels": [{"name": "Person"},
{"name": "City"},
{"name": "is_part_of"}],
"edgeLabels": [{"name": "origin", "multiplicity": "MULTI"},
{"name": "plays_at", "multiplicity": "MULTI"}],
"vertexIndexes": [{"name": "vByDBVid", "propertyKeys": ["DBVid"],
"composite": true, "unique": false},
{"name": "vByOid", "propertyKeys": ["Oid"],
"composite": true, "unique": false},
{"name": "vByName", "propertyKeys": ["Name"],
"composite": true, "unique": false}],
"edgeIndexes": [{"name": "vByDBVid", "propertyKeys": ["DBVid"],
"composite": true, "unique": false},
{"name": "vByOid", "propertyKeys": ["Oid"],
"composite": true, "unique": false},
{"name": "vByName", "propertyKeys": ["Name"],
"composite": true, "unique": false}]}' \
-H 'Content-Type: application/json'
{"code":"MethodNotAllowedError","message":"POST is not allowed"}
任何想法如何解決?
非常感謝。 這是問題所在。 –