We are trying to do a POC on automated deployments and health check for VS using REST APIs. We have tried to invoke the REST APIs in the below page to deploy .mar files but getting 401, Unauthorized. Do we have any REST API for login action before we invoke other API calls ( to deploy or redeploy), as I am using a server which is having a login.
The API used to deploy VSE: POSThttp://[host]:[port]/api/Dcm/VSEs/serviceName/actions/deployMar
Response recieved after invoking the API.
{
"timestamp": 1512443567666,
"status": 401,
"error": "Unauthorized",
"message": "No message available",
"path": "/devtest/api/Dcm/VSEs/VSE/VS_ListBiller_V0.1"
}
REST API List: SAP Portal Services