第十八章 源代码文件 REST API 教程(三)
编译文件
Compile 方法编译传入 JSON 数组中名称指定的源代码文件。例如,要编译 xyz.mac,请发布以下内容:
http://localhost:52773/api/atelier/v1/INVENTORY/action/compile
使用以下 JSON 消息:
["xyz.mac"]
该方法返回:
{
"status": {
"errors": [],
"summary": ""
},
"console": [
"",
"Compilation started on 08/14/2016 15:25:20 with qualifiers 'cuk'",
"xyz.int is up to date. Compile of this item skipped.",
"Compilation finished successfully in 0.008s."
],
"result": {
"content": []
}
}
对于一些源代码文件,例如类,Compile 在返回的内容中返回存储信息。
删除文件
DeleteDoc 方法删除 URL 中指定的文件。
