Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.29 KB

Manifold_CF_API_Usage.md

File metadata and controls

44 lines (30 loc) · 1.29 KB

mcf_api.md

login

[ec2-user@mcf ~]$  curl -X POST -H "Content-Type: application/json" http://localhost:8345/mcf-api-service/json/LOGIN -d "{\"userID\":\"admin\", \"password\":\"admin\"}"

##Output connector

## create an output connector
curl -X PUT -H "Content-Type: application/json" http://localhost:8345/mcf-api-service/json/outputconnections/ -d  "{\"outputconnection\": {\"description\":\"solr_conn\", \"class_name\":\"Solr\"} }"


## get list of output connector 
curl -X GET  http://localhost:8345/mcf-api-service/json/outputconnections


## delete list of output connector
curl -X DELETE  http://localhost:8345/mcf-api-service/json/outputconnections/

##Repository Connector

##create an repository connector
curl -X PUT -H "Content-Type: application/json" http://localhost:8345/mcf-api-service/json/repositoryconnections/ -d  "{\"repositoryconnection\": {\"description\":\"xxx_conn\", \"class_name\":\"Web\"} }"

## get list of repository connector 
curl -X GET  http://localhost:8345/mcf-api-service/json/repositoryconnections

Create a job'

curl -X POST -H "Content-Type: application/json" http://localhost:8345/mcf-api-service/json/jobs/ -d  "{\"repositoryconnection\": 
	{\"description\":\"job\", 
	 \"repository_connection\":\"Web\",
	 \"id\":\"xxx1\",


	} 
}"