Hi VID team,

I am trying to create new lineOfBusiness, project, Owning Entity. I tried
with the below REST calls and it is not working.

The REST API gets HTML response, I am not sure whether am i missing
something in the below REST calls.

Kindly note that i can see the default ones created by Robot init script.
Can we not add more of these types into VID? Is there any alternate ways to
get these details into VID? Could someone help me to create the below new
resources would be great.

*Code snippets*
export VID_REST_SVC_IP=$(kubectl get svc -n onap | grep vid | grep -v
'vid-' | awk '{print $3}')
export VID_REST_SVC_PORT=8080

curl -L -v -X POST
"http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/lineOfBusiness";
\
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "USER_ID: bdemo" \
-H "X-FromAppId: robot-ete" \
-H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \
-u demo:Kp8bJ4SXszM0WX \
-d data='{"options":["LOB-Testing"]}'


# Followed Robot logs to insert a platform
curl -v -X POST
"http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/platform";
\
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "USER_ID: bdemo" \
-H "X-FromAppId: robot-ete" \
-H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \
-u demo:Kp8bJ4SXszM0WX \
-d data='{"options":["Platform-Testing"]}'


curl -v -X POST
"http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/project";
\
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "USER_ID: bdemo" \
-H "X-FromAppId: robot-ete" \
-H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \
-u demo:Kp8bJ4SXszM0WX \
-d data='{"options":["Project-Testing"]}'


curl -v -X POST
"http://${VID_REST_SVC_IP}:${VID_REST_SVC_PORT}/vid/maintenance/category_parameter/owningEntity";
\
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "USER_ID: demo" \
-H "X-FromAppId: robot-ete" \
-H "X-TransactionId: robot-ete-071f77ea-1fc9-4a34-bfe5-dce2b67ac408" \
-u demo:Kp8bJ4SXszM0WX \
-d data='{"options":["OE-Testing"]}'

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18304): https://lists.onap.org/g/onap-discuss/message/18304
Mute This Topic: https://lists.onap.org/mt/32601626/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to