Adding a new file to an existant project does not work.
I tried to connect the semantic parser to the PKM so that I can add the result of the parser as a json file in an existing project in the store. The connection is well established and the request is successful (returned code is 200).
Except that the file is not added in the project as indicated. Also, I didn't see where I must specify the projectId in the url. This is an example of request I used:
curl --request PUT
--url http://localhost:8080/v2/code/file
--header 'content-type: application/json'
--data '{"directory": "./semparser",
"fileName": "semparser_ast_ast_31_08_2020 08_45_31.json",
"content": " ( methoddeclaration ( formalparameter ( referencetype ) referencetype ) formalparameter ( statementexpression ( methodinvocation ( memberreference ) memberreference ) methodinvocation ) ",
"codeFormat": ["CodeAndComments"]
}'
May be I missed or did something wrong.