开放原子开源基金会开源运营专区APIs
  1. 模版
开放原子开源基金会开源运营专区APIs
  • 接口文档
  • 前台
    • 推荐
      • 组织
        • 组织列表
      • 开发者
        • 开发者列表
      • 仓库
        • 仓库列表
      • 资讯
        • 推荐-资讯接口
        • 推荐-资讯详情接口
        • 点赞、收藏接口(已包含取消操作)-需登录
        • 点赞、收藏、浏览统计接口
    • 首页
      • 社区
        • 获取社区
      • 导航栏
        • 查询社区导航栏
      • 运营
        • 运营位通用接口
      • 模版
        • 获取社区模版关系表中控制的模版
          GET
      • 热门组织
        • 热门组织
      • 热门开发者
        • 热门开发者
      • 热门仓库
        • 热门仓库
      • 精选
        • 首页精选-模块
      • 推荐
        • 首页-推荐-模版1
        • 首页-推荐-模板2,3
        • 首页-组织
        • 首页-仓库
        • 首页-最新
      • 数据
        • 获取首页数据信息
        • PV,UV实时统计接口(每访问一次页面调用一次)
      • footer
        • footer列表
      • 邮箱
        • 添加订阅
        • 退订邮箱
      • 资讯
        • 资讯模块
      • 活动
        • 活动列表
    • 登录/关注
      • 当前登录用户信息
      • 用户小红点
      • 关注用户
      • 取消关注用户
      • 关注组织
      • 取消关注组织
      • 加入社区
      • 当前登录用户是否已加入该社区
      • code换token
    • 悬浮窗
      • 悬浮窗列表
    • 自定义弹窗
      • 弹窗信息接口
    • SEO
      • 获取robots文件内容
      • 获取sitemap接口
    • 广告
      • 获取广告
    • 原生登录接口
      • 注册-邮箱
      • 登录-账号密码
      • 验证码-邮箱
      • 登录-邮箱验证码
      • 账号-登出
      • 账号-注销
  1. 模版

获取社区模版关系表中控制的模版

开发中
GET
https://openatom.atomgit.com/api/template/queryTemplateByCommunityId

请求参数

Header 参数
X-ATOMGIT-POP-COMMUNITY
string 
社区CODE
可选
默认值:
openatom
Body 参数application/json
object {0}
示例
{}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://openatom.atomgit.com/api/template/queryTemplateByCommunityId' \
--header 'X-ATOMGIT-POP-COMMUNITY: openatom' \
--header 'Content-Type: application/json' \
--data-raw '{}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
object 
必需
templateId
integer 
模板ID
必需
templateName
null 
模板名称
必需
templateType
null 
模板类型
必需
tempControl
string 
模板具体控制
必需
type -类型 options-具体模块控制
templateUse
null 
必需
示例
{
  "code": 200,
  "msg": "成功",
  "data": {
    "templateId": 1,
    "communityId": 1,
    "templateName": null,
    "templateType": null,
    "tempControl": "{\"type\":\"1\",\"options\":{\"Carousel\":\"1\",\"CommunityCard\":\"1\",\"CommunityData\":\"1\",\"Developer\":\"1\",\"OperationCard\":\"1\",\"Organization\":\"1\",\"Recommend\":\"1\",\"Repository\":\"1\",\"Selected\":\"1\"}}",
    "templateUse": null
  }
}
上一页
运营位通用接口
下一页
热门组织
Built with