mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 01:05:36 +02:00
feat(openapi): refactor into indiv. files to match API & tpl routing
This commit is contained in:
34
public/openapi/api/groups/slug.yaml
Normal file
34
public/openapi/api/groups/slug.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
get:
|
||||
tags:
|
||||
- groups
|
||||
summary: Get user group details
|
||||
parameters:
|
||||
- name: slug
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
example: administrators
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
title:
|
||||
type: string
|
||||
group:
|
||||
$ref: ../../components/schemas/GroupObject.yaml#/GroupFullObject
|
||||
posts:
|
||||
$ref: ../../components/schemas/PostsObject.yaml#/PostsObject
|
||||
isAdmin:
|
||||
type: boolean
|
||||
isGlobalMod:
|
||||
type: boolean
|
||||
allowPrivateGroups:
|
||||
type: number
|
||||
- $ref: ../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
|
||||
- $ref: ../../components/schemas/CommonProps.yaml#/CommonProps
|
||||
25
public/openapi/api/groups/slug/members.yaml
Normal file
25
public/openapi/api/groups/slug/members.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
get:
|
||||
tags:
|
||||
- groups
|
||||
summary: Get user group members
|
||||
parameters:
|
||||
- name: slug
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
example: administrators
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
users:
|
||||
type: array
|
||||
- $ref: ../../../components/schemas/Pagination.yaml#/Pagination
|
||||
- $ref: ../../../components/schemas/Breadcrumbs.yaml#/Breadcrumbs
|
||||
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||
Reference in New Issue
Block a user