现在在做一个前后端分离的消息类网站,通过wx_rest_api来做数据交互。
技术栈:nuxt+wordpress。
现在有一个问题,在wordpress后台自定义页面,通过写菜单栏跳转到用javascript写的页面,通过axios,rest_api来传表单数据,请问在数据库中自己新建表,通过rest_api来访问吗?
如下,用的都是已经定义好的,posts来储存文章。
this.$axios
.get("posts?categories=21&_embed")
.then(res => { })
.catch(err => {
console.error(err);
});
我想新建products,来存储其他的分类,比如产品,但不是存在posts当中。这样可以实现吗?