Open czeeb opened 9 years ago
If I follow the documentation I get the following:
$ curl --silent -XPOST -H 'Content-Type: application/json' localhost:8888/apigility/api/module/DoctrineExample/rest --data '{"objectManager":"doctrine.entitymanager.orm_default","serviceName":"Planet","entityClass":"Db\\Entity\\Planet","routeIdentifierName":"planet_id", "entityIdentifierName":"id", "routeMatch":"/api/planet"}' | python -m json.tool
{
"detail": "Failed Validation",
"status": 422,
"title": "Unprocessable Entity",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"validation_messages": {
"service_name": "You must provide either a Code-Connected service name OR a DB-Connected database adapter and table name"
}
}
As of d36c405a22abf0deafd9f81285f1f1f8c0bb3bbe I am unable to create a doctrine connected rest service.
Up until this point all I have done in the UI is create the DoctrineExample API. I have not created any services.
When attempting to create a new service via the API from zfcampus/zf-apigility-doctrine I get the following output:
I'm using the built in php development server, called with
php -S 0.0.0.0:8888 -t public public/index.php