mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
Revert "feat(openapi): refactor into indiv. files to match API & tpl routing"
This reverts commit 84f5e4cf3d.
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
get:
|
||||
tags:
|
||||
- admin
|
||||
summary: Get homepage settings
|
||||
responses:
|
||||
"200":
|
||||
description: ""
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
routes:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
route:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||
@@ -1,35 +0,0 @@
|
||||
get:
|
||||
tags:
|
||||
- admin
|
||||
summary: Get language settings
|
||||
responses:
|
||||
"200":
|
||||
description: A JSON object containing available languages and settings
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
languages:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: Localised name of the language
|
||||
code:
|
||||
type: string
|
||||
description: A language code (similar to ISO-639)
|
||||
dir:
|
||||
type: string
|
||||
description: Directionality of the language
|
||||
enum: [ltr, rtl]
|
||||
selected:
|
||||
type: boolean
|
||||
description: Denotes the currently selected default system language on the forum
|
||||
autoDetectLang:
|
||||
type: integer
|
||||
description: Whether the forum will attempt to guess language based on browser's `Accept-Language` header
|
||||
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||
@@ -1,107 +0,0 @@
|
||||
get:
|
||||
tags:
|
||||
- admin
|
||||
summary: Get navigation bar settings
|
||||
responses:
|
||||
"200":
|
||||
description: A JSON object containing navigation settings
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
enabled:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
route:
|
||||
type: string
|
||||
description: Relative URL to the page the navigation item goes to
|
||||
title:
|
||||
type: string
|
||||
description: Tooltip text
|
||||
enabled:
|
||||
type: boolean
|
||||
iconClass:
|
||||
type: string
|
||||
description: A FontAwesome icon string
|
||||
textClass:
|
||||
type: string
|
||||
description: HTML class applied to the text label for this navigation item
|
||||
text:
|
||||
type: string
|
||||
description: Label text for this navigation item
|
||||
order:
|
||||
type: integer
|
||||
description: Ordinality of this item, lower value appears earlier
|
||||
groups:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
displayName:
|
||||
type: string
|
||||
selected:
|
||||
type: boolean
|
||||
index:
|
||||
type: integer
|
||||
description: Seemingly identical to order, but an integer instead of a string
|
||||
selected:
|
||||
type: boolean
|
||||
available:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
description: Unique ID that will be added to the navigation element's `id` property in the DOM
|
||||
route:
|
||||
type: string
|
||||
description: Relative URL to the page the navigation item goes to
|
||||
title:
|
||||
type: string
|
||||
description: Tooltip text
|
||||
enabled:
|
||||
type: boolean
|
||||
iconClass:
|
||||
type: string
|
||||
description: A FontAwesome icon string
|
||||
textClass:
|
||||
type: string
|
||||
description: HTML class applied to the text label for this navigation item
|
||||
text:
|
||||
type: string
|
||||
description: Label text for this navigation item
|
||||
core:
|
||||
type: boolean
|
||||
description: Whether the navigation item is provided by core or not (a plugin)
|
||||
groups:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
displayName:
|
||||
type: string
|
||||
properties:
|
||||
type: object
|
||||
properties:
|
||||
targetBlank:
|
||||
type: boolean
|
||||
groups:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
displayName:
|
||||
type: string
|
||||
navigation:
|
||||
type: array
|
||||
description: A clone of `enabled`
|
||||
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||
@@ -1,28 +0,0 @@
|
||||
get:
|
||||
tags:
|
||||
- admin
|
||||
summary: Get post social sharing settings
|
||||
responses:
|
||||
"200":
|
||||
description: "A JSON object containing post social sharing settings"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
posts:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
class:
|
||||
type: string
|
||||
description: A FontAwesome icon string
|
||||
activated:
|
||||
type: boolean
|
||||
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||
Reference in New Issue
Block a user