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

获取社区

开发中
GET
https://openatom.atomgit.com/api/community/getCommunityInfo

请求参数

Header 参数
X-ATOMGIT-POP-COMMUNITY
string 
可选
示例值:
openatom

示例代码

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/community/getCommunityInfo' \
--header 'X-ATOMGIT-POP-COMMUNITY: openatom' \
--header 'X-ATOMGIT-POP-COMMUNITY;'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
msg
string 
必需
data
object 
必需
communityId
integer 
必需
communityCode
string 
社区id
必需
communityName
string 
社区名称
必需
applyToJoin
integer 
是否允许申请加入社区 1:允许。2:不允许
必需
communityPic
string 
社区照片
必需
commIllustrate
string 
社区简介
必需
commAddress
string 
社区地址
必需
communityLogo
string 
社区logo
必需
flag
integer 
是否删除1否。0是
必需
createName
string 
必需
createTime
string 
必需
updateName
null 
必需
updateTime
string 
必需
atomgitPopCommunityMediumVOList
array [object {4}] 
媒体
必需
示例
{
  "code": 200,
  "msg": "成功",
  "data": {
    "communityId": 1,
    "communityCode": "chongqing",
    "communityName": "重庆社区",
    "applyToJoin": 1,
    "communityPic": "pic",
    "commIllustrate": "sdfaslf",
    "commAddress": "文华路",
    "communityLogo": "logoPic",
    "flag": 1,
    "createName": "1",
    "createTime": "2024-03-22T10:10:30",
    "updateName": null,
    "updateTime": "2024-04-03T14:46:28",
    "atomgitPopCommunityMediumVOList": [
      {
        "operatorId": 4,
        "mediumName": "文华",
        "mediumJumpAddress": "文华路",
        "mediumPic": "帅照"
      },
      {
        "operatorId": 5,
        "mediumName": "一号女友",
        "mediumJumpAddress": "一号路",
        "mediumPic": "女神"
      },
      {
        "operatorId": 6,
        "mediumName": "二号女友",
        "mediumJumpAddress": "二号路",
        "mediumPic": "女神二号"
      }
    ]
  }
}
上一页
点赞、收藏、浏览统计接口
下一页
查询社区导航栏
Built with