OpenAPI Document on Azure Functions

Lists

createList

Creates a new list.

Creates a new list.


/lists

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7257/api/lists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListsApi;

import java.io.File;
import java.util.*;

public class ListsApiExample {

    public static void main(String[] args) {
        
        ListsApi apiInstance = new ListsApi();
        CreateListDto body = ; // CreateListDto | The details of the list to create.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readListDto result = apiInstance.createList(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#createList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListsApi;

public class ListsApiExample {

    public static void main(String[] args) {
        ListsApi apiInstance = new ListsApi();
        CreateListDto body = ; // CreateListDto | The details of the list to create.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readListDto result = apiInstance.createList(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#createList");
            e.printStackTrace();
        }
    }
}
CreateListDto *body = ; // The details of the list to create.
String *authorization = authorization_example; // Bearer token for authorization.

ListsApi *apiInstance = [[ListsApi alloc] init];

// Creates a new list.
[apiInstance createListWith:body
    authorization:authorization
              completionHandler: ^(readListDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.ListsApi()
var body = ; // {{CreateListDto}} The details of the list to create.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createList(bodyauthorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createListExample
    {
        public void main()
        {

            var apiInstance = new ListsApi();
            var body = new CreateListDto(); // CreateListDto | The details of the list to create.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Creates a new list.
                readListDto result = apiInstance.createList(body, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ListsApi.createList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiListsApi();
$body = ; // CreateListDto | The details of the list to create.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->createList($body, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListsApi->createList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ListsApi;

my $api_instance = WWW::SwaggerClient::ListsApi->new();
my $body = WWW::SwaggerClient::Object::CreateListDto->new(); # CreateListDto | The details of the list to create.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->createList(body => $body, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ListsApi->createList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ListsApi()
body =  # CreateListDto | The details of the list to create.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Creates a new list.
    api_response = api_instance.create_list(body, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListsApi->createList: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Body parameters
Name Description
body *

Responses

Status: 201 - The created list details.

Status: 400 - Invalid input.

Status: 500 - An error occurred.


deleteList

Deletes a list by its ID.

Deletes a list by its ID.


/lists/{listId}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7257/api/lists/{listId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListsApi;

import java.io.File;
import java.util.*;

public class ListsApiExample {

    public static void main(String[] args) {
        
        ListsApi apiInstance = new ListsApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to delete.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            void result = apiInstance.deleteList(listId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#deleteList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListsApi;

public class ListsApiExample {

    public static void main(String[] args) {
        ListsApi apiInstance = new ListsApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to delete.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            void result = apiInstance.deleteList(listId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#deleteList");
            e.printStackTrace();
        }
    }
}
UUID *listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The ID of the list to delete.
String *authorization = authorization_example; // Bearer token for authorization.

ListsApi *apiInstance = [[ListsApi alloc] init];

// Deletes a list by its ID.
[apiInstance deleteListWith:listId
    authorization:authorization
              completionHandler: ^(void output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.ListsApi()
var listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The ID of the list to delete.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteList(listId, authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteListExample
    {
        public void main()
        {

            var apiInstance = new ListsApi();
            var listId = new UUID(); // UUID | The ID of the list to delete.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Deletes a list by its ID.
                void result = apiInstance.deleteList(listId, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ListsApi.deleteList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiListsApi();
$listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to delete.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->deleteList($listId, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListsApi->deleteList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ListsApi;

my $api_instance = WWW::SwaggerClient::ListsApi->new();
my $listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The ID of the list to delete.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->deleteList(listId => $listId, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ListsApi->deleteList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ListsApi()
listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The ID of the list to delete.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Deletes a list by its ID.
    api_response = api_instance.delete_list(listId, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListsApi->deleteList: %s\n" % e)

Parameters

Path parameters
Name Description
listId*
UUID (uuid)
The ID of the list to delete.
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 204 - List deleted successfully.

Status: 404 - List not found.

Status: 500 - An error occurred.


getAllLists

Retrieves all lists.

Retrieves all lists.


/lists

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/lists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListsApi;

import java.io.File;
import java.util.*;

public class ListsApiExample {

    public static void main(String[] args) {
        
        ListsApi apiInstance = new ListsApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readListDto] result = apiInstance.getAllLists(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getAllLists");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListsApi;

public class ListsApiExample {

    public static void main(String[] args) {
        ListsApi apiInstance = new ListsApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readListDto] result = apiInstance.getAllLists(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getAllLists");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.

ListsApi *apiInstance = [[ListsApi alloc] init];

// Retrieves all lists.
[apiInstance getAllListsWith:authorization
              completionHandler: ^(array[readListDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.ListsApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllLists(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllListsExample
    {
        public void main()
        {

            var apiInstance = new ListsApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Retrieves all lists.
                array[readListDto] result = apiInstance.getAllLists(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ListsApi.getAllLists: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiListsApi();
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->getAllLists($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListsApi->getAllLists: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ListsApi;

my $api_instance = WWW::SwaggerClient::ListsApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->getAllLists(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ListsApi->getAllLists: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ListsApi()
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Retrieves all lists.
    api_response = api_instance.get_all_lists(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListsApi->getAllLists: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 200 - A collection of all lists.

Status: 500 - An error occurred.


getListById

Retrieves a list by its ID.

Retrieves a list by its ID.


/lists/{listId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/lists/{listId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListsApi;

import java.io.File;
import java.util.*;

public class ListsApiExample {

    public static void main(String[] args) {
        
        ListsApi apiInstance = new ListsApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readListDto result = apiInstance.getListById(listId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getListById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListsApi;

public class ListsApiExample {

    public static void main(String[] args) {
        ListsApi apiInstance = new ListsApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readListDto result = apiInstance.getListById(listId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getListById");
            e.printStackTrace();
        }
    }
}
UUID *listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The ID of the list to retrieve.
String *authorization = authorization_example; // Bearer token for authorization.

ListsApi *apiInstance = [[ListsApi alloc] init];

// Retrieves a list by its ID.
[apiInstance getListByIdWith:listId
    authorization:authorization
              completionHandler: ^(readListDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.ListsApi()
var listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The ID of the list to retrieve.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getListById(listId, authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getListByIdExample
    {
        public void main()
        {

            var apiInstance = new ListsApi();
            var listId = new UUID(); // UUID | The ID of the list to retrieve.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Retrieves a list by its ID.
                readListDto result = apiInstance.getListById(listId, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ListsApi.getListById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiListsApi();
$listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to retrieve.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->getListById($listId, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListsApi->getListById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ListsApi;

my $api_instance = WWW::SwaggerClient::ListsApi->new();
my $listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The ID of the list to retrieve.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->getListById(listId => $listId, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ListsApi->getListById: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ListsApi()
listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The ID of the list to retrieve.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Retrieves a list by its ID.
    api_response = api_instance.get_list_by_id(listId, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListsApi->getListById: %s\n" % e)

Parameters

Path parameters
Name Description
listId*
UUID (uuid)
The ID of the list to retrieve.
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 200 - The list details.

Status: 404 - List not found.

Status: 500 - An error occurred.


getPublicLists

Retrieves all public lists.

Retrieves all public lists.


/public/lists

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/public/lists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListsApi;

import java.io.File;
import java.util.*;

public class ListsApiExample {

    public static void main(String[] args) {
        
        ListsApi apiInstance = new ListsApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readListDto] result = apiInstance.getPublicLists(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getPublicLists");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListsApi;

public class ListsApiExample {

    public static void main(String[] args) {
        ListsApi apiInstance = new ListsApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readListDto] result = apiInstance.getPublicLists(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getPublicLists");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.

ListsApi *apiInstance = [[ListsApi alloc] init];

// Retrieves all public lists.
[apiInstance getPublicListsWith:authorization
              completionHandler: ^(array[readListDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.ListsApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPublicLists(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPublicListsExample
    {
        public void main()
        {

            var apiInstance = new ListsApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Retrieves all public lists.
                array[readListDto] result = apiInstance.getPublicLists(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ListsApi.getPublicLists: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiListsApi();
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->getPublicLists($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListsApi->getPublicLists: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ListsApi;

my $api_instance = WWW::SwaggerClient::ListsApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->getPublicLists(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ListsApi->getPublicLists: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ListsApi()
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Retrieves all public lists.
    api_response = api_instance.get_public_lists(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListsApi->getPublicLists: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 200 - A collection of public lists.

Status: 500 - An error occurred.


getUserLists

Retrieves all lists created by a specific user.

Retrieves all lists created by a specific user.


/user/lists

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/user/lists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListsApi;

import java.io.File;
import java.util.*;

public class ListsApiExample {

    public static void main(String[] args) {
        
        ListsApi apiInstance = new ListsApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readListDto] result = apiInstance.getUserLists(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getUserLists");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListsApi;

public class ListsApiExample {

    public static void main(String[] args) {
        ListsApi apiInstance = new ListsApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readListDto] result = apiInstance.getUserLists(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#getUserLists");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.

ListsApi *apiInstance = [[ListsApi alloc] init];

// Retrieves all lists created by a specific user.
[apiInstance getUserListsWith:authorization
              completionHandler: ^(array[readListDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.ListsApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserLists(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserListsExample
    {
        public void main()
        {

            var apiInstance = new ListsApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Retrieves all lists created by a specific user.
                array[readListDto] result = apiInstance.getUserLists(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ListsApi.getUserLists: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiListsApi();
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->getUserLists($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListsApi->getUserLists: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ListsApi;

my $api_instance = WWW::SwaggerClient::ListsApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->getUserLists(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ListsApi->getUserLists: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ListsApi()
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Retrieves all lists created by a specific user.
    api_response = api_instance.get_user_lists(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListsApi->getUserLists: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 200 - A collection of lists created by the specified user.

Status: 500 - An error occurred.


updateList

Updates an existing list.

Updates an existing list.


/lists

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7257/api/lists"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ListsApi;

import java.io.File;
import java.util.*;

public class ListsApiExample {

    public static void main(String[] args) {
        
        ListsApi apiInstance = new ListsApi();
        UpdateListDto body = ; // UpdateListDto | The details of the list to update.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readListDto result = apiInstance.updateList(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#updateList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ListsApi;

public class ListsApiExample {

    public static void main(String[] args) {
        ListsApi apiInstance = new ListsApi();
        UpdateListDto body = ; // UpdateListDto | The details of the list to update.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readListDto result = apiInstance.updateList(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ListsApi#updateList");
            e.printStackTrace();
        }
    }
}
UpdateListDto *body = ; // The details of the list to update.
String *authorization = authorization_example; // Bearer token for authorization.

ListsApi *apiInstance = [[ListsApi alloc] init];

// Updates an existing list.
[apiInstance updateListWith:body
    authorization:authorization
              completionHandler: ^(readListDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.ListsApi()
var body = ; // {{UpdateListDto}} The details of the list to update.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateList(bodyauthorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateListExample
    {
        public void main()
        {

            var apiInstance = new ListsApi();
            var body = new UpdateListDto(); // UpdateListDto | The details of the list to update.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Updates an existing list.
                readListDto result = apiInstance.updateList(body, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ListsApi.updateList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiListsApi();
$body = ; // UpdateListDto | The details of the list to update.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->updateList($body, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListsApi->updateList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ListsApi;

my $api_instance = WWW::SwaggerClient::ListsApi->new();
my $body = WWW::SwaggerClient::Object::UpdateListDto->new(); # UpdateListDto | The details of the list to update.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->updateList(body => $body, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ListsApi->updateList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ListsApi()
body =  # UpdateListDto | The details of the list to update.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Updates an existing list.
    api_response = api_instance.update_list(body, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ListsApi->updateList: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Body parameters
Name Description
body *

Responses

Status: 200 - The updated list details.

Status: 404 - List not found.

Status: 400 - Invalid input.

Status: 500 - An error occurred.


Tasks

completeTask

Complete a task

Marks a task as completed.


/tasks/{taskId}/complete

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"http://localhost:7257/api/tasks/{taskId}/complete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.completeTask(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#completeTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.completeTask(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#completeTask");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.

TasksApi *apiInstance = [[TasksApi alloc] init];

// Complete a task
[apiInstance completeTaskWith:authorization
              completionHandler: ^(readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.completeTask(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class completeTaskExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Complete a task
                readTaskDto result = apiInstance.completeTask(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.completeTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->completeTask($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->completeTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->completeTask(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->completeTask: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Complete a task
    api_response = api_instance.complete_task(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->completeTask: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 200 - The completed task.

Status: 400 - Invalid input.

Status: 404 - Task not found.

Status: 500 - An error occurred.


createTask

Create a new task

Creates a new task.


/tasks

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7257/api/tasks"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        CreateTaskDto body = ; // CreateTaskDto | The details of the task to create.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.createTask(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#createTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        CreateTaskDto body = ; // CreateTaskDto | The details of the task to create.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.createTask(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#createTask");
            e.printStackTrace();
        }
    }
}
CreateTaskDto *body = ; // The details of the task to create.
String *authorization = authorization_example; // Bearer token for authorization.

TasksApi *apiInstance = [[TasksApi alloc] init];

// Create a new task
[apiInstance createTaskWith:body
    authorization:authorization
              completionHandler: ^(readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var body = ; // {{CreateTaskDto}} The details of the task to create.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createTask(bodyauthorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createTaskExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var body = new CreateTaskDto(); // CreateTaskDto | The details of the task to create.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Create a new task
                readTaskDto result = apiInstance.createTask(body, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.createTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$body = ; // CreateTaskDto | The details of the task to create.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->createTask($body, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->createTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $body = WWW::SwaggerClient::Object::CreateTaskDto->new(); # CreateTaskDto | The details of the task to create.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->createTask(body => $body, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->createTask: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
body =  # CreateTaskDto | The details of the task to create.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Create a new task
    api_response = api_instance.create_task(body, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->createTask: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Body parameters
Name Description
body *

Responses

Status: 201 - The created task.

Status: 400 - Invalid input.

Status: 500 - An error occurred.


deleteTask

Delete a task

Deletes a task.


/tasks/{taskId}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"http://localhost:7257/api/tasks/{taskId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to delete.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            'String' result = apiInstance.deleteTask(listId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#deleteTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to delete.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            'String' result = apiInstance.deleteTask(listId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#deleteTask");
            e.printStackTrace();
        }
    }
}
UUID *listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The ID of the list to delete.
String *authorization = authorization_example; // Bearer token for authorization.

TasksApi *apiInstance = [[TasksApi alloc] init];

// Delete a task
[apiInstance deleteTaskWith:listId
    authorization:authorization
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The ID of the list to delete.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteTask(listId, authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTaskExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var listId = new UUID(); // UUID | The ID of the list to delete.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Delete a task
                'String' result = apiInstance.deleteTask(listId, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.deleteTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to delete.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->deleteTask($listId, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->deleteTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The ID of the list to delete.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->deleteTask(listId => $listId, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->deleteTask: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The ID of the list to delete.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Delete a task
    api_response = api_instance.delete_task(listId, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->deleteTask: %s\n" % e)

Parameters

Path parameters
Name Description
listId*
UUID (uuid)
The ID of the list to delete.
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 204 - Task deleted successfully.

Status: 404 - Task not found.

Status: 500 - An error occurred.


getAllTasks

Get all tasks

Retrieves all tasks.


/tasks

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/tasks"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readTaskDto] result = apiInstance.getAllTasks(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getAllTasks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            array[readTaskDto] result = apiInstance.getAllTasks(authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getAllTasks");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get all tasks
[apiInstance getAllTasksWith:authorization
              completionHandler: ^(array[readTaskDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllTasks(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllTasksExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Get all tasks
                array[readTaskDto] result = apiInstance.getAllTasks(authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getAllTasks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->getAllTasks($authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getAllTasks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->getAllTasks(authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getAllTasks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Get all tasks
    api_response = api_instance.get_all_tasks(authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getAllTasks: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 200 - List of tasks.

Status: 500 - An error occurred.


getCompletedTasks

Get completed tasks

Retrieves completed tasks.


/tasks/completed

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/tasks/completed?limit=&offset=&sortBy=&sortOrder="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getCompletedTasks(authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getCompletedTasks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getCompletedTasks(authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getCompletedTasks");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.
Integer *limit = 56; // The maximum number of tasks to return. (optional)
Integer *offset = 56; // The number of tasks to skip. (optional)
String *sortBy = sortBy_example; // The field to sort by. (optional)
String *sortOrder = sortOrder_example; // The sort order (asc or desc). (optional)

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get completed tasks
[apiInstance getCompletedTasksWith:authorization
    limit:limit
    offset:offset
    sortBy:sortBy
    sortOrder:sortOrder
              completionHandler: ^(pagedList_readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.
var opts = { 
  'limit': 56, // {{Integer}} The maximum number of tasks to return.
  'offset': 56, // {{Integer}} The number of tasks to skip.
  'sortBy': sortBy_example, // {{String}} The field to sort by.
  'sortOrder': sortOrder_example // {{String}} The sort order (asc or desc).
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCompletedTasks(authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCompletedTasksExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.
            var limit = 56;  // Integer | The maximum number of tasks to return. (optional) 
            var offset = 56;  // Integer | The number of tasks to skip. (optional) 
            var sortBy = sortBy_example;  // String | The field to sort by. (optional) 
            var sortOrder = sortOrder_example;  // String | The sort order (asc or desc). (optional) 

            try
            {
                // Get completed tasks
                pagedList_readTaskDto result = apiInstance.getCompletedTasks(authorization, limit, offset, sortBy, sortOrder);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getCompletedTasks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$authorization = authorization_example; // String | Bearer token for authorization.
$limit = 56; // Integer | The maximum number of tasks to return.
$offset = 56; // Integer | The number of tasks to skip.
$sortBy = sortBy_example; // String | The field to sort by.
$sortOrder = sortOrder_example; // String | The sort order (asc or desc).

try {
    $result = $api_instance->getCompletedTasks($authorization, $limit, $offset, $sortBy, $sortOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getCompletedTasks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.
my $limit = 56; # Integer | The maximum number of tasks to return.
my $offset = 56; # Integer | The number of tasks to skip.
my $sortBy = sortBy_example; # String | The field to sort by.
my $sortOrder = sortOrder_example; # String | The sort order (asc or desc).

eval { 
    my $result = $api_instance->getCompletedTasks(authorization => $authorization, limit => $limit, offset => $offset, sortBy => $sortBy, sortOrder => $sortOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getCompletedTasks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
authorization = authorization_example # String | Bearer token for authorization.
limit = 56 # Integer | The maximum number of tasks to return. (optional)
offset = 56 # Integer | The number of tasks to skip. (optional)
sortBy = sortBy_example # String | The field to sort by. (optional)
sortOrder = sortOrder_example # String | The sort order (asc or desc). (optional)

try: 
    # Get completed tasks
    api_response = api_instance.get_completed_tasks(authorization, limit=limit, offset=offset, sortBy=sortBy, sortOrder=sortOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getCompletedTasks: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Query parameters
Name Description
limit
Integer (int32)
The maximum number of tasks to return.
offset
Integer (int32)
The number of tasks to skip.
sortBy
String
The field to sort by.
sortOrder
String
The sort order (asc or desc).

Responses

Status: 200 - List of completed tasks.

Status: 404 - No tasks found.

Status: 500 - An error occurred.


getTasksByListId

Get tasks by list ID

Retrieves tasks by list ID.


/list/{listId}/tasks

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/list/{listId}/tasks?limit=&offset=&sortBy=&sortOrder="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to retrieve tasks from.
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTasksByListId(listId, authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTasksByListId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        UUID listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to retrieve tasks from.
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTasksByListId(listId, authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTasksByListId");
            e.printStackTrace();
        }
    }
}
UUID *listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The ID of the list to retrieve tasks from.
String *authorization = authorization_example; // Bearer token for authorization.
Integer *limit = 56; // The maximum number of tasks to return. (optional)
Integer *offset = 56; // The number of tasks to skip. (optional)
String *sortBy = sortBy_example; // The field to sort by. (optional)
String *sortOrder = sortOrder_example; // The sort order (asc or desc). (optional)

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get tasks by list ID
[apiInstance getTasksByListIdWith:listId
    authorization:authorization
    limit:limit
    offset:offset
    sortBy:sortBy
    sortOrder:sortOrder
              completionHandler: ^(pagedList_readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The ID of the list to retrieve tasks from.
var authorization = authorization_example; // {{String}} Bearer token for authorization.
var opts = { 
  'limit': 56, // {{Integer}} The maximum number of tasks to return.
  'offset': 56, // {{Integer}} The number of tasks to skip.
  'sortBy': sortBy_example, // {{String}} The field to sort by.
  'sortOrder': sortOrder_example // {{String}} The sort order (asc or desc).
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTasksByListId(listId, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTasksByListIdExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var listId = new UUID(); // UUID | The ID of the list to retrieve tasks from.
            var authorization = authorization_example;  // String | Bearer token for authorization.
            var limit = 56;  // Integer | The maximum number of tasks to return. (optional) 
            var offset = 56;  // Integer | The number of tasks to skip. (optional) 
            var sortBy = sortBy_example;  // String | The field to sort by. (optional) 
            var sortOrder = sortOrder_example;  // String | The sort order (asc or desc). (optional) 

            try
            {
                // Get tasks by list ID
                pagedList_readTaskDto result = apiInstance.getTasksByListId(listId, authorization, limit, offset, sortBy, sortOrder);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getTasksByListId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the list to retrieve tasks from.
$authorization = authorization_example; // String | Bearer token for authorization.
$limit = 56; // Integer | The maximum number of tasks to return.
$offset = 56; // Integer | The number of tasks to skip.
$sortBy = sortBy_example; // String | The field to sort by.
$sortOrder = sortOrder_example; // String | The sort order (asc or desc).

try {
    $result = $api_instance->getTasksByListId($listId, $authorization, $limit, $offset, $sortBy, $sortOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getTasksByListId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The ID of the list to retrieve tasks from.
my $authorization = authorization_example; # String | Bearer token for authorization.
my $limit = 56; # Integer | The maximum number of tasks to return.
my $offset = 56; # Integer | The number of tasks to skip.
my $sortBy = sortBy_example; # String | The field to sort by.
my $sortOrder = sortOrder_example; # String | The sort order (asc or desc).

eval { 
    my $result = $api_instance->getTasksByListId(listId => $listId, authorization => $authorization, limit => $limit, offset => $offset, sortBy => $sortBy, sortOrder => $sortOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getTasksByListId: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
listId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The ID of the list to retrieve tasks from.
authorization = authorization_example # String | Bearer token for authorization.
limit = 56 # Integer | The maximum number of tasks to return. (optional)
offset = 56 # Integer | The number of tasks to skip. (optional)
sortBy = sortBy_example # String | The field to sort by. (optional)
sortOrder = sortOrder_example # String | The sort order (asc or desc). (optional)

try: 
    # Get tasks by list ID
    api_response = api_instance.get_tasks_by_list_id(listId, authorization, limit=limit, offset=offset, sortBy=sortBy, sortOrder=sortOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getTasksByListId: %s\n" % e)

Parameters

Path parameters
Name Description
listId*
UUID (uuid)
The ID of the list to retrieve tasks from.
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Query parameters
Name Description
limit
Integer (int32)
The maximum number of tasks to return.
offset
Integer (int32)
The number of tasks to skip.
sortBy
String
The field to sort by.
sortOrder
String
The sort order (asc or desc).

Responses

Status: 200 - List of tasks.

Status: 404 - List not found.

Status: 500 - An error occurred.


getTasksByStatus

Get tasks by status

Gets tasks by their status.


/status/{status}/tasks

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/status/{status}/tasks?limit=&offset=&sortBy=&sortOrder="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        Integer status = 56; // Integer | The status of the tasks to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTasksByStatus(status, authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTasksByStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        Integer status = 56; // Integer | The status of the tasks to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTasksByStatus(status, authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTasksByStatus");
            e.printStackTrace();
        }
    }
}
Integer *status = 56; // The status of the tasks to retrieve.
String *authorization = authorization_example; // Bearer token for authorization.
Integer *limit = 56; // The maximum number of tasks to return. (optional)
Integer *offset = 56; // The number of tasks to skip. (optional)
String *sortBy = sortBy_example; // The field to sort by. (optional)
String *sortOrder = sortOrder_example; // The sort order (asc or desc). (optional)

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get tasks by status
[apiInstance getTasksByStatusWith:status
    authorization:authorization
    limit:limit
    offset:offset
    sortBy:sortBy
    sortOrder:sortOrder
              completionHandler: ^(pagedList_readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var status = 56; // {{Integer}} The status of the tasks to retrieve.
var authorization = authorization_example; // {{String}} Bearer token for authorization.
var opts = { 
  'limit': 56, // {{Integer}} The maximum number of tasks to return.
  'offset': 56, // {{Integer}} The number of tasks to skip.
  'sortBy': sortBy_example, // {{String}} The field to sort by.
  'sortOrder': sortOrder_example // {{String}} The sort order (asc or desc).
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTasksByStatus(status, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTasksByStatusExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var status = 56;  // Integer | The status of the tasks to retrieve.
            var authorization = authorization_example;  // String | Bearer token for authorization.
            var limit = 56;  // Integer | The maximum number of tasks to return. (optional) 
            var offset = 56;  // Integer | The number of tasks to skip. (optional) 
            var sortBy = sortBy_example;  // String | The field to sort by. (optional) 
            var sortOrder = sortOrder_example;  // String | The sort order (asc or desc). (optional) 

            try
            {
                // Get tasks by status
                pagedList_readTaskDto result = apiInstance.getTasksByStatus(status, authorization, limit, offset, sortBy, sortOrder);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getTasksByStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$status = 56; // Integer | The status of the tasks to retrieve.
$authorization = authorization_example; // String | Bearer token for authorization.
$limit = 56; // Integer | The maximum number of tasks to return.
$offset = 56; // Integer | The number of tasks to skip.
$sortBy = sortBy_example; // String | The field to sort by.
$sortOrder = sortOrder_example; // String | The sort order (asc or desc).

try {
    $result = $api_instance->getTasksByStatus($status, $authorization, $limit, $offset, $sortBy, $sortOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getTasksByStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $status = 56; # Integer | The status of the tasks to retrieve.
my $authorization = authorization_example; # String | Bearer token for authorization.
my $limit = 56; # Integer | The maximum number of tasks to return.
my $offset = 56; # Integer | The number of tasks to skip.
my $sortBy = sortBy_example; # String | The field to sort by.
my $sortOrder = sortOrder_example; # String | The sort order (asc or desc).

eval { 
    my $result = $api_instance->getTasksByStatus(status => $status, authorization => $authorization, limit => $limit, offset => $offset, sortBy => $sortBy, sortOrder => $sortOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getTasksByStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
status = 56 # Integer | The status of the tasks to retrieve.
authorization = authorization_example # String | Bearer token for authorization.
limit = 56 # Integer | The maximum number of tasks to return. (optional)
offset = 56 # Integer | The number of tasks to skip. (optional)
sortBy = sortBy_example # String | The field to sort by. (optional)
sortOrder = sortOrder_example # String | The sort order (asc or desc). (optional)

try: 
    # Get tasks by status
    api_response = api_instance.get_tasks_by_status(status, authorization, limit=limit, offset=offset, sortBy=sortBy, sortOrder=sortOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getTasksByStatus: %s\n" % e)

Parameters

Path parameters
Name Description
status*
Integer (int32)
The status of the tasks to retrieve.
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Query parameters
Name Description
limit
Integer (int32)
The maximum number of tasks to return.
offset
Integer (int32)
The number of tasks to skip.
sortBy
String
The field to sort by.
sortOrder
String
The sort order (asc or desc).

Responses

Status: 200 - List of tasks.

Status: 404 - List not found.

Status: 500 - An error occurred.


getTasksByTag

Get tasks by tag

Gets tasks by their tag.


/tags/{tag}/tasks

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/tags/{tag}/tasks?limit=&offset=&sortBy=&sortOrder="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        UUID tagId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The tag of the tasks to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTasksByTag(tagId, authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTasksByTag");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        UUID tagId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The tag of the tasks to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTasksByTag(tagId, authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTasksByTag");
            e.printStackTrace();
        }
    }
}
UUID *tagId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The tag of the tasks to retrieve.
String *authorization = authorization_example; // Bearer token for authorization.
Integer *limit = 56; // The maximum number of tasks to return. (optional)
Integer *offset = 56; // The number of tasks to skip. (optional)
String *sortBy = sortBy_example; // The field to sort by. (optional)
String *sortOrder = sortOrder_example; // The sort order (asc or desc). (optional)

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get tasks by tag
[apiInstance getTasksByTagWith:tagId
    authorization:authorization
    limit:limit
    offset:offset
    sortBy:sortBy
    sortOrder:sortOrder
              completionHandler: ^(pagedList_readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var tagId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The tag of the tasks to retrieve.
var authorization = authorization_example; // {{String}} Bearer token for authorization.
var opts = { 
  'limit': 56, // {{Integer}} The maximum number of tasks to return.
  'offset': 56, // {{Integer}} The number of tasks to skip.
  'sortBy': sortBy_example, // {{String}} The field to sort by.
  'sortOrder': sortOrder_example // {{String}} The sort order (asc or desc).
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTasksByTag(tagId, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTasksByTagExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var tagId = new UUID(); // UUID | The tag of the tasks to retrieve.
            var authorization = authorization_example;  // String | Bearer token for authorization.
            var limit = 56;  // Integer | The maximum number of tasks to return. (optional) 
            var offset = 56;  // Integer | The number of tasks to skip. (optional) 
            var sortBy = sortBy_example;  // String | The field to sort by. (optional) 
            var sortOrder = sortOrder_example;  // String | The sort order (asc or desc). (optional) 

            try
            {
                // Get tasks by tag
                pagedList_readTaskDto result = apiInstance.getTasksByTag(tagId, authorization, limit, offset, sortBy, sortOrder);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getTasksByTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$tagId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The tag of the tasks to retrieve.
$authorization = authorization_example; // String | Bearer token for authorization.
$limit = 56; // Integer | The maximum number of tasks to return.
$offset = 56; // Integer | The number of tasks to skip.
$sortBy = sortBy_example; // String | The field to sort by.
$sortOrder = sortOrder_example; // String | The sort order (asc or desc).

try {
    $result = $api_instance->getTasksByTag($tagId, $authorization, $limit, $offset, $sortBy, $sortOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getTasksByTag: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $tagId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The tag of the tasks to retrieve.
my $authorization = authorization_example; # String | Bearer token for authorization.
my $limit = 56; # Integer | The maximum number of tasks to return.
my $offset = 56; # Integer | The number of tasks to skip.
my $sortBy = sortBy_example; # String | The field to sort by.
my $sortOrder = sortOrder_example; # String | The sort order (asc or desc).

eval { 
    my $result = $api_instance->getTasksByTag(tagId => $tagId, authorization => $authorization, limit => $limit, offset => $offset, sortBy => $sortBy, sortOrder => $sortOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getTasksByTag: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
tagId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The tag of the tasks to retrieve.
authorization = authorization_example # String | Bearer token for authorization.
limit = 56 # Integer | The maximum number of tasks to return. (optional)
offset = 56 # Integer | The number of tasks to skip. (optional)
sortBy = sortBy_example # String | The field to sort by. (optional)
sortOrder = sortOrder_example # String | The sort order (asc or desc). (optional)

try: 
    # Get tasks by tag
    api_response = api_instance.get_tasks_by_tag(tagId, authorization, limit=limit, offset=offset, sortBy=sortBy, sortOrder=sortOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getTasksByTag: %s\n" % e)

Parameters

Path parameters
Name Description
tagId*
UUID (uuid)
The tag of the tasks to retrieve.
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Query parameters
Name Description
limit
Integer (int32)
The maximum number of tasks to return.
offset
Integer (int32)
The number of tasks to skip.
sortBy
String
The field to sort by.
sortOrder
String
The sort order (asc or desc).

Responses

Status: 200 - List of tasks.

Status: 404 - List not found.

Status: 500 - An error occurred.


getTodayTasks

Get today's tasks

Retrieves today's tasks.


/tasks/today

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/tasks/today?limit=&offset=&sortBy=&sortOrder="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTodayTasks(authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTodayTasks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getTodayTasks(authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getTodayTasks");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.
Integer *limit = 56; // The maximum number of tasks to return. (optional)
Integer *offset = 56; // The number of tasks to skip. (optional)
String *sortBy = sortBy_example; // The field to sort by. (optional)
String *sortOrder = sortOrder_example; // The sort order (asc or desc). (optional)

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get today's tasks
[apiInstance getTodayTasksWith:authorization
    limit:limit
    offset:offset
    sortBy:sortBy
    sortOrder:sortOrder
              completionHandler: ^(pagedList_readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.
var opts = { 
  'limit': 56, // {{Integer}} The maximum number of tasks to return.
  'offset': 56, // {{Integer}} The number of tasks to skip.
  'sortBy': sortBy_example, // {{String}} The field to sort by.
  'sortOrder': sortOrder_example // {{String}} The sort order (asc or desc).
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTodayTasks(authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTodayTasksExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.
            var limit = 56;  // Integer | The maximum number of tasks to return. (optional) 
            var offset = 56;  // Integer | The number of tasks to skip. (optional) 
            var sortBy = sortBy_example;  // String | The field to sort by. (optional) 
            var sortOrder = sortOrder_example;  // String | The sort order (asc or desc). (optional) 

            try
            {
                // Get today's tasks
                pagedList_readTaskDto result = apiInstance.getTodayTasks(authorization, limit, offset, sortBy, sortOrder);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getTodayTasks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$authorization = authorization_example; // String | Bearer token for authorization.
$limit = 56; // Integer | The maximum number of tasks to return.
$offset = 56; // Integer | The number of tasks to skip.
$sortBy = sortBy_example; // String | The field to sort by.
$sortOrder = sortOrder_example; // String | The sort order (asc or desc).

try {
    $result = $api_instance->getTodayTasks($authorization, $limit, $offset, $sortBy, $sortOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getTodayTasks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.
my $limit = 56; # Integer | The maximum number of tasks to return.
my $offset = 56; # Integer | The number of tasks to skip.
my $sortBy = sortBy_example; # String | The field to sort by.
my $sortOrder = sortOrder_example; # String | The sort order (asc or desc).

eval { 
    my $result = $api_instance->getTodayTasks(authorization => $authorization, limit => $limit, offset => $offset, sortBy => $sortBy, sortOrder => $sortOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getTodayTasks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
authorization = authorization_example # String | Bearer token for authorization.
limit = 56 # Integer | The maximum number of tasks to return. (optional)
offset = 56 # Integer | The number of tasks to skip. (optional)
sortBy = sortBy_example # String | The field to sort by. (optional)
sortOrder = sortOrder_example # String | The sort order (asc or desc). (optional)

try: 
    # Get today's tasks
    api_response = api_instance.get_today_tasks(authorization, limit=limit, offset=offset, sortBy=sortBy, sortOrder=sortOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getTodayTasks: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Query parameters
Name Description
limit
Integer (int32)
The maximum number of tasks to return.
offset
Integer (int32)
The number of tasks to skip.
sortBy
String
The field to sort by.
sortOrder
String
The sort order (asc or desc).

Responses

Status: 200 - List of today's tasks.

Status: 404 - No tasks found.

Status: 500 - An error occurred.


getUpcomingTasks

Get upcoming tasks

Retrieves upcoming tasks.


/tasks/upcoming

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/tasks/upcoming?limit=&offset=&sortBy=&sortOrder="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getUpcomingTasks(authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getUpcomingTasks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        Integer limit = 56; // Integer | The maximum number of tasks to return.
        Integer offset = 56; // Integer | The number of tasks to skip.
        String sortBy = sortBy_example; // String | The field to sort by.
        String sortOrder = sortOrder_example; // String | The sort order (asc or desc).
        try {
            pagedList_readTaskDto result = apiInstance.getUpcomingTasks(authorization, limit, offset, sortBy, sortOrder);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getUpcomingTasks");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.
Integer *limit = 56; // The maximum number of tasks to return. (optional)
Integer *offset = 56; // The number of tasks to skip. (optional)
String *sortBy = sortBy_example; // The field to sort by. (optional)
String *sortOrder = sortOrder_example; // The sort order (asc or desc). (optional)

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get upcoming tasks
[apiInstance getUpcomingTasksWith:authorization
    limit:limit
    offset:offset
    sortBy:sortBy
    sortOrder:sortOrder
              completionHandler: ^(pagedList_readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.
var opts = { 
  'limit': 56, // {{Integer}} The maximum number of tasks to return.
  'offset': 56, // {{Integer}} The number of tasks to skip.
  'sortBy': sortBy_example, // {{String}} The field to sort by.
  'sortOrder': sortOrder_example // {{String}} The sort order (asc or desc).
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUpcomingTasks(authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUpcomingTasksExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.
            var limit = 56;  // Integer | The maximum number of tasks to return. (optional) 
            var offset = 56;  // Integer | The number of tasks to skip. (optional) 
            var sortBy = sortBy_example;  // String | The field to sort by. (optional) 
            var sortOrder = sortOrder_example;  // String | The sort order (asc or desc). (optional) 

            try
            {
                // Get upcoming tasks
                pagedList_readTaskDto result = apiInstance.getUpcomingTasks(authorization, limit, offset, sortBy, sortOrder);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getUpcomingTasks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$authorization = authorization_example; // String | Bearer token for authorization.
$limit = 56; // Integer | The maximum number of tasks to return.
$offset = 56; // Integer | The number of tasks to skip.
$sortBy = sortBy_example; // String | The field to sort by.
$sortOrder = sortOrder_example; // String | The sort order (asc or desc).

try {
    $result = $api_instance->getUpcomingTasks($authorization, $limit, $offset, $sortBy, $sortOrder);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getUpcomingTasks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.
my $limit = 56; # Integer | The maximum number of tasks to return.
my $offset = 56; # Integer | The number of tasks to skip.
my $sortBy = sortBy_example; # String | The field to sort by.
my $sortOrder = sortOrder_example; # String | The sort order (asc or desc).

eval { 
    my $result = $api_instance->getUpcomingTasks(authorization => $authorization, limit => $limit, offset => $offset, sortBy => $sortBy, sortOrder => $sortOrder);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getUpcomingTasks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
authorization = authorization_example # String | Bearer token for authorization.
limit = 56 # Integer | The maximum number of tasks to return. (optional)
offset = 56 # Integer | The number of tasks to skip. (optional)
sortBy = sortBy_example # String | The field to sort by. (optional)
sortOrder = sortOrder_example # String | The sort order (asc or desc). (optional)

try: 
    # Get upcoming tasks
    api_response = api_instance.get_upcoming_tasks(authorization, limit=limit, offset=offset, sortBy=sortBy, sortOrder=sortOrder)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getUpcomingTasks: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Query parameters
Name Description
limit
Integer (int32)
The maximum number of tasks to return.
offset
Integer (int32)
The number of tasks to skip.
sortBy
String
The field to sort by.
sortOrder
String
The sort order (asc or desc).

Responses

Status: 200 - List of upcoming tasks.

Status: 404 - No tasks found.

Status: 500 - An error occurred.


getUserTasks

Get user tasks

Retrieves tasks for a specific user.


/user/tasks

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/user/tasks?searchTerm="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        String searchTerm = searchTerm_example; // String | The search term to filter tasks.
        try {
            array[readTaskDto] result = apiInstance.getUserTasks(authorization, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getUserTasks");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        String authorization = authorization_example; // String | Bearer token for authorization.
        String searchTerm = searchTerm_example; // String | The search term to filter tasks.
        try {
            array[readTaskDto] result = apiInstance.getUserTasks(authorization, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#getUserTasks");
            e.printStackTrace();
        }
    }
}
String *authorization = authorization_example; // Bearer token for authorization.
String *searchTerm = searchTerm_example; // The search term to filter tasks. (optional)

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get user tasks
[apiInstance getUserTasksWith:authorization
    searchTerm:searchTerm
              completionHandler: ^(array[readTaskDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var authorization = authorization_example; // {{String}} Bearer token for authorization.
var opts = { 
  'searchTerm': searchTerm_example // {{String}} The search term to filter tasks.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserTasks(authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserTasksExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var authorization = authorization_example;  // String | Bearer token for authorization.
            var searchTerm = searchTerm_example;  // String | The search term to filter tasks. (optional) 

            try
            {
                // Get user tasks
                array[readTaskDto] result = apiInstance.getUserTasks(authorization, searchTerm);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.getUserTasks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$authorization = authorization_example; // String | Bearer token for authorization.
$searchTerm = searchTerm_example; // String | The search term to filter tasks.

try {
    $result = $api_instance->getUserTasks($authorization, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->getUserTasks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $authorization = authorization_example; # String | Bearer token for authorization.
my $searchTerm = searchTerm_example; # String | The search term to filter tasks.

eval { 
    my $result = $api_instance->getUserTasks(authorization => $authorization, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->getUserTasks: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
authorization = authorization_example # String | Bearer token for authorization.
searchTerm = searchTerm_example # String | The search term to filter tasks. (optional)

try: 
    # Get user tasks
    api_response = api_instance.get_user_tasks(authorization, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->getUserTasks: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Query parameters
Name Description
searchTerm
String
The search term to filter tasks.

Responses

Status: 200 - List of user tasks.

Status: 500 - An error occurred.


updateTask

Update an existing task

Updates an existing task.


/tasks

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://localhost:7257/api/tasks"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        UpdateTaskDto body = ; // UpdateTaskDto | The details of the task to update.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.updateTask(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#updateTask");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        UpdateTaskDto body = ; // UpdateTaskDto | The details of the task to update.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.updateTask(body, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#updateTask");
            e.printStackTrace();
        }
    }
}
UpdateTaskDto *body = ; // The details of the task to update.
String *authorization = authorization_example; // Bearer token for authorization.

TasksApi *apiInstance = [[TasksApi alloc] init];

// Update an existing task
[apiInstance updateTaskWith:body
    authorization:authorization
              completionHandler: ^(readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var body = ; // {{UpdateTaskDto}} The details of the task to update.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateTask(bodyauthorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateTaskExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var body = new UpdateTaskDto(); // UpdateTaskDto | The details of the task to update.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Update an existing task
                readTaskDto result = apiInstance.updateTask(body, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.updateTask: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$body = ; // UpdateTaskDto | The details of the task to update.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->updateTask($body, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->updateTask: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $body = WWW::SwaggerClient::Object::UpdateTaskDto->new(); # UpdateTaskDto | The details of the task to update.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->updateTask(body => $body, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->updateTask: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
body =  # UpdateTaskDto | The details of the task to update.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Update an existing task
    api_response = api_instance.update_task(body, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->updateTask: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required
Body parameters
Name Description
body *

Responses

Status: 200 - The updated task.

Status: 400 - Invalid input.

Status: 404 - Task not found.

Status: 500 - An error occurred.


wGetTaskById

Get task by ID

Retrieves a task by its ID.


/tasks/{taskId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"http://localhost:7257/api/tasks/{taskId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TasksApi;

import java.io.File;
import java.util.*;

public class TasksApiExample {

    public static void main(String[] args) {
        
        TasksApi apiInstance = new TasksApi();
        UUID taskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the task to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.wGetTaskById(taskId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#wGetTaskById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TasksApi;

public class TasksApiExample {

    public static void main(String[] args) {
        TasksApi apiInstance = new TasksApi();
        UUID taskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the task to retrieve.
        String authorization = authorization_example; // String | Bearer token for authorization.
        try {
            readTaskDto result = apiInstance.wGetTaskById(taskId, authorization);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TasksApi#wGetTaskById");
            e.printStackTrace();
        }
    }
}
UUID *taskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The ID of the task to retrieve.
String *authorization = authorization_example; // Bearer token for authorization.

TasksApi *apiInstance = [[TasksApi alloc] init];

// Get task by ID
[apiInstance wGetTaskByIdWith:taskId
    authorization:authorization
              completionHandler: ^(readTaskDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var OpenApiDocumentOnAzureFunctions = require('open_api_document_on_azure_functions');

var api = new OpenApiDocumentOnAzureFunctions.TasksApi()
var taskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} The ID of the task to retrieve.
var authorization = authorization_example; // {{String}} Bearer token for authorization.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.wGetTaskById(taskId, authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class wGetTaskByIdExample
    {
        public void main()
        {

            var apiInstance = new TasksApi();
            var taskId = new UUID(); // UUID | The ID of the task to retrieve.
            var authorization = authorization_example;  // String | Bearer token for authorization.

            try
            {
                // Get task by ID
                readTaskDto result = apiInstance.wGetTaskById(taskId, authorization);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TasksApi.wGetTaskById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTasksApi();
$taskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The ID of the task to retrieve.
$authorization = authorization_example; // String | Bearer token for authorization.

try {
    $result = $api_instance->wGetTaskById($taskId, $authorization);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TasksApi->wGetTaskById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TasksApi;

my $api_instance = WWW::SwaggerClient::TasksApi->new();
my $taskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The ID of the task to retrieve.
my $authorization = authorization_example; # String | Bearer token for authorization.

eval { 
    my $result = $api_instance->wGetTaskById(taskId => $taskId, authorization => $authorization);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TasksApi->wGetTaskById: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.TasksApi()
taskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The ID of the task to retrieve.
authorization = authorization_example # String | Bearer token for authorization.

try: 
    # Get task by ID
    api_response = api_instance.w_get_task_by_id(taskId, authorization)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TasksApi->wGetTaskById: %s\n" % e)

Parameters

Path parameters
Name Description
taskId*
UUID (uuid)
The ID of the task to retrieve.
Required
Header parameters
Name Description
Authorization*
String
Bearer token for authorization.
Required

Responses

Status: 200 - The task details.

Status: 404 - Task not found.

Status: 500 - An error occurred.