当前位置:网站首页>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
如果发生意外错误(详细信息将在状态错误数组中).
边栏推荐
- QT modal dialog and non-modal dialog learning
- 2022.8.9考试独特的投标拍卖--800题解
- Go语言JSON文件的读写操作
- 2022.8.8考试游记总结
- 【语义分割】2022-HRViT CVPR
- The 25th day of the special assault version of the sword offer
- 2020.11.22 Exam Goldbach Conjecture Solution
- 【二叉树-中等】687. 最长同值路径
- 【二叉树-中等】1104. 二叉树寻路
- MySQL:日志系统介绍 | 错误日志 | 查询日志 | 二进制日志:bin-log数据恢复实践 | 慢日志查询
猜你喜欢
web crawler error
Pycharm中6个常用插件推荐
Pagoda server PHP+mysql web page URL jump problem
【图像分类】2022-ResMLP
通关剑指 Offer——剑指 Offer II 012. 左右两边子数组的和相等
【Kali安全渗透测试实践教程】第6章 密码攻击
月薪35K,靠八股文就能做到的事,你居然不知道
Data Governance (5): Metadata Management
[Kali Security Penetration Testing Practice Course] Chapter 9 Wireless Network Penetration
T5: Text-to-Text Transfer Transformer
随机推荐
QT模态对话框及非模态对话框学习
【二叉树-中等】687. 最长同值路径
算法与语音对话方向面试题库
2022 Top Net Cup Quals Reverse Partial writeup
On the Harvest of Travel
ArcGIS Advanced (1) - Install ArcGIS Enterprise and create an sde library
2022.8.9 Exam arrangement and transformation--1200 questions solution
Research on IC enterprises
[Kali Security Penetration Testing Practice Course] Chapter 9 Wireless Network Penetration
QT中,QTableWidget 使用示例详细说明
《GB39707-2020》PDF download
Open3D 网格均匀采样
mysql -sql编程
MySQL:你做过哪些MySQL的优化?
openpose脚部标注问题梳理
2022.8.9 Exam Cube Sum--1100 Question Solutions
将信号与不同开始时间对齐
flask增删改查
ECCV 2022 Oral | CCPL: 一种通用的关联性保留损失函数实现通用风格迁移
2022.8.9考试独特的投标拍卖--800题解