Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5028

My Service Definition is not working for connection to Stripe

$
0
0

Hi, This is probably a easy question for one in the know. My service returns a

"message": "Could not find a service for charges",
"code": 404,
"trace": [
"0 /opt/bitnami/apps/dreamfactory/htdocs/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(205): DreamFactory\Core\Models\Service::DreamFactory\Core\Models\{closure}()",

Now my service is called Stripe, but the api within Stripe is called charges. So is it failing to find the Stripe service or mine within Dreamfactory? Here is the service definition so far.

{
"resourcePath": "/charges",
"produces": [
"application/json",
"application/xml"
],
"consumes": [
"application/json",
"application/xml"
],
"apis": [
{
"path": "/charges",
"description": "Make a Charge",
"operations": [
{
"nickname": "Create A Charge",
"method": "POST",
"summary": "Create A Charge",
"notes": "Create A Charge",
"event_name": "Create A Charge",
"parameters": [
{
"name": "description",
"description": "Description",
"type": "string",
"paramType": "body"
},
{
"name": "source",
"description": "Source",
"type": "string",
"paramType": "body"
},
{
"name": "currency",
"description": "Currency",
"type": "string",
"paramType": "body",
"required": true
},
{
"name": "amount",
"description": "Amount in cents",
"type": "integer",
"format": "int32",
"paramType": "body",
"required": true
}
]
}
]
}
],
"models": {},
"authorizations": {}
}

Also is it right that once a service definition has been saved for the first time after using the Editor tab, the only way to edit it is in JSON. In my instance all the parameters to be sent in the body vanish from the Editor when you expand the API, there is no edit function, not even an add button to add more parameters.

Thanks in advance


Viewing all articles
Browse latest Browse all 5028

Trending Articles