Comments (3)
@DexSinis tag一般是最外层的Table名,你这个请求最外层没有Table,设置了也没用。
如果是
{
"User":{
...
}
}
这种,tag就可以为User。
{
"User":{
...
},
"tag":"User"
}
例如新增一条评论
URL: base_url/post
请求:
{
"Comment":{
"userId":82001,
"momentId":301,
"content":"test post a comment"
},
"tag":"Comment"
}
注:新增Comment必须登录后才行哦 -- @ MethodAccess(POST = {LOGIN})
https://github.com/TommyLemon/APIJSON#3.1
from apijson.
@DexSinis
登录接口示例
TommyLemon/APIJSON-JS#2
from apijson.
或者改下Comment的权限注解
查看权限配置
@MethodAccess(
POST = {UNKNOWN, LOGIN}
)
public class Comment {
}
这样未登录也能新增评论了
from apijson.
Related Issues (20)
- Cannot invoke "java.lang.Boolean.booleanValue()" HOT 1
- 行级数据权限的实现 HOT 15
- 【Baidu 百度】【500 强】 GitHub 官方主页链接了 APIJSON
- 美国公司 privado.ai 老外员工发 Twitter 提到为 APIJSON 提交 PR 贡献了代码
- [Baidu] GitHub official page linked APIJSON
- [Bug] Script 不允许 UNKNOWN 用户的 GET 请求 HOT 3
- [Bug] sqlserver查询聚合函数出错 HOT 15
- [Bug] sqlserver 查询聚合函数出错
- [运行出错] multidatasource demo运行出错 HOT 1
- [Bug] inner join可以正常拼where条件,但是left join 不行 HOT 4
- 看起来是漏了此处代码 HOT 9
- [存储过程] 怎么调用sqlserver存储过程? HOT 10
- Cannot invoke "java.util.Map.get(Object)" because "apijson.orm.AbstractVerifier.ACCESS_FAKE_DELETE_MAP" is null HOT 5
- 6.3.0 响应驼峰格式问题 HOT 45
- [Video 视频] 简单低代码平台1-接口配置
- APIJSON Router 模式 参数 映射咨询 HOT 1
- crud复杂语句catch删除脏数据,请问有好的解决方案吗? HOT 22
- [问题] jitpack 上的springboot3版本似乎没发布成功 HOT 17
- [Ecosystem 生态] apijson-mongodb,NoSQL 数据库 MongoDB 的 APIJSON 插件
- [InfluxDB] APIJSON 新增支持时序数据库(物联网) InfluxDB
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apijson.