Hi everyone, I’m really new with DreamFactory. But I want to make an small API.
- I have db on MS SQL,
- I put the DB on Azure.
- Connect to DreamFactory.
- Create a role.
- Test API Doc, and work fine I get access to tables, records etc.
- Download JSON files from SERVICE DOC.
- Import JSON file on Swagger Editor local. Showing errors. (Swagger local show a lot of error, Swagger Cloud show 6 errros).
- Generate Server Side Scripts for Node.JS.
- Uncompress scripts generated and install Connect Framework.
- Combine both directories.
- NPM Install.
- Node index.js
Where I put the db settings?
How can I fix theses 130 errors?
This is the console log:
D:\dev\api>node index.js
API Errors:
#/paths/~1_func~1{function_name}/post/parameters/1: Not a valid parameter definition
#/paths/~1_func~1{function_name}/post/parameters/1: Not a valid parameter definition
#: Missing required property: schema
#: Missing required property: type
#/paths/~1_func~1{function_name}/post/parameters/1: Missing required property: $ref
#/paths/~1_func~1{function_name}/post/parameters/0: Not a valid parameter definition
#/paths/~1_func~1{function_name}/post/parameters/0: Not a valid parameter definition
#: Missing required property: schema
#: Missing required property: type
Cut the log here.
138 errors and 0 warnings