当前位置:网站首页>Chapter 20 Source Code File REST API Reference (2)
Chapter 20 Source Code File REST API Reference (2)
2022-08-08 16:49:00 【yaoxin521123】
文章目录
第二十章 源代码文件 REST API 参考(二)
GetMetaData
This method returns the named database METADATA.zip
文件的二进制内容. Atelier
Use this file to store indexing information,in order to preserve this information for future sessions.
URL
GET http://server:port/api/atelier/v1/%25SYS/metadata/database
注意:因为 %
是 URL
特殊字符,So specify text %
,must be followed by 25
(Hexadecimal code for the percent character).因此,必须使用 %25SYS
to specify text %SYS
.
HTTP 返回码
HTTP 200
如果正常.- If the source code file does not exist,则返回
HTTP 404
. HTTP 500
If an unexpected error occurs(Details will be in the status error array).
GetCSPApps
This method returns the definitions defined on the server or for the specified namespace on the server Web
应用程序列表.
URL
GET http://server:port/api/atelier/v1/%25SYS/cspapps
GET http://server:port/api/atelier/v1/%25SYS/cspapps/namespace
其中:
namespace
Specifies the name of the namespace.如果未指定命名空间,then this method returns all namespaces Web
应用程序.
注意:因为 %
是 URL
特殊字符,So specify text %
,must be followed by 25
(Hexadecimal code for the percent character).因此,必须使用 %25SYS
to specify text %SYS
.
URL Parameters
可以传递 URL
参数 ?detail=1
to return an array containing objects describing the application in more detail.
JSON Messages
What is returned below is a list of already defined Web
An array of applications:
{
"status": {
"errors": [],
"summary": ""
},
"console": [],
"result": {
"content": [
"/csp/broker",
"/csp/documatic",
"/csp/sys",
"/csp/sys/exp",
"/csp/sys/mgr",
"/csp/sys/op",
"/csp/sys/sec",
"/isc/studio/rules",
"/isc/studio/templates",
"/isc/studio/usertemplates",
"/csp/user"
]
}
}
以下是 detail=1
the same return content:
{
"status": {
"errors": [],
"summary": ""
},
"console": [],
"result": {
"content": [
{
"name": "/csp/broker",
"default": false
},
{
"name": "/csp/documatic",
"default": false
},
{
"name": "/csp/sys",
"default": true
},
{
"name": "/csp/sys/exp",
"default": false
},
{
"name": "/csp/sys/mgr",
"default": false
},
{
"name": "/csp/sys/op",
"default": false
},
{
"name": "/csp/sys/sec",
"default": false
},
{
"name": "/isc/studio/rules",
"default": false
},
{
"name": "/isc/studio/templates",
"default": false
},
{
"name": "/isc/studio/usertemplates",
"default": false
},
{
"name": "/csp/user",
"default": true
}
]
}
}
HTTP 返回码
HTTP 200
如果正常.HTTP 500
If an unexpected error occurs(Details will be in the status error array).
GetNamespace
This method returns information about a specific namespace.
URL
GET http://server:port/api/atelier/v1/namespace
JSON Messages
Following are the namespacesUSER
return content information:
{
"status": {
"errors": [],
"summary": ""
},
"console": [],
"result": {
"content": {
"name": "USER",
"db": [
{
"name": "USER",
"crhash": "3A1A0E8B6C8",
"default": true,
"dbsys": false
},
{
"name": "IRISLIB",
"crhash": "A56AAA8D5418",
"default": false,
"dbsys": true
},
{
"name": "IRISLOCALDATA",
"crhash": "3A1A0551876",
"default": false,
"dbsys": false
},
{
"name": "IRISSYS",
"crhash": "3A19FFD2EF0",
"default": false,
"dbsys": true
}
],
"features": [
{
"name": "ENSEMBLE",
"enabled": false
}
]
}
}
}
HTTP 返回码
HTTP 200
如果正常.HTTP 500
If an unexpected error occurs(Details will be in the status error array).
边栏推荐
猜你喜欢
随机推荐
京东二面:高并发设计,都有哪些技术方案?
9.cuBLAS开发指南中文版--cuBLAS中的原子模式的配置
使用 Pygame 构建和可视化数独游戏
LeetCode_回溯_中等_491.递增子序列
好用的项目工时管理系统有哪些
调研阶段复盘
Obtain - 64 [chances] : the soldier, subtlety also - 5 - read sun tzu - melee meter
Digital image processing (6) -- image compression
Spark cluster environment construction
【uniapp小程序】视图容器cover-view
Building and Visualizing Sudoku Games with Pygame
ERROR Failed to compile with 1 error
iNFTnews | Metaverse brings new ideas for enterprise development
急了,Mysql索引中最不容易记的三个知识点通透了
Redis design and implementation notes (1)
QCon 回顾 | Data Fabric:逻辑统一、物理分散
Grafana配置LDAP认证
耐心排序——专门快速解决最长递增子数组
产品经理常用的19类50+工具软件盘点
Web3构架是怎么样的?