feat(openapi): refactor into indiv. files to match API & tpl routing

This commit is contained in:
psychobunny
2020-09-29 15:17:09 -04:00
parent c7d27731b3
commit ffbf2d6d63
125 changed files with 8339 additions and 8224 deletions

View 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

View 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