mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-24 08:22:29 +02:00
Fix Swagger schema for OnboardingResponse (#2838)
* Upgrade npm in build-ubuntu * npm i -S moment * Don't upgrade npm * macos-latest on build-mac * Update dev-release.yml * Fix Swagger schema
This commit is contained in:
parent
50930a1cd3
commit
bb7ee3851c
@ -2566,7 +2566,14 @@ func (a *API) handleOnboard(w http.ResponseWriter, r *http.Request) {
|
||||
// '200':
|
||||
// description: success
|
||||
// schema:
|
||||
// "$ref": "#/definitions/OnboardingResponse"
|
||||
// type: object
|
||||
// properties:
|
||||
// teamID:
|
||||
// type: string
|
||||
// description: Team ID
|
||||
// boardID:
|
||||
// type: string
|
||||
// description: Board ID
|
||||
// default:
|
||||
// description: internal error
|
||||
// schema:
|
||||
|
@ -1497,6 +1497,19 @@ ul.nav-tabs {
|
||||
},
|
||||
"description" : "FileUploadResponse is the response to a file upload",
|
||||
"x-go-package" : "github.com/mattermost/focalboard/server/api"
|
||||
};
|
||||
defs["inline_response_200"] = {
|
||||
"type" : "object",
|
||||
"properties" : {
|
||||
"boardID" : {
|
||||
"type" : "string",
|
||||
"description" : "Board ID"
|
||||
},
|
||||
"teamID" : {
|
||||
"type" : "string",
|
||||
"description" : "Team ID"
|
||||
}
|
||||
}
|
||||
};
|
||||
defs["LoginRequest"] = {
|
||||
"required" : [ "password", "type" ],
|
||||
@ -18877,7 +18890,7 @@ public class DefaultApiExample {
|
||||
String teamID = teamID_example; // String | Team ID
|
||||
|
||||
try {
|
||||
OnboardingResponse result = apiInstance.onboard(teamID);
|
||||
inline_response_200 result = apiInstance.onboard(teamID);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DefaultApi#onboard");
|
||||
@ -18897,7 +18910,7 @@ public class DefaultApiExample {
|
||||
String teamID = teamID_example; // String | Team ID
|
||||
|
||||
try {
|
||||
OnboardingResponse result = apiInstance.onboard(teamID);
|
||||
inline_response_200 result = apiInstance.onboard(teamID);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling DefaultApi#onboard");
|
||||
@ -18925,7 +18938,7 @@ String *teamID = teamID_example; // Team ID (default to null)
|
||||
|
||||
// Onboards a user on Boards.
|
||||
[apiInstance onboardWith:teamID
|
||||
completionHandler: ^(OnboardingResponse output, NSError* error) {
|
||||
completionHandler: ^(inline_response_200 output, NSError* error) {
|
||||
if (output) {
|
||||
NSLog(@"%@", output);
|
||||
}
|
||||
@ -18988,7 +19001,7 @@ namespace Example
|
||||
|
||||
try {
|
||||
// Onboards a user on Boards.
|
||||
OnboardingResponse result = apiInstance.onboard(teamID);
|
||||
inline_response_200 result = apiInstance.onboard(teamID);
|
||||
Debug.WriteLine(result);
|
||||
} catch (Exception e) {
|
||||
Debug.Print("Exception when calling DefaultApi.onboard: " + e.Message );
|
||||
@ -19161,7 +19174,7 @@ Team ID
|
||||
"content" : {
|
||||
"application/json" : {
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/OnboardingResponse"
|
||||
"$ref" : "#/components/schemas/inline_response_200"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1779,7 +1779,14 @@ paths:
|
||||
"200":
|
||||
description: success
|
||||
schema:
|
||||
$ref: '#/definitions/OnboardingResponse'
|
||||
properties:
|
||||
boardID:
|
||||
description: Board ID
|
||||
type: string
|
||||
teamID:
|
||||
description: Team ID
|
||||
type: string
|
||||
type: object
|
||||
default:
|
||||
description: internal error
|
||||
schema:
|
||||
|
Loading…
Reference in New Issue
Block a user