当前位置:网站首页>Chapter 21 Source Code File REST API Reference (3)
Chapter 21 Source Code File REST API Reference (3)
2022-08-10 03:31:00 【yaoxin521123】
文章目录
第二十一章 源代码文件 REST API 参考(三)
GetDocNames
This method returns a list of source code filenames.可选的 cat 和 type Constrains the type of source code file.
URL
GET http://server:port/api/atelier/v1/namespace/docnames
GET http://server:port/api/atelier/v1/namespace/docnames/cat
GET http://server:port/api/atelier/v1/namespace/docnames/cat/type
其中
catSpecifies the category code:CLS = class;RTN = routine;CSP = CSP 文件;OTH = other.默认为*.typeSpecifies the source code file type.可以是*Wildcard or file type.对于CLS,类型必须是*.对于RTN,类型可以是mac、int、inc、bas 、mvi 或 mvb.对于CSP,type可以是js或cssA list of other file types,以逗号分隔.默认为*.
URL Parameters
URL参数'generated=1'Specifies that the generated source code files should be included.URL参数'filter'Provides one that can be used to match namesSQL过滤器.
JSON Messages
Here is what is returned,An array of source code file descriptors:
{
"status": {
"errors": [],
"summary": ""
},
"console": [],
"result": {
"content": [
{
"name": "%Api.DocDB.cls",
"cat": "CLS",
"ts": "2016-08-03 20:01:42.000",
"upd": true,
"db": "IRISLIB",
"gen": false
},
...
{
"name": "EnsProfile.mac",
"cat": "RTN",
"ts": "2003-09-19 13:53:31.000",
"upd": true,
"db": "INVENTORYR",
"gen": false
},
...
{
"name": "xyz.mac",
"cat": "RTN",
"ts": "2016-08-11 15:05:02.167",
"upd": false,
"db": "INVENTORYR",
"gen": false
}
]
}
}
HTTP 返回码
HTTP 200如果正常.HTTP 500如果发生意外错误(详细信息将在状态错误数组中).
GetModifiedDocNames
This method returns a list of source code files that have been modified since the database had the specified hash value.它以 JSON Pass the database keys and hash list as an array.The hash value is used to determine if there have been any changes in the database defined by that key.通常,First call this with an empty array API 作为传入的 JSON 消息.This will return the names of all source code files in the namespace along with the database key and hash for each file.Then you can publish dbname 和 dbhash to discover which source code files have been modified on the server since the last call.
Publish a list of source code files to check,如以下示例所示:
[ { "dbname" : "USER",
"dbhash" : "KWAGbOdnRblPzANaiv1Oiu0BZLI"
}, ... ]
URL
POST http://server:port/api/atelier/v1/namespace/modified/type
其中:
type- Specify the source code file type as * or three-letter code、ls、mac、int、inc、bas 或 mvi.默认为*.
This call requires headersContent-Type application/json.
JSON Messages
Here is what is returned,An array of source code file descriptors:
[ { "dbname" : "USER",
"dbhash" : "Qx1zuNaulq3b_1yR9ahZAfjkc-",
"crhash" : "47763751EC",
"docs": [{
"name": "User.NewClass1.cls",
"ts": "2016-01-04 14:00:04.000",
"gen": false,
"depl": false
}, ... ]
}, ... ]
如果在指定的 dbhash The source code files were removed afterwards,then returns the file in a list,and set the timestamp to an empty string:
"ts": ""
If the database is included due to the mapping and the mapping is dropped,则 dbhash 和 crhash 都将返回“000”值,并且 docs Returned as an empty array.
HTTP 返回码
HTTP 200如果正常.- If the post is empty or the type is not
CLS,则HTTP 400. - If the content type is not application
/json,则为HTTP 415. HTTP 500如果发生意外错误(详细信息将在状态错误数组中).
边栏推荐
猜你喜欢

What makes training multi-modal classification networks hard?

IDEA自动生成serialVersionUID

实例045:求和

Nacos源码分析专题(五)-Nacos小结

Arcgis进阶篇(1)——安装Arcgis Enterprise,创建sde库
![[Kali Security Penetration Testing Practice Course] Chapter 9 Wireless Network Penetration](/img/7d/c621680ac73e2987f023a2e98e01df.png)
[Kali Security Penetration Testing Practice Course] Chapter 9 Wireless Network Penetration

小菜鸟河北联通上岗培训随笔

Pycharm中6个常用插件推荐

OpenCV图像处理学习三,Mat对象构造函数与常用方法

2022 Top Net Cup Quals Reverse Partial writeup
随机推荐
《GB39707-2020》PDF download
2022.8.8考试区域链接(district)题解
中级xss绕过【xss Game】
数据在内存中的存储
Completion of the flag set in 2022
Shell编程--awk
2022.8.8考试游记总结
程序员的专属浪漫——用3D Engine 5分钟实现烟花绽放效果
第二十一章 源代码文件 REST API 参考(三)
ECCV 2022 Oral | CCPL: 一种通用的关联性保留损失函数实现通用风格迁移
【二叉树-中等】508. 出现次数最多的子树元素和
月薪35K,靠八股文就能做到的事,你居然不知道
【8.8】代码源 - 【不降子数组游戏】【最长上升子序列计数(Bonus)】【子串(数据加强版)】
剑指offer专项突击版第25天
数据库治理利器:动态读写分离
flask增删改查
2022.8.9 Exam Unique Bid Auction--800 Question Solutions
从滑动标尺模型看企业网络安全能力评估与建设
将信号与不同开始时间对齐
【QT】QT项目:自制Wireshark