Wekan REST API v6.93
+Wekan REST API v6.94
@@ -3601,6 +3606,9 @@ System.out.println(response.toString()); "allowsDescriptionTitle": true, "allowsDescriptionText": true, "allowsDescriptionTextOnMinicard": true, + "allowsCoverAttachmentOnMinicard": true, + "allowsBadgeAttachmentOnMinicard": true, + "allowsCardSortingByNumberOnMinicard": true, "allowsCardNumber": true, "allowsActivities": true, "allowsLabels": true, @@ -19429,6 +19437,271 @@ System.out.println(response.toString()); To perform this operation, you must be authenticated by means of one of the following methods: UserSecurity +Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
edit_swimlane
+ +++Code samples
+
# You can also use wget
+curl -X PUT /api/boards/{board}/swimlanes/{swimlane} \
+ -H 'Content-Type: multipart/form-data' \
+ -H 'Accept: application/json' \
+ -H 'Authorization: API_KEY'
+
+
+PUT /api/boards/{board}/swimlanes/{swimlane} HTTP/1.1
+
+Content-Type: multipart/form-data
+Accept: application/json
+
+
+const inputBody = '{
+ "title": "string"
+}';
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/swimlanes/{swimlane}',
+{
+ method: 'PUT',
+ body: inputBody,
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+const fetch = require('node-fetch');
+const inputBody = {
+ "title": "string"
+};
+const headers = {
+ 'Content-Type':'multipart/form-data',
+ 'Accept':'application/json',
+ 'Authorization':'API_KEY'
+};
+
+fetch('/api/boards/{board}/swimlanes/{swimlane}',
+{
+ method: 'PUT',
+ body: JSON.stringify(inputBody),
+ headers: headers
+})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
+
+
+require 'rest-client'
+require 'json'
+
+headers = {
+ 'Content-Type' => 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY'
+}
+
+result = RestClient.put '/api/boards/{board}/swimlanes/{swimlane}',
+ params: {
+ }, headers: headers
+
+p JSON.parse(result)
+
+
+import requests
+headers = {
+ 'Content-Type': 'multipart/form-data',
+ 'Accept': 'application/json',
+ 'Authorization': 'API_KEY'
+}
+
+r = requests.put('/api/boards/{board}/swimlanes/{swimlane}', headers = headers)
+
+print(r.json())
+
+
+URL obj = new URL("/api/boards/{board}/swimlanes/{swimlane}");
+HttpURLConnection con = (HttpURLConnection) obj.openConnection();
+con.setRequestMethod("PUT");
+int responseCode = con.getResponseCode();
+BufferedReader in = new BufferedReader(
+ new InputStreamReader(con.getInputStream()));
+String inputLine;
+StringBuffer response = new StringBuffer();
+while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+}
+in.close();
+System.out.println(response.toString());
+
+
+package main
+
+import (
+ "bytes"
+ "net/http"
+)
+
+func main() {
+
+ headers := map[string][]string{
+ "Content-Type": []string{"multipart/form-data"},
+ "Accept": []string{"application/json"},
+ "Authorization": []string{"API_KEY"},
+ }
+
+ data := bytes.NewBuffer([]byte{jsonReq})
+ req, err := http.NewRequest("PUT", "/api/boards/{board}/swimlanes/{swimlane}", data)
+ req.Header = headers
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ // ...
+}
+
+
+ 'multipart/form-data',
+ 'Accept' => 'application/json',
+ 'Authorization' => 'API_KEY',
+);
+
+$client = new \GuzzleHttp\Client();
+
+// Define array of request body.
+$request_body = array();
+
+try {
+ $response = $client->request('PUT','/api/boards/{board}/swimlanes/{swimlane}', array(
+ 'headers' => $headers,
+ 'json' => $request_body,
+ )
+ );
+ print_r($response->getBody()->getContents());
+ }
+ catch (\GuzzleHttp\Exception\BadResponseException $e) {
+ // handle exception or api errors.
+ print_r($e->getMessage());
+ }
+
+ // ...
+
+
+PUT /api/boards/{board}/swimlanes/{swimlane}
Edit the title of a swimlane
+++Body parameter
+
title: string
+
+
+Parameters
+Name | +In | +Type | +Required | +Description | +
---|---|---|---|---|
board | +path | +string | +true | +the ID of the board | +
swimlane | +path | +string | +true | +the ID of the swimlane to edit | +
body | +body | +object | +true | +none | +
» title | +body | +string | +true | +the new title of the swimlane | +
Detailed descriptions
+board: the ID of the board
+swimlane: the ID of the swimlane to edit
+++Example responses
+
++200 Response
+
{
+ "_id": "string"
+}
+
+Responses
+Status | +Meaning | +Description | +Schema | +
---|---|---|---|
200 | +OK | +200 response | +Inline | +
Response Schema
+Status Code 200
+Name | +Type | +Required | +Restrictions | +Description | +
---|---|---|---|---|
» _id | +string | +false | +none | +none | +
delete_swimlane
@@ -19605,7 +19878,7 @@ System.out.println(response.toString()); -Detailed descriptions
+Detailed descriptions
board: the ID of the board
swimlane: the ID of the swimlane
@@ -19725,6 +19998,9 @@ UserSecurity "allowsDescriptionTitle": true, "allowsDescriptionText": true, "allowsDescriptionTextOnMinicard": true, + "allowsCoverAttachmentOnMinicard": true, + "allowsBadgeAttachmentOnMinicard": true, + "allowsCardSortingByNumberOnMinicard": true, "allowsCardNumber": true, "allowsActivities": true, "allowsLabels": true, @@ -19961,6 +20237,27 @@ UserSecurityDoes the board allows description text on minicard? + +allowsCoverAttachmentOnMinicard +boolean +true +none +Does the board allows cover attachment on minicard? ++ +allowsBadgeAttachmentOnMinicard +boolean +true +none +Does the board allows badge attachment on minicard? ++ +allowsCardSortingByNumberOnMinicard +boolean +true +none +Does the board allows card sorting by number on minicard? +allowsCardNumber boolean true diff --git a/public/api/wekan.yml b/public/api/wekan.yml index e9965ebbe..8ac67c8e1 100644 --- a/public/api/wekan.yml +++ b/public/api/wekan.yml @@ -1,7 +1,7 @@ swagger: '2.0' info: title: Wekan REST API - version: v6.93 + version: v6.94 description: | The REST API allows you to control and extend Wekan with ease. @@ -2483,6 +2483,46 @@ paths: 200 response schema: $ref: "#/definitions/Swimlanes" + put: + operationId: edit_swimlane + summary: Edit the title of a swimlane + tags: + - Swimlanes + consumes: + - multipart/form-data + - application/json + parameters: + - name: title + in: formData + description: | + the new title of the swimlane + type: string + required: true + - name: board + in: path + description: | + the ID of the board + type: string + required: true + - name: swimlane + in: path + description: | + the ID of the swimlane to edit + type: string + required: true + produces: + - application/json + security: + - UserSecurity: [] + responses: + '200': + description: |- + 200 response + schema: + type: object + properties: + _id: + type: string delete: operationId: delete_swimlane summary: Delete a swimlane @@ -3152,6 +3192,9 @@ definitions: - allowsDescriptionTitle - allowsDescriptionText - allowsDescriptionTextOnMinicard + - allowsCoverAttachmentOnMinicard + - allowsBadgeAttachmentOnMinicard + - allowsCardSortingByNumberOnMinicard - allowsCardNumber - allowsActivities - allowsLabels diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp index 4f5694ba7..907a370fa 100644 --- a/sandstorm-pkgdef.capnp +++ b/sandstorm-pkgdef.capnp @@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = ( appTitle = (defaultText = "Wekan"), # The name of the app as it is displayed to the user. - appVersion = 693, + appVersion = 694, # Increment this for every release. - appMarketingVersion = (defaultText = "6.93.0~2023-05-29"), + appMarketingVersion = (defaultText = "6.94.0~2023-06-07"), # Human-readable presentation of the app version. minUpgradableAppVersion = 0, diff --git a/snapcraft.yaml b/snapcraft.yaml index 4601db16f..cebe52ec2 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1,5 +1,5 @@ name: wekan -version: '6.93' +version: '6.94' base: core20 summary: Open Source kanban description: | @@ -168,9 +168,9 @@ parts: # Cleanup mkdir .build cd .build - wget https://github.com/wekan/wekan/releases/download/v6.93/wekan-6.93-amd64.zip - unzip wekan-6.93-amd64.zip - rm wekan-6.93-amd64.zip + wget https://github.com/wekan/wekan/releases/download/v6.94/wekan-6.94-amd64.zip + unzip wekan-6.94-amd64.zip + rm wekan-6.94-amd64.zip cd .. ##cd .build/bundle ##find . -type d -name '*-garbage*' | xargs rm -rf