curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/open-api/pull \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"pull": {
"outOfSyncPolicy": "abort"
}
}'
{
"job": {
"id": "5947aff3-947b-4dfb-90f5-d324684e97db",
"jobType": "open-api-git-pull",
"status": "ERROR",
"started": "2024-09-05T10:20:46.143759190Z",
"links": {
"self": "/v1/mock-apis/0ozge/__admin/etc/jobs/5947aff3-947b-4dfb-90f5-d324684e97db"
},
"finished": "2024-09-05T10:20:46.200386224Z",
"elapsed": "PT0.056627034S",
"outcome": {
"errorCode": "NO_LOCAL_HEAD",
"errors": [
{
"code": 112,
"title": "No previous pull",
"detail": "This is the first time pulling from Git."
}
]
}
}
}
curl --request POST \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/open-api/pull \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"pull": {
"outOfSyncPolicy": "abort"
}
}'
{
"job": {
"id": "5947aff3-947b-4dfb-90f5-d324684e97db",
"jobType": "open-api-git-pull",
"status": "ERROR",
"started": "2024-09-05T10:20:46.143759190Z",
"links": {
"self": "/v1/mock-apis/0ozge/__admin/etc/jobs/5947aff3-947b-4dfb-90f5-d324684e97db"
},
"finished": "2024-09-05T10:20:46.200386224Z",
"elapsed": "PT0.056627034S",
"outcome": {
"errorCode": "NO_LOCAL_HEAD",
"errors": [
{
"code": 112,
"title": "No previous pull",
"detail": "This is the first time pulling from Git."
}
]
}
}
}
The ID of the Mock API
5 - 10
"jjl8y"
Pull job successfully initiated
The response is of type object
.