alenfive / rocket-api Goto Github PK
View Code? Open in Web Editor NEWAPI敏捷开发框架,用于API接口功能的快速开发。不再定义Controller,Service,Dao,Mybatis,xml,Entity,VO等对象和方法.以springboot starter 形式集成使用
License: Apache License 2.0
API敏捷开发框架,用于API接口功能的快速开发。不再定义Controller,Service,Dao,Mybatis,xml,Entity,VO等对象和方法.以springboot starter 形式集成使用
License: Apache License 2.0
sql = """
select * from user where id in (#{idList})
"""
您好,数组传参时会自动转成逗号拼接,如果是对象数组呢?
[{
"name":"zhangsan",
"age":"12"
},{
"name":"lisi",
"age":"14"
}]
期望转换的sql为:
select * from table where ( name = "zhangsan" and age=12) or ( name = "lisi" and age=14)
当前目录仅为2层,希望能够进行创建多层目录。由于目前考虑设计系统多级模块,多级对象的CURD。两层管理不方便。
如果涉及到数百个API的情况。同时也可否考虑提供个API管理列表。提高管理的便捷性。
期望能够提供一个管理界面,进行注册、维护可以访问的数据源。并提供数据源的热加载、热切换。避免线上运行的API,由于新增加数据源,导致程序重新启动。
感谢!
会出现404访问问题,请问我需要做些什么。。
BODY
{
"timestamp": 1634284270660,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/interface-ui/interface-ui/at"
}
一键生成CRUD接口可以使开发效率又翻一倍, 期望输入通用信息,自动生成相关接口.
例如:
输入:
生成接口和对应的脚本:
如题,希望支持ElasticSearch数据源,以及封装数据访问的接口。
注意:支持ElasticSearch的几种认证模式的连接配置。
ctrl +s 过快,访问API时,提示重复注册
{"timestamp":"2021-07-16 10:36:40","status":500,"error":"Internal Server Error","message":"PreparedStatementCallback; uncategorized SQLException for SQL [select id,api_info_id,url,method,request_header,request_body,response_header,response_body,status,elapsed_time,editor,options,create_time from api_example where api_info_id=? order by id desc OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY]; SQL state [S0001]; error code [102]; 'OFFSET' 附近有语法错误。; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: 'OFFSET' 附近有语法错误。","path":"/hkApp/api-example/last"}
两条
CREATE TABLE "API_INFO"
1、提供批量导入/更新,for循环 addBatch
2、动态传参,多条件组合查询,SQL模板类似Mybatis动态能力 动态拼接AND OR 组合条件
3、定时器,创建/停止/修改/运行定时器任务
4、操作Redis、MQ(含Redis、MQ注册)
5、通过HttpClient访问外部服务,获取数据后在本系统中再次发布
5、能够发布WebSocket服务?
1、如果不是操作数据库,应用界面上默认数据库的选择界面实际没有意义,反而可能造成后端无故打卡数据连接。
2、如果一个API中需要访问多个不同的数据库,并将结果拼接输出情况,如何解决?
是否可考虑:在面板中增加一个开启数据连接的功能,提供[+]和[-]开启或关闭需要连接的数据库,通过开启数据数据库名称即为全局变量名称,可以在API中显示调用,清晰明了。
3、返回Json的统一模板能否开放,提供自定义json结构的命名。
比如:
当前系统返回的内容,如下
{
"totalRecords": 1,
"data": [
{
"name": "magic",
"id": "5f9fb1b6f8b91c4a04a63a85",
"sex": 1
}
],
"pageNo": 1,
"totalPages": 1,
"pageSize": 1,
"index": 0
}
我能否重命名 “totalRecords” 叫total,pageNo、totalPages、pageSize、index 修改名称,或者去掉一些返回值。
看您并未再文档中介绍关于权限方面的问题,由于目前大部分的场景下都需要使用一种鉴权方式,JWT或者shrio都行,想问一下是否支持
版本:2.3.5
问题描述: 多数据源时,API执行的数据源不是RocketApi的主库。比如RocketApi主库为A; API执行的数据库为B;此时API的执行没有事务
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.