Hello,
i followed the instructions on from "getting started".
When i upload and install the service i get the message "Services: service
undefined installed" and the the API section of the service i can only see
a swagger button which show me this:
{
"swagger": "2.0",
"basePath": "/_db/telefonie/getting-started",
"paths": {
"/hello-world": {
"get": {
"produces": [
"text/plain",
"application/json"
],
"parameters": [],
"description": "Prints a generic greeting.",
"summary": "Generic greeting",
"tags": [],
"consumes": [],
"responses": {
"200": {
"schema": {
"type": "string"
},
"description": "A generic greeting."
},
"500": {
"description": "Default error response.",
"schema": {
"type": "object",
"properties": {
"error": {
"anyOf": [
{
"type": "any",
"enum": [
true
]
},
{
"type": [
"array",
"boolean",
"number",
"object",
"string",
"null"
]
}
]
},
"errorNum": {
"type": "integer"
},
"errorMessage": {
"type": "string"
},
"code": {
"type": "integer"
}
},
"additionalProperties": false,
"patterns": [],
"required": [
"error"
]
}
}
}
}
}
},
"info": {
"description": "",
"license": {}
}
}
Manifest.json
{
"engines": {
"arangodb": "^3.0.0"
},
"main": "index.js"
}
index.js
'use strict';
const createRouter = require('@arangodb/foxx/router');
const router = createRouter();
module.context.use(router);
router.get('/hello-world', function (req, res) {
res.send('Hello World!');
})
.response(['text/plain'], 'A generic greeting.')
.summary('Generic greeting')
.description('Prints a generic greeting.');
Would be nice if someone could give me a hint where the issue is.
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/arangodb/19573e72-f7d7-43b3-b8f5-620777f63a58o%40googlegroups.com.