feat: force setup if app is not initialized

This commit is contained in:
sct
2020-11-12 09:07:49 +00:00
parent c0ce87b6f6
commit a99705f6a5
7 changed files with 120 additions and 32 deletions

View File

@@ -1160,6 +1160,7 @@ paths:
/settings/public:
get:
summary: Returns public settings
security: []
description: Returns settings that are not protected or sensitive. Mainly used to determine if the app has been configured for the first time.
tags:
- settings
@@ -1170,6 +1171,19 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/PublicSettings'
/settings/initialize:
get:
summary: Set the application as initialized
description: Sets the app as initalized and allows the user to navigate to pages other than the setup page
tags:
- settings
responses:
'200':
description: Public Settings returned
content:
application/json:
schema:
$ref: '#/components/schemas/PublicSettings'
/settings/jobs:
get:
summary: Returns list of scheduled jobs
@@ -1887,6 +1901,12 @@ paths:
type: string
nullable: true
enum: [all, available, partial, processing, pending]
- in: query
name: sort
schema:
type: string
enum: [added, modified]
default: added
responses:
'200':
description: Returned media