当前位置:网站首页>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
其中
cat
Specifies the category code:CLS = class
;RTN = routine
;CSP = CSP 文件
;OTH = other
.默认为*
.type
Specifies the source code file type.可以是*
Wildcard or file type.对于CLS
,类型必须是*
.对于RTN
,类型可以是mac、int、inc、bas 、mvi 或 mvb
.对于CSP
,type
可以是js
或css
A 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
如果发生意外错误(详细信息将在状态错误数组中).
边栏推荐
猜你喜欢
随机推荐
数据库治理利器:动态读写分离
【Kali安全渗透测试实践教程】第9章 无线网络渗透
2022.8.9考试平衡的余数--1000题解
Anchor_generators.py analysis of MMDetection framework
实例047:函数交换变量
2022.8.9考试排列变换--1200题解
2022年立下的flag完成情况
跨站请求伪造(CSRF)攻击是什么?如何防御?
网页挖矿溯源?浏览器浏览历史查看工具Browsinghistoryview
从滑动标尺模型看企业网络安全能力评估与建设
2022 Top Net Cup Quals Reverse Partial writeup
what is eabi
2022.8.9 Exam arrangement and transformation--1200 questions solution
官宣出自己的博客啦
【图像分类】2022-ResMLP
The 25th day of the special assault version of the sword offer
Write a drop-down refresh component
量化交易策略介绍及应用市值中性化选股
【二叉树-中等】687. 最长同值路径
深度学习(五) CNN卷积神经网络