From 1300a9b0c72770ceb687a369cc78f718405859d9 Mon Sep 17 00:00:00 2001 From: Ivan Gagarinov Date: Sat, 2 Nov 2024 20:54:30 +0500 Subject: [PATCH] add dynamic examples --- .dockerignore | 1 + .gitignore | 2 +- Dockerfile | 1 + Makefile | 8 +- .../docs/http-api/.swagger-codegen-ignore | 23 - .../docs/http-api/.swagger-codegen/VERSION | 1 - custom-server/assets/docs/http-api/index.html | 12975 ---------------- .../http-protocol/.swagger-codegen-ignore | 23 - .../http-protocol/.swagger-codegen/VERSION | 1 - .../assets/docs/http-protocol/index.html | 12550 --------------- .../js-playwright/.swagger-codegen-ignore | 23 - .../js-playwright/.swagger-codegen/VERSION | 1 - .../assets/docs/js-playwright/index.html | 8035 ---------- .../docs/postman/.swagger-codegen-ignore | 23 - .../docs/postman/.swagger-codegen/VERSION | 1 - custom-server/assets/docs/postman/index.html | 12550 --------------- typespec/examples/auth.tsp | 8 - typespec/examples/comments.tsp | 200 - typespec/examples/courses.tsp | 45 - typespec/examples/posts.tsp | 200 - typespec/examples/tasks.tsp | 52 - typespec/examples/users.tsp | 83 - typespec/http-api/models/auth.tsp | 14 - typespec/http-api/models/comment.tsp | 39 +- typespec/http-api/models/course.tsp | 31 +- typespec/http-api/models/post.tsp | 33 +- typespec/http-api/models/task.tsp | 31 +- typespec/http-api/models/user.tsp | 31 +- .../http-api/services/commentsService.tsp | 4 +- typespec/http-api/services/postsService.tsp | 8 +- typespec/http-api/services/usersService.tsp | 8 +- typespec/http-protocol/models/auth.tsp | 14 - typespec/http-protocol/models/comment.tsp | 39 +- typespec/http-protocol/models/course.tsp | 31 +- typespec/http-protocol/models/post.tsp | 33 +- typespec/http-protocol/models/task.tsp | 31 +- typespec/http-protocol/models/user.tsp | 31 +- .../services/commentsService.tsp | 4 +- .../http-protocol/services/postsService.tsp | 8 +- .../http-protocol/services/usersService.tsp | 8 +- typespec/js-playwright/models/auth.tsp | 14 - typespec/js-playwright/models/course.tsp | 31 +- typespec/js-playwright/models/task.tsp | 31 +- typespec/js-playwright/models/user.tsp | 31 +- typespec/postman/models/auth.tsp | 14 - typespec/postman/models/comment.tsp | 39 +- typespec/postman/models/course.tsp | 31 +- typespec/postman/models/post.tsp | 33 +- typespec/postman/models/task.tsp | 31 +- typespec/postman/models/user.tsp | 31 +- typespec/postman/services/commentsService.tsp | 4 +- typespec/postman/services/postsService.tsp | 8 +- typespec/postman/services/usersService.tsp | 8 +- 53 files changed, 124 insertions(+), 47386 deletions(-) delete mode 100644 custom-server/assets/docs/http-api/.swagger-codegen-ignore delete mode 100644 custom-server/assets/docs/http-api/.swagger-codegen/VERSION delete mode 100644 custom-server/assets/docs/http-api/index.html delete mode 100644 custom-server/assets/docs/http-protocol/.swagger-codegen-ignore delete mode 100644 custom-server/assets/docs/http-protocol/.swagger-codegen/VERSION delete mode 100644 custom-server/assets/docs/http-protocol/index.html delete mode 100644 custom-server/assets/docs/js-playwright/.swagger-codegen-ignore delete mode 100644 custom-server/assets/docs/js-playwright/.swagger-codegen/VERSION delete mode 100644 custom-server/assets/docs/js-playwright/index.html delete mode 100644 custom-server/assets/docs/postman/.swagger-codegen-ignore delete mode 100644 custom-server/assets/docs/postman/.swagger-codegen/VERSION delete mode 100644 custom-server/assets/docs/postman/index.html delete mode 100644 typespec/examples/auth.tsp delete mode 100644 typespec/examples/comments.tsp delete mode 100644 typespec/examples/courses.tsp delete mode 100644 typespec/examples/posts.tsp delete mode 100644 typespec/examples/tasks.tsp delete mode 100644 typespec/examples/users.tsp diff --git a/.dockerignore b/.dockerignore index d64b733..33b804b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,6 +2,7 @@ .DS_Store # Default TypeSpec output +tsp-output/ dist/ # Dependency directories diff --git a/.gitignore b/.gitignore index 0fe4f7a..33b804b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ tsp-output/ dist/ # Dependency directories -node_modules/ \ No newline at end of file +node_modules/ diff --git a/Dockerfile b/Dockerfile index 357038f..ff208f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ COPY package.json package-lock.json* ./ RUN npm ci && npm cache clean --force COPY . . + RUN make compile EXPOSE 8080 diff --git a/Makefile b/Makefile index ec0c97f..34e7e4a 100644 --- a/Makefile +++ b/Makefile @@ -16,10 +16,10 @@ dev: docker run -e PORT=$(PORT) -v ./custom-server:/custom-server -p $(PORT):$(PORT) --name rest-api-example $(IMAGE_ID) start: - prism mock -m -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml & - prism mock -m -p 4012 --host 0.0.0.0 ./tsp-output/http-protocol/@typespec/openapi3/openapi.1.0.yaml & - prism mock -m -p 4013 --host 0.0.0.0 ./tsp-output/js-playwright/@typespec/openapi3/openapi.1.0.yaml & - prism mock -m -p 4014 --host 0.0.0.0 ./tsp-output/postman/@typespec/openapi3/openapi.1.0.yaml & + prism mock -m -d --json-schema-faker-fillProperties=false -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml & + prism mock -m -d --json-schema-faker-fillProperties=false -p 4012 --host 0.0.0.0 ./tsp-output/http-protocol/@typespec/openapi3/openapi.1.0.yaml & + prism mock -m -d --json-schema-faker-fillProperties=false -p 4013 --host 0.0.0.0 ./tsp-output/js-playwright/@typespec/openapi3/openapi.1.0.yaml & + prism mock -m -d --json-schema-faker-fillProperties=false -p 4014 --host 0.0.0.0 ./tsp-output/postman/@typespec/openapi3/openapi.1.0.yaml & npm start & caddy run diff --git a/custom-server/assets/docs/http-api/.swagger-codegen-ignore b/custom-server/assets/docs/http-api/.swagger-codegen-ignore deleted file mode 100644 index c5fa491..0000000 --- a/custom-server/assets/docs/http-api/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/custom-server/assets/docs/http-api/.swagger-codegen/VERSION b/custom-server/assets/docs/http-api/.swagger-codegen/VERSION deleted file mode 100644 index eefcac2..0000000 --- a/custom-server/assets/docs/http-api/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.63 \ No newline at end of file diff --git a/custom-server/assets/docs/http-api/index.html b/custom-server/assets/docs/http-api/index.html deleted file mode 100644 index f0f9cf2..0000000 --- a/custom-server/assets/docs/http-api/index.html +++ /dev/null @@ -1,12975 +0,0 @@ - - - - - HTTP Api Example - - - - - - - - - - - - - -
-
- -
-
-
-

HTTP Api Example

-
-
-
- -
-
-

Auth

-
-
-
-

authServiceCreate

-

-
-
-
-

-

-

-
-
/login
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/login"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.AuthApi;
-
-import java.io.File;
-import java.util.*;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.AuthApi;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
AuthData *body = ; // 
-
-AuthApi *apiInstance = [[AuthApi alloc] init];
-
-[apiInstance authServiceCreateWith:body
-              completionHandler: ^(AuthToken output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.AuthApi()
-var body = ; // {{AuthData}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.authServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class authServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new AuthApi();
-            var body = new AuthData(); // AuthData | 
-
-            try
-            {
-                AuthToken result = apiInstance.authServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling AuthApi.authServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiAuthApi();
-$body = ; // AuthData | 
-
-try {
-    $result = $api_instance->authServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling AuthApi->authServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::AuthApi;
-
-my $api_instance = WWW::SwaggerClient::AuthApi->new();
-my $body = WWW::SwaggerClient::Object::AuthData->new(); # AuthData | 
-
-eval { 
-    my $result = $api_instance->authServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling AuthApi->authServiceCreate: $@\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.AuthApi()
-body =  # AuthData | 
-
-try: 
-    api_response = api_instance.auth_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling AuthApi->authServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Comments

-
-
-
-

commentServiceCreate

-

-
-
-
-

-

-

-
-
/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/comments"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        NewCommentDto body = ; // NewCommentDto | 
-        try {
-            Comment result = apiInstance.commentServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        NewCommentDto body = ; // NewCommentDto | 
-        try {
-            Comment result = apiInstance.commentServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-NewCommentDto *body = ; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceCreateWith:body
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var body = ; // {{NewCommentDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceCreateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var body = new NewCommentDto(); // NewCommentDto | 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$body = ; // NewCommentDto | 
-
-try {
-    $result = $api_instance->commentServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $body = WWW::SwaggerClient::Object::NewCommentDto->new(); # NewCommentDto | 
-
-eval { 
-    my $result = $api_instance->commentServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceCreate: $@\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.CommentsApi()
-body =  # NewCommentDto | 
-
-try: 
-    api_response = api_instance.comment_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceDelete

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/http-api/comments/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.commentServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.commentServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.commentServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.commentServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->commentServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->commentServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceDelete: $@\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.CommentsApi()
-id = id_example # String | 
-
-try: 
-    api_instance.comment_service_delete(id)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

commentServiceGet

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/comments/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceGetWith:id
-    select:select
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.CommentsApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new CommentsApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceGet: $@\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.CommentsApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.comment_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceList

-

-
-
-
-

-

-

-
-
/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        
-        CommentsApi apiInstance = new CommentsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.commentServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.commentServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.CommentsApi()
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new CommentsApi();
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.commentServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceList: $@\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.CommentsApi()
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.comment_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceUpdate

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/comments/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        EditCommentDto body = { }; // EditCommentDto | 
-        String id = id_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        EditCommentDto body = { }; // EditCommentDto | 
-        String id = id_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditCommentDto *body = { }; // 
-String *id = id_example; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var body = { }; // {{EditCommentDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var body = new EditCommentDto(); // EditCommentDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$body = { }; // EditCommentDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $body = WWW::SwaggerClient::Object::EditCommentDto->new(); # EditCommentDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceUpdate: $@\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.CommentsApi()
-body = { } # EditCommentDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.comment_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Courses

-
-
-
-

courseServiceCreate

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/courses"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-NewCourseDto *body = ; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceCreateWith:body
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = ; // {{NewCourseDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceCreateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new NewCourseDto(); // NewCourseDto | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = ; // NewCourseDto | 
-
-try {
-    $result = $api_instance->courseServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::NewCourseDto->new(); # NewCourseDto | 
-
-eval { 
-    my $result = $api_instance->courseServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceCreate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body =  # NewCourseDto | 
-
-try: 
-    api_response = api_instance.course_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceDelete

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
--H "X-API-KEY: [[apiKey]]"\
-"/http-api/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.courseServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceDeleteExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.courseServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->courseServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->courseServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceDelete: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-
-try: 
-    api_instance.course_service_delete(id)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

courseServiceGet

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/http-api/courses/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceGetWith:id
-    select:select
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceGetExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Course result = apiInstance.courseServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceGet: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.course_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceList

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/http-api/courses?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Courses output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceListExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Courses result = apiInstance.courseServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->courseServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->courseServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceList: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.course_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceUpdate

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-EditCourseDto *body = { }; // 
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = { }; // {{EditCourseDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceUpdateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new EditCourseDto(); // EditCourseDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = { }; // EditCourseDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::EditCourseDto->new(); # EditCourseDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceUpdate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body = { } # EditCourseDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.course_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Posts

-
-
-
-

postServiceCreate

-

-
-
-
-

-

-

-
-
/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/posts"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        NewPostDto body = ; // NewPostDto | 
-        try {
-            Post result = apiInstance.postServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        NewPostDto body = ; // NewPostDto | 
-        try {
-            Post result = apiInstance.postServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-NewPostDto *body = ; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceCreateWith:body
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var body = ; // {{NewPostDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceCreateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var body = new NewPostDto(); // NewPostDto | 
-
-            try
-            {
-                Post result = apiInstance.postServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$body = ; // NewPostDto | 
-
-try {
-    $result = $api_instance->postServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $body = WWW::SwaggerClient::Object::NewPostDto->new(); # NewPostDto | 
-
-eval { 
-    my $result = $api_instance->postServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceCreate: $@\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.PostsApi()
-body =  # NewPostDto | 
-
-try: 
-    api_response = api_instance.post_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceDelete

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/http-api/posts/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.postServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.postServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.postServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.postServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->postServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->postServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceDelete: $@\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.PostsApi()
-id = id_example # String | 
-
-try: 
-    api_instance.post_service_delete(id)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

postServiceGet

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/posts/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Post result = apiInstance.postServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Post result = apiInstance.postServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceGetWith:id
-    select:select
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Post result = apiInstance.postServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceGet: $@\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.PostsApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceGetComments

-

-
-
-
-

-

-

-
-
/posts/{postId}/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/posts/{postId}/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        String postId = postId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String postId = postId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *postId = postId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceGetCommentsWith:postId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var postId = postId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceGetComments(postId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceGetCommentsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var postId = postId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceGetComments: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$postId = postId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceGetComments($postId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceGetComments: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $postId = postId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceGetComments(postId => $postId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceGetComments: $@\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.PostsApi()
-postId = postId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_get_comments(postId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceGetComments: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
postId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceList

-

-
-
-
-

-

-

-
-
/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/posts?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.postServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.postServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Posts output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Posts result = apiInstance.postServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceList: $@\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.PostsApi()
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceUpdate

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/posts/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        EditPostDto body = { }; // EditPostDto | 
-        String id = id_example; // String | 
-        try {
-            Post result = apiInstance.postServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        EditPostDto body = { }; // EditPostDto | 
-        String id = id_example; // String | 
-        try {
-            Post result = apiInstance.postServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditPostDto *body = { }; // 
-String *id = id_example; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var body = { }; // {{EditPostDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var body = new EditPostDto(); // EditPostDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Post result = apiInstance.postServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$body = { }; // EditPostDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->postServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $body = WWW::SwaggerClient::Object::EditPostDto->new(); # EditPostDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceUpdate: $@\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.PostsApi()
-body = { } # EditPostDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.post_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Tasks

-
-
-
-

taskServiceCreate

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-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();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewTaskDto *body = ; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceCreateWith:body
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = ; // {{NewTaskDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new NewTaskDto(); // NewTaskDto | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = ; // NewTaskDto | 
-
-try {
-    $result = $api_instance->taskServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceCreate: ', $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::NewTaskDto->new(); # NewTaskDto | 
-
-eval { 
-    my $result = $api_instance->taskServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceCreate: $@\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 =  # NewTaskDto | 
-
-try: 
-    api_response = api_instance.task_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceDelete

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
-"/http-api/tasks/{id}"
-
-
-
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 id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.taskServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceDeleteExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.taskServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->taskServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->taskServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceDelete: $@\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()
-id = id_example # String | 
-
-try: 
-    api_instance.task_service_delete(id)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

taskServiceGet

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/tasks/{id}?select="
-
-
-
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 id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceGetWith:id
-    select:select
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Task result = apiInstance.taskServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceGet: $@\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()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.task_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceList

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/tasks?skip=&limit=&select="
-
-
-
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 skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Tasks output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Tasks result = apiInstance.taskServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->taskServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->taskServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceList: $@\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()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.task_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceUpdate

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/tasks/{id}"
-
-
-
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();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
EditTaskDto *body = { }; // 
-String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = { }; // {{EditTaskDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceUpdateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new EditTaskDto(); // EditTaskDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = { }; // EditTaskDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceUpdate: ', $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::EditTaskDto->new(); # EditTaskDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceUpdate: $@\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 = { } # EditTaskDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.task_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Users

-
-
-
-

userServiceCreate

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/users"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewUserDto *body = ; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceCreateWith:body
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var body = ; // {{NewUserDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var body = new NewUserDto(); // NewUserDto | 
-
-            try
-            {
-                User result = apiInstance.userServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = ; // NewUserDto | 
-
-try {
-    $result = $api_instance->userServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::NewUserDto->new(); # NewUserDto | 
-
-eval { 
-    my $result = $api_instance->userServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceCreate: $@\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.UsersApi()
-body =  # NewUserDto | 
-
-try: 
-    api_response = api_instance.user_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceDelete

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/http-api/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.userServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.userServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->userServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->userServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceDelete: $@\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.UsersApi()
-id = id_example # String | 
-
-try: 
-    api_instance.user_service_delete(id)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

userServiceGet

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/users/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetWith:id
-    select:select
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                User result = apiInstance.userServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGet: $@\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.UsersApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceGetComments

-

-
-
-
-

-

-

-
-
/users/{authorId}/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/users/{authorId}/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *authorId = authorId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetCommentsWith:authorId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var authorId = authorId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGetComments(authorId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetCommentsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var authorId = authorId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGetComments: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$authorId = authorId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGetComments($authorId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGetComments: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $authorId = authorId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGetComments(authorId => $authorId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGetComments: $@\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.UsersApi()
-authorId = authorId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get_comments(authorId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGetComments: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
authorId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceGetPosts

-

-
-
-
-

-

-

-
-
/users/{authorId}/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/users/{authorId}/posts?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetPosts");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetPosts");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *authorId = authorId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetPostsWith:authorId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Posts output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var authorId = authorId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGetPosts(authorId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetPostsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var authorId = authorId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGetPosts: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$authorId = authorId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGetPosts($authorId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGetPosts: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $authorId = authorId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGetPosts(authorId => $authorId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGetPosts: $@\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.UsersApi()
-authorId = authorId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get_posts(authorId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGetPosts: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
authorId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceList

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-api/users?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Users output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Users result = apiInstance.userServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->userServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->userServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceList: $@\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.UsersApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.user_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceUpdate

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-api/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditUserDto *body = { }; // 
-String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceUpdateWith:body
-    id:id
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.UsersApi()
-var body = { }; // {{EditUserDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new UsersApi();
-            var body = new EditUserDto(); // EditUserDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                User result = apiInstance.userServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = { }; // EditUserDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->userServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::EditUserDto->new(); # EditUserDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceUpdate: $@\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.UsersApi()
-body = { } # EditUserDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.user_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
- -
-
-
- - - - - - - - - diff --git a/custom-server/assets/docs/http-protocol/.swagger-codegen-ignore b/custom-server/assets/docs/http-protocol/.swagger-codegen-ignore deleted file mode 100644 index c5fa491..0000000 --- a/custom-server/assets/docs/http-protocol/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/custom-server/assets/docs/http-protocol/.swagger-codegen/VERSION b/custom-server/assets/docs/http-protocol/.swagger-codegen/VERSION deleted file mode 100644 index eefcac2..0000000 --- a/custom-server/assets/docs/http-protocol/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.63 \ No newline at end of file diff --git a/custom-server/assets/docs/http-protocol/index.html b/custom-server/assets/docs/http-protocol/index.html deleted file mode 100644 index 7e57849..0000000 --- a/custom-server/assets/docs/http-protocol/index.html +++ /dev/null @@ -1,12550 +0,0 @@ - - - - - HTTP Api Example - - - - - - - - - - - - - -
-
- -
-
-
-

HTTP Api Example

-
-
-
- -
-
-

Auth

-
-
-
-

authServiceCreate

-

-
-
-
-

-

-

-
-
/login
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/login"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.AuthApi;
-
-import java.io.File;
-import java.util.*;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.AuthApi;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
AuthData *body = ; // 
-
-AuthApi *apiInstance = [[AuthApi alloc] init];
-
-[apiInstance authServiceCreateWith:body
-              completionHandler: ^(AuthToken output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.AuthApi()
-var body = ; // {{AuthData}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.authServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class authServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new AuthApi();
-            var body = new AuthData(); // AuthData | 
-
-            try
-            {
-                AuthToken result = apiInstance.authServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling AuthApi.authServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiAuthApi();
-$body = ; // AuthData | 
-
-try {
-    $result = $api_instance->authServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling AuthApi->authServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::AuthApi;
-
-my $api_instance = WWW::SwaggerClient::AuthApi->new();
-my $body = WWW::SwaggerClient::Object::AuthData->new(); # AuthData | 
-
-eval { 
-    my $result = $api_instance->authServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling AuthApi->authServiceCreate: $@\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.AuthApi()
-body =  # AuthData | 
-
-try: 
-    api_response = api_instance.auth_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling AuthApi->authServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Comments

-
-
-
-

commentServiceCreate

-

-
-
-
-

-

-

-
-
/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/comments"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        NewCommentDto body = ; // NewCommentDto | 
-        try {
-            Comment result = apiInstance.commentServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        NewCommentDto body = ; // NewCommentDto | 
-        try {
-            Comment result = apiInstance.commentServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-NewCommentDto *body = ; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceCreateWith:body
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var body = ; // {{NewCommentDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceCreateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var body = new NewCommentDto(); // NewCommentDto | 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$body = ; // NewCommentDto | 
-
-try {
-    $result = $api_instance->commentServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $body = WWW::SwaggerClient::Object::NewCommentDto->new(); # NewCommentDto | 
-
-eval { 
-    my $result = $api_instance->commentServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceCreate: $@\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.CommentsApi()
-body =  # NewCommentDto | 
-
-try: 
-    api_response = api_instance.comment_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceDelete

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/http-protocol/comments/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.commentServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.commentServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.commentServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.commentServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->commentServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->commentServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceDelete: $@\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.CommentsApi()
-id = id_example # String | 
-
-try: 
-    api_instance.comment_service_delete(id)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

commentServiceGet

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/comments/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceGetWith:id
-    select:select
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.CommentsApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new CommentsApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceGet: $@\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.CommentsApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.comment_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceList

-

-
-
-
-

-

-

-
-
/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        
-        CommentsApi apiInstance = new CommentsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.commentServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.commentServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.CommentsApi()
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new CommentsApi();
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.commentServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceList: $@\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.CommentsApi()
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.comment_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceUpdate

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/comments/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        EditCommentDto body = { }; // EditCommentDto | 
-        String id = id_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        EditCommentDto body = { }; // EditCommentDto | 
-        String id = id_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditCommentDto *body = { }; // 
-String *id = id_example; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var body = { }; // {{EditCommentDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var body = new EditCommentDto(); // EditCommentDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$body = { }; // EditCommentDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $body = WWW::SwaggerClient::Object::EditCommentDto->new(); # EditCommentDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceUpdate: $@\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.CommentsApi()
-body = { } # EditCommentDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.comment_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Courses

-
-
-
-

courseServiceCreate

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/courses"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-NewCourseDto *body = ; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceCreateWith:body
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = ; // {{NewCourseDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceCreateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new NewCourseDto(); // NewCourseDto | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = ; // NewCourseDto | 
-
-try {
-    $result = $api_instance->courseServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::NewCourseDto->new(); # NewCourseDto | 
-
-eval { 
-    my $result = $api_instance->courseServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceCreate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body =  # NewCourseDto | 
-
-try: 
-    api_response = api_instance.course_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceDelete

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
--H "X-API-KEY: [[apiKey]]"\
-"/http-protocol/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.courseServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceDeleteExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.courseServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->courseServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->courseServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceDelete: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-
-try: 
-    api_instance.course_service_delete(id)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

courseServiceGet

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/http-protocol/courses/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceGetWith:id
-    select:select
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceGetExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Course result = apiInstance.courseServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceGet: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.course_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceList

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/http-protocol/courses?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Courses output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceListExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Courses result = apiInstance.courseServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->courseServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->courseServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceList: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.course_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceUpdate

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-EditCourseDto *body = { }; // 
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = { }; // {{EditCourseDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceUpdateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new EditCourseDto(); // EditCourseDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = { }; // EditCourseDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::EditCourseDto->new(); # EditCourseDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceUpdate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body = { } # EditCourseDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.course_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Posts

-
-
-
-

postServiceCreate

-

-
-
-
-

-

-

-
-
/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/posts"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        NewPostDto body = ; // NewPostDto | 
-        try {
-            Post result = apiInstance.postServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        NewPostDto body = ; // NewPostDto | 
-        try {
-            Post result = apiInstance.postServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-NewPostDto *body = ; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceCreateWith:body
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var body = ; // {{NewPostDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceCreateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var body = new NewPostDto(); // NewPostDto | 
-
-            try
-            {
-                Post result = apiInstance.postServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$body = ; // NewPostDto | 
-
-try {
-    $result = $api_instance->postServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $body = WWW::SwaggerClient::Object::NewPostDto->new(); # NewPostDto | 
-
-eval { 
-    my $result = $api_instance->postServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceCreate: $@\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.PostsApi()
-body =  # NewPostDto | 
-
-try: 
-    api_response = api_instance.post_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceDelete

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/http-protocol/posts/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.postServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.postServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.postServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.postServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->postServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->postServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceDelete: $@\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.PostsApi()
-id = id_example # String | 
-
-try: 
-    api_instance.post_service_delete(id)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

postServiceGet

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/posts/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Post result = apiInstance.postServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Post result = apiInstance.postServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceGetWith:id
-    select:select
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Post result = apiInstance.postServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceGet: $@\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.PostsApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceGetComments

-

-
-
-
-

-

-

-
-
/posts/{postId}/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/posts/{postId}/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        String postId = postId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String postId = postId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *postId = postId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceGetCommentsWith:postId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var postId = postId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceGetComments(postId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceGetCommentsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var postId = postId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceGetComments: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$postId = postId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceGetComments($postId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceGetComments: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $postId = postId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceGetComments(postId => $postId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceGetComments: $@\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.PostsApi()
-postId = postId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_get_comments(postId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceGetComments: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
postId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceList

-

-
-
-
-

-

-

-
-
/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/posts?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.postServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.postServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Posts output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Posts result = apiInstance.postServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceList: $@\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.PostsApi()
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceUpdate

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/posts/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        EditPostDto body = { }; // EditPostDto | 
-        String id = id_example; // String | 
-        try {
-            Post result = apiInstance.postServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        EditPostDto body = { }; // EditPostDto | 
-        String id = id_example; // String | 
-        try {
-            Post result = apiInstance.postServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditPostDto *body = { }; // 
-String *id = id_example; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var body = { }; // {{EditPostDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var body = new EditPostDto(); // EditPostDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Post result = apiInstance.postServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$body = { }; // EditPostDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->postServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $body = WWW::SwaggerClient::Object::EditPostDto->new(); # EditPostDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceUpdate: $@\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.PostsApi()
-body = { } # EditPostDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.post_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Tasks

-
-
-
-

taskServiceCreate

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/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();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewTaskDto *body = ; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceCreateWith:body
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = ; // {{NewTaskDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new NewTaskDto(); // NewTaskDto | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = ; // NewTaskDto | 
-
-try {
-    $result = $api_instance->taskServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceCreate: ', $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::NewTaskDto->new(); # NewTaskDto | 
-
-eval { 
-    my $result = $api_instance->taskServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceCreate: $@\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 =  # NewTaskDto | 
-
-try: 
-    api_response = api_instance.task_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceDelete

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
-"/http-protocol/tasks/{id}"
-
-
-
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 id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.taskServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceDeleteExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.taskServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->taskServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->taskServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceDelete: $@\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()
-id = id_example # String | 
-
-try: 
-    api_instance.task_service_delete(id)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

taskServiceGet

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/tasks/{id}?select="
-
-
-
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 id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceGetWith:id
-    select:select
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Task result = apiInstance.taskServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceGet: $@\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()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.task_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceList

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/tasks?skip=&limit=&select="
-
-
-
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 skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Tasks output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Tasks result = apiInstance.taskServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->taskServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->taskServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceList: $@\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()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.task_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceUpdate

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/tasks/{id}"
-
-
-
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();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
EditTaskDto *body = { }; // 
-String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = { }; // {{EditTaskDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceUpdateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new EditTaskDto(); // EditTaskDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = { }; // EditTaskDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceUpdate: ', $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::EditTaskDto->new(); # EditTaskDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceUpdate: $@\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 = { } # EditTaskDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.task_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Users

-
-
-
-

userServiceCreate

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/users"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewUserDto *body = ; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceCreateWith:body
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var body = ; // {{NewUserDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var body = new NewUserDto(); // NewUserDto | 
-
-            try
-            {
-                User result = apiInstance.userServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = ; // NewUserDto | 
-
-try {
-    $result = $api_instance->userServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::NewUserDto->new(); # NewUserDto | 
-
-eval { 
-    my $result = $api_instance->userServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceCreate: $@\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.UsersApi()
-body =  # NewUserDto | 
-
-try: 
-    api_response = api_instance.user_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceDelete

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/http-protocol/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.userServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.userServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->userServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->userServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceDelete: $@\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.UsersApi()
-id = id_example # String | 
-
-try: 
-    api_instance.user_service_delete(id)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

userServiceGet

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/users/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetWith:id
-    select:select
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                User result = apiInstance.userServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGet: $@\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.UsersApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceGetComments

-

-
-
-
-

-

-

-
-
/users/{authorId}/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/users/{authorId}/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *authorId = authorId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetCommentsWith:authorId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var authorId = authorId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGetComments(authorId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetCommentsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var authorId = authorId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGetComments: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$authorId = authorId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGetComments($authorId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGetComments: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $authorId = authorId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGetComments(authorId => $authorId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGetComments: $@\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.UsersApi()
-authorId = authorId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get_comments(authorId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGetComments: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
authorId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceGetPosts

-

-
-
-
-

-

-

-
-
/users/{authorId}/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/users/{authorId}/posts?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetPosts");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetPosts");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *authorId = authorId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetPostsWith:authorId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Posts output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var authorId = authorId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGetPosts(authorId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetPostsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var authorId = authorId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGetPosts: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$authorId = authorId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGetPosts($authorId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGetPosts: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $authorId = authorId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGetPosts(authorId => $authorId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGetPosts: $@\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.UsersApi()
-authorId = authorId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get_posts(authorId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGetPosts: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
authorId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceList

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/http-protocol/users?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Users output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Users result = apiInstance.userServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->userServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->userServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceList: $@\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.UsersApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.user_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceUpdate

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/http-protocol/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditUserDto *body = { }; // 
-String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceUpdateWith:body
-    id:id
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.UsersApi()
-var body = { }; // {{EditUserDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new UsersApi();
-            var body = new EditUserDto(); // EditUserDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                User result = apiInstance.userServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = { }; // EditUserDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->userServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::EditUserDto->new(); # EditUserDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceUpdate: $@\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.UsersApi()
-body = { } # EditUserDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.user_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
- -
-
-
- - - - - - - - - diff --git a/custom-server/assets/docs/js-playwright/.swagger-codegen-ignore b/custom-server/assets/docs/js-playwright/.swagger-codegen-ignore deleted file mode 100644 index c5fa491..0000000 --- a/custom-server/assets/docs/js-playwright/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/custom-server/assets/docs/js-playwright/.swagger-codegen/VERSION b/custom-server/assets/docs/js-playwright/.swagger-codegen/VERSION deleted file mode 100644 index eefcac2..0000000 --- a/custom-server/assets/docs/js-playwright/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.63 \ No newline at end of file diff --git a/custom-server/assets/docs/js-playwright/index.html b/custom-server/assets/docs/js-playwright/index.html deleted file mode 100644 index 11e936b..0000000 --- a/custom-server/assets/docs/js-playwright/index.html +++ /dev/null @@ -1,8035 +0,0 @@ - - - - - HTTP Api Example - - - - - - - - - - - - - -
-
- -
-
-
-

HTTP Api Example

-
-
-
- -
-
-

Auth

-
-
-
-

authServiceCreate

-

-
-
-
-

-

-

-
-
/login
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/js-playwright/login"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.AuthApi;
-
-import java.io.File;
-import java.util.*;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.AuthApi;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
AuthData *body = ; // 
-
-AuthApi *apiInstance = [[AuthApi alloc] init];
-
-[apiInstance authServiceCreateWith:body
-              completionHandler: ^(AuthToken output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.AuthApi()
-var body = ; // {{AuthData}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.authServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class authServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new AuthApi();
-            var body = new AuthData(); // AuthData | 
-
-            try
-            {
-                AuthToken result = apiInstance.authServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling AuthApi.authServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiAuthApi();
-$body = ; // AuthData | 
-
-try {
-    $result = $api_instance->authServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling AuthApi->authServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::AuthApi;
-
-my $api_instance = WWW::SwaggerClient::AuthApi->new();
-my $body = WWW::SwaggerClient::Object::AuthData->new(); # AuthData | 
-
-eval { 
-    my $result = $api_instance->authServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling AuthApi->authServiceCreate: $@\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.AuthApi()
-body =  # AuthData | 
-
-try: 
-    api_response = api_instance.auth_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling AuthApi->authServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Courses

-
-
-
-

courseServiceCreate

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/js-playwright/courses"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-NewCourseDto *body = ; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceCreateWith:body
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = ; // {{NewCourseDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceCreateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new NewCourseDto(); // NewCourseDto | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = ; // NewCourseDto | 
-
-try {
-    $result = $api_instance->courseServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::NewCourseDto->new(); # NewCourseDto | 
-
-eval { 
-    my $result = $api_instance->courseServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceCreate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body =  # NewCourseDto | 
-
-try: 
-    api_response = api_instance.course_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceDelete

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
--H "X-API-KEY: [[apiKey]]"\
-"/js-playwright/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.courseServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceDeleteExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.courseServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->courseServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->courseServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceDelete: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-
-try: 
-    api_instance.course_service_delete(id)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

courseServiceGet

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/js-playwright/courses/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceGetWith:id
-    select:select
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceGetExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Course result = apiInstance.courseServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceGet: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.course_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceList

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/js-playwright/courses?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Courses output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceListExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Courses result = apiInstance.courseServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->courseServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->courseServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceList: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.course_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceUpdate

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/js-playwright/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-EditCourseDto *body = { }; // 
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = { }; // {{EditCourseDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceUpdateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new EditCourseDto(); // EditCourseDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = { }; // EditCourseDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::EditCourseDto->new(); # EditCourseDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceUpdate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body = { } # EditCourseDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.course_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Tasks

-
-
-
-

taskServiceCreate

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/js-playwright/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();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewTaskDto *body = ; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceCreateWith:body
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = ; // {{NewTaskDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new NewTaskDto(); // NewTaskDto | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = ; // NewTaskDto | 
-
-try {
-    $result = $api_instance->taskServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceCreate: ', $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::NewTaskDto->new(); # NewTaskDto | 
-
-eval { 
-    my $result = $api_instance->taskServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceCreate: $@\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 =  # NewTaskDto | 
-
-try: 
-    api_response = api_instance.task_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceDelete

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
-"/js-playwright/tasks/{id}"
-
-
-
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 id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.taskServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceDeleteExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.taskServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->taskServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->taskServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceDelete: $@\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()
-id = id_example # String | 
-
-try: 
-    api_instance.task_service_delete(id)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

taskServiceGet

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/js-playwright/tasks/{id}?select="
-
-
-
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 id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceGetWith:id
-    select:select
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Task result = apiInstance.taskServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceGet: $@\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()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.task_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceList

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/js-playwright/tasks?skip=&limit=&select="
-
-
-
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 skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Tasks output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Tasks result = apiInstance.taskServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->taskServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->taskServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceList: $@\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()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.task_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceUpdate

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/js-playwright/tasks/{id}"
-
-
-
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();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
EditTaskDto *body = { }; // 
-String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = { }; // {{EditTaskDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceUpdateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new EditTaskDto(); // EditTaskDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = { }; // EditTaskDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceUpdate: ', $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::EditTaskDto->new(); # EditTaskDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceUpdate: $@\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 = { } # EditTaskDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.task_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Users

-
-
-
-

userServiceCreate

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/js-playwright/users"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewUserDto *body = ; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceCreateWith:body
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var body = ; // {{NewUserDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var body = new NewUserDto(); // NewUserDto | 
-
-            try
-            {
-                User result = apiInstance.userServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = ; // NewUserDto | 
-
-try {
-    $result = $api_instance->userServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::NewUserDto->new(); # NewUserDto | 
-
-eval { 
-    my $result = $api_instance->userServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceCreate: $@\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.UsersApi()
-body =  # NewUserDto | 
-
-try: 
-    api_response = api_instance.user_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceDelete

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
-"/js-playwright/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.userServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceDeleteExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.userServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->userServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->userServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceDelete: $@\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.UsersApi()
-id = id_example # String | 
-
-try: 
-    api_instance.user_service_delete(id)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

userServiceGet

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/js-playwright/users/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetWith:id
-    select:select
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                User result = apiInstance.userServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGet: $@\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.UsersApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceList

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/js-playwright/users?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Users output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Users result = apiInstance.userServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->userServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->userServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceList: $@\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.UsersApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.user_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceUpdate

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/js-playwright/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
EditUserDto *body = { }; // 
-String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceUpdateWith:body
-    id:id
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var body = { }; // {{EditUserDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceUpdateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var body = new EditUserDto(); // EditUserDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                User result = apiInstance.userServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = { }; // EditUserDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->userServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::EditUserDto->new(); # EditUserDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceUpdate: $@\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.UsersApi()
-body = { } # EditUserDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.user_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
- -
-
-
- - - - - - - - - diff --git a/custom-server/assets/docs/postman/.swagger-codegen-ignore b/custom-server/assets/docs/postman/.swagger-codegen-ignore deleted file mode 100644 index c5fa491..0000000 --- a/custom-server/assets/docs/postman/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/custom-server/assets/docs/postman/.swagger-codegen/VERSION b/custom-server/assets/docs/postman/.swagger-codegen/VERSION deleted file mode 100644 index eefcac2..0000000 --- a/custom-server/assets/docs/postman/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.63 \ No newline at end of file diff --git a/custom-server/assets/docs/postman/index.html b/custom-server/assets/docs/postman/index.html deleted file mode 100644 index 347c753..0000000 --- a/custom-server/assets/docs/postman/index.html +++ /dev/null @@ -1,12550 +0,0 @@ - - - - - HTTP Api Example - - - - - - - - - - - - - -
-
- -
-
-
-

HTTP Api Example

-
-
-
- -
-
-

Auth

-
-
-
-

authServiceCreate

-

-
-
-
-

-

-

-
-
/login
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/login"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.AuthApi;
-
-import java.io.File;
-import java.util.*;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.AuthApi;
-
-public class AuthApiExample {
-
-    public static void main(String[] args) {
-        AuthApi apiInstance = new AuthApi();
-        AuthData body = ; // AuthData | 
-        try {
-            AuthToken result = apiInstance.authServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling AuthApi#authServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
AuthData *body = ; // 
-
-AuthApi *apiInstance = [[AuthApi alloc] init];
-
-[apiInstance authServiceCreateWith:body
-              completionHandler: ^(AuthToken output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.AuthApi()
-var body = ; // {{AuthData}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.authServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class authServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new AuthApi();
-            var body = new AuthData(); // AuthData | 
-
-            try
-            {
-                AuthToken result = apiInstance.authServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling AuthApi.authServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiAuthApi();
-$body = ; // AuthData | 
-
-try {
-    $result = $api_instance->authServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling AuthApi->authServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::AuthApi;
-
-my $api_instance = WWW::SwaggerClient::AuthApi->new();
-my $body = WWW::SwaggerClient::Object::AuthData->new(); # AuthData | 
-
-eval { 
-    my $result = $api_instance->authServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling AuthApi->authServiceCreate: $@\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.AuthApi()
-body =  # AuthData | 
-
-try: 
-    api_response = api_instance.auth_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling AuthApi->authServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Comments

-
-
-
-

commentServiceCreate

-

-
-
-
-

-

-

-
-
/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/comments"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        NewCommentDto body = ; // NewCommentDto | 
-        try {
-            Comment result = apiInstance.commentServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        NewCommentDto body = ; // NewCommentDto | 
-        try {
-            Comment result = apiInstance.commentServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-NewCommentDto *body = ; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceCreateWith:body
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var body = ; // {{NewCommentDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceCreateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var body = new NewCommentDto(); // NewCommentDto | 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$body = ; // NewCommentDto | 
-
-try {
-    $result = $api_instance->commentServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $body = WWW::SwaggerClient::Object::NewCommentDto->new(); # NewCommentDto | 
-
-eval { 
-    my $result = $api_instance->commentServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceCreate: $@\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.CommentsApi()
-body =  # NewCommentDto | 
-
-try: 
-    api_response = api_instance.comment_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceDelete

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/postman/comments/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.commentServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.commentServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.commentServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.commentServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->commentServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->commentServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceDelete: $@\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.CommentsApi()
-id = id_example # String | 
-
-try: 
-    api_instance.comment_service_delete(id)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

commentServiceGet

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/comments/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceGetWith:id
-    select:select
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.CommentsApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new CommentsApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceGet: $@\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.CommentsApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.comment_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceList

-

-
-
-
-

-

-

-
-
/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        
-        CommentsApi apiInstance = new CommentsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.commentServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.commentServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.CommentsApi()
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new CommentsApi();
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.commentServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceList: $@\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.CommentsApi()
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.comment_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

commentServiceUpdate

-

-
-
-
-

-

-

-
-
/comments/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/comments/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CommentsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        CommentsApi apiInstance = new CommentsApi();
-        EditCommentDto body = { }; // EditCommentDto | 
-        String id = id_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CommentsApi;
-
-public class CommentsApiExample {
-
-    public static void main(String[] args) {
-        CommentsApi apiInstance = new CommentsApi();
-        EditCommentDto body = { }; // EditCommentDto | 
-        String id = id_example; // String | 
-        try {
-            Comment result = apiInstance.commentServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CommentsApi#commentServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditCommentDto *body = { }; // 
-String *id = id_example; // 
-
-CommentsApi *apiInstance = [[CommentsApi alloc] init];
-
-[apiInstance commentServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Comment output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.CommentsApi()
-var body = { }; // {{EditCommentDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.commentServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class commentServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new CommentsApi();
-            var body = new EditCommentDto(); // EditCommentDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Comment result = apiInstance.commentServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CommentsApi.commentServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiCommentsApi();
-$body = { }; // EditCommentDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->commentServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CommentsApi->commentServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CommentsApi;
-
-
-my $api_instance = WWW::SwaggerClient::CommentsApi->new();
-my $body = WWW::SwaggerClient::Object::EditCommentDto->new(); # EditCommentDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->commentServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CommentsApi->commentServiceUpdate: $@\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.CommentsApi()
-body = { } # EditCommentDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.comment_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CommentsApi->commentServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Courses

-
-
-
-

courseServiceCreate

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/courses"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        NewCourseDto body = ; // NewCourseDto | 
-        try {
-            Course result = apiInstance.courseServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-NewCourseDto *body = ; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceCreateWith:body
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = ; // {{NewCourseDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceCreateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new NewCourseDto(); // NewCourseDto | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = ; // NewCourseDto | 
-
-try {
-    $result = $api_instance->courseServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::NewCourseDto->new(); # NewCourseDto | 
-
-eval { 
-    my $result = $api_instance->courseServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceCreate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body =  # NewCourseDto | 
-
-try: 
-    api_response = api_instance.course_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceDelete

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
--H "X-API-KEY: [[apiKey]]"\
-"/postman/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.courseServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.courseServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceDeleteExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.courseServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->courseServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->courseServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceDelete: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-
-try: 
-    api_instance.course_service_delete(id)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

courseServiceGet

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/postman/courses/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceGetWith:id
-    select:select
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceGetExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Course result = apiInstance.courseServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceGet: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.course_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceList

-

-
-
-
-

-

-

-
-
/courses
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
-"/postman/courses?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Courses result = apiInstance.courseServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Courses output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceListExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Courses result = apiInstance.courseServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->courseServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->courseServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceList: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.course_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

courseServiceUpdate

-

-
-
-
-

-

-

-
-
/courses/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "X-API-KEY: [[apiKey]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/courses/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.CoursesApi;
-
-import java.io.File;
-import java.util.*;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-        // Configure API key authorization: ApiKeyAuth
-        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
-        ApiKeyAuth.setApiKey("YOUR API KEY");
-        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-        //ApiKeyAuth.setApiKeyPrefix("Token");
-
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.CoursesApi;
-
-public class CoursesApiExample {
-
-    public static void main(String[] args) {
-        CoursesApi apiInstance = new CoursesApi();
-        EditCourseDto body = { }; // EditCourseDto | 
-        String id = id_example; // String | 
-        try {
-            Course result = apiInstance.courseServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling CoursesApi#courseServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-// Configure API key authorization: (authentication scheme: ApiKeyAuth)
-[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-API-KEY"];
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-API-KEY"];
-EditCourseDto *body = { }; // 
-String *id = id_example; // 
-
-CoursesApi *apiInstance = [[CoursesApi alloc] init];
-
-[apiInstance courseServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Course output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-// Configure API key authorization: ApiKeyAuth
-var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
-ApiKeyAuth.apiKey = "YOUR API KEY"
-// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
-//ApiKeyAuth.apiKeyPrefix['X-API-KEY'] = "Token"
-
-var api = new HttpApiExample.CoursesApi()
-var body = { }; // {{EditCourseDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.courseServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class courseServiceUpdateExample
-    {
-        public void main()
-        {
-
-            // Configure API key authorization: ApiKeyAuth
-            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
-            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
-
-            var apiInstance = new CoursesApi();
-            var body = new EditCourseDto(); // EditCourseDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Course result = apiInstance.courseServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling CoursesApi.courseServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-// Configure API key authorization: ApiKeyAuth
-Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY');
-// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer');
-
-$api_instance = new Swagger\Client\ApiCoursesApi();
-$body = { }; // EditCourseDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->courseServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling CoursesApi->courseServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::CoursesApi;
-
-# Configure API key authorization: ApiKeyAuth
-$WWW::SwaggerClient::Configuration::api_key->{'X-API-KEY'} = 'YOUR_API_KEY';
-# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-#$WWW::SwaggerClient::Configuration::api_key_prefix->{'X-API-KEY'} = "Bearer";
-
-my $api_instance = WWW::SwaggerClient::CoursesApi->new();
-my $body = WWW::SwaggerClient::Object::EditCourseDto->new(); # EditCourseDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->courseServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling CoursesApi->courseServiceUpdate: $@\n";
-}
-
- -
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-# Configure API key authorization: ApiKeyAuth
-swagger_client.configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# swagger_client.configuration.api_key_prefix['X-API-KEY'] = 'Bearer'
-
-# create an instance of the API class
-api_instance = swagger_client.CoursesApi()
-body = { } # EditCourseDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.course_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling CoursesApi->courseServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Posts

-
-
-
-

postServiceCreate

-

-
-
-
-

-

-

-
-
/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/posts"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        NewPostDto body = ; // NewPostDto | 
-        try {
-            Post result = apiInstance.postServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        NewPostDto body = ; // NewPostDto | 
-        try {
-            Post result = apiInstance.postServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-NewPostDto *body = ; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceCreateWith:body
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var body = ; // {{NewPostDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceCreateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var body = new NewPostDto(); // NewPostDto | 
-
-            try
-            {
-                Post result = apiInstance.postServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$body = ; // NewPostDto | 
-
-try {
-    $result = $api_instance->postServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $body = WWW::SwaggerClient::Object::NewPostDto->new(); # NewPostDto | 
-
-eval { 
-    my $result = $api_instance->postServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceCreate: $@\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.PostsApi()
-body =  # NewPostDto | 
-
-try: 
-    api_response = api_instance.post_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceDelete

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/postman/posts/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.postServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.postServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.postServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.postServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->postServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->postServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceDelete: $@\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.PostsApi()
-id = id_example # String | 
-
-try: 
-    api_instance.post_service_delete(id)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

postServiceGet

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/posts/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Post result = apiInstance.postServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Post result = apiInstance.postServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceGetWith:id
-    select:select
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Post result = apiInstance.postServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceGet: $@\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.PostsApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceGetComments

-

-
-
-
-

-

-

-
-
/posts/{postId}/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/posts/{postId}/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        String postId = postId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        String postId = postId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *postId = postId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceGetCommentsWith:postId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var postId = postId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceGetComments(postId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceGetCommentsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var postId = postId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.postServiceGetComments(postId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceGetComments: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$postId = postId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceGetComments($postId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceGetComments: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $postId = postId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceGetComments(postId => $postId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceGetComments: $@\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.PostsApi()
-postId = postId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_get_comments(postId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceGetComments: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
postId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceList

-

-
-
-
-

-

-

-
-
/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/posts?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        
-        PostsApi apiInstance = new PostsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.postServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.postServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Posts output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.PostsApi()
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new PostsApi();
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Posts result = apiInstance.postServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->postServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceList: $@\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.PostsApi()
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.post_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

postServiceUpdate

-

-
-
-
-

-

-

-
-
/posts/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/posts/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.PostsApi;
-
-import java.io.File;
-import java.util.*;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        PostsApi apiInstance = new PostsApi();
-        EditPostDto body = { }; // EditPostDto | 
-        String id = id_example; // String | 
-        try {
-            Post result = apiInstance.postServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.PostsApi;
-
-public class PostsApiExample {
-
-    public static void main(String[] args) {
-        PostsApi apiInstance = new PostsApi();
-        EditPostDto body = { }; // EditPostDto | 
-        String id = id_example; // String | 
-        try {
-            Post result = apiInstance.postServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling PostsApi#postServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditPostDto *body = { }; // 
-String *id = id_example; // 
-
-PostsApi *apiInstance = [[PostsApi alloc] init];
-
-[apiInstance postServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Post output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.PostsApi()
-var body = { }; // {{EditPostDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.postServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class postServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new PostsApi();
-            var body = new EditPostDto(); // EditPostDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Post result = apiInstance.postServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling PostsApi.postServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiPostsApi();
-$body = { }; // EditPostDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->postServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling PostsApi->postServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::PostsApi;
-
-
-my $api_instance = WWW::SwaggerClient::PostsApi->new();
-my $body = WWW::SwaggerClient::Object::EditPostDto->new(); # EditPostDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->postServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling PostsApi->postServiceUpdate: $@\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.PostsApi()
-body = { } # EditPostDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.post_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling PostsApi->postServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Tasks

-
-
-
-

taskServiceCreate

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/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();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        NewTaskDto body = ; // NewTaskDto | 
-        try {
-            Task result = apiInstance.taskServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewTaskDto *body = ; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceCreateWith:body
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = ; // {{NewTaskDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new NewTaskDto(); // NewTaskDto | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = ; // NewTaskDto | 
-
-try {
-    $result = $api_instance->taskServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceCreate: ', $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::NewTaskDto->new(); # NewTaskDto | 
-
-eval { 
-    my $result = $api_instance->taskServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceCreate: $@\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 =  # NewTaskDto | 
-
-try: 
-    api_response = api_instance.task_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceDelete

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
-"/postman/tasks/{id}"
-
-
-
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 id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.taskServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.taskServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceDeleteExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.taskServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->taskServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->taskServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceDelete: $@\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()
-id = id_example # String | 
-
-try: 
-    api_instance.task_service_delete(id)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

taskServiceGet

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/tasks/{id}?select="
-
-
-
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 id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceGetWith:id
-    select:select
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Task result = apiInstance.taskServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceGet: $@\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()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.task_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceList

-

-
-
-
-

-

-

-
-
/tasks
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/tasks?skip=&limit=&select="
-
-
-
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 skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Tasks result = apiInstance.taskServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Tasks output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Tasks result = apiInstance.taskServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->taskServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::TasksApi;
-
-my $api_instance = WWW::SwaggerClient::TasksApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->taskServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceList: $@\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()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.task_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

taskServiceUpdate

-

-
-
-
-

-

-

-
-
/tasks/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/tasks/{id}"
-
-
-
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();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.TasksApi;
-
-public class TasksApiExample {
-
-    public static void main(String[] args) {
-        TasksApi apiInstance = new TasksApi();
-        EditTaskDto body = { }; // EditTaskDto | 
-        String id = id_example; // String | 
-        try {
-            Task result = apiInstance.taskServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling TasksApi#taskServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
EditTaskDto *body = { }; // 
-String *id = id_example; // 
-
-TasksApi *apiInstance = [[TasksApi alloc] init];
-
-[apiInstance taskServiceUpdateWith:body
-    id:id
-              completionHandler: ^(Task output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.TasksApi()
-var body = { }; // {{EditTaskDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.taskServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class taskServiceUpdateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new TasksApi();
-            var body = new EditTaskDto(); // EditTaskDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                Task result = apiInstance.taskServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling TasksApi.taskServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiTasksApi();
-$body = { }; // EditTaskDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->taskServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling TasksApi->taskServiceUpdate: ', $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::EditTaskDto->new(); # EditTaskDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->taskServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling TasksApi->taskServiceUpdate: $@\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 = { } # EditTaskDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.task_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling TasksApi->taskServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-

Users

-
-
-
-

userServiceCreate

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X POST\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/users"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        NewUserDto body = ; // NewUserDto | 
-        try {
-            User result = apiInstance.userServiceCreate(body);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceCreate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
NewUserDto *body = ; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceCreateWith:body
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var body = ; // {{NewUserDto}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceCreate(body, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceCreateExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var body = new NewUserDto(); // NewUserDto | 
-
-            try
-            {
-                User result = apiInstance.userServiceCreate(body);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceCreate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = ; // NewUserDto | 
-
-try {
-    $result = $api_instance->userServiceCreate($body);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceCreate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::NewUserDto->new(); # NewUserDto | 
-
-eval { 
-    my $result = $api_instance->userServiceCreate(body => $body);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceCreate: $@\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.UsersApi()
-body =  # NewUserDto | 
-
-try: 
-    api_response = api_instance.user_service_create(body)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceCreate: %s\n" % e)
-
-
- -

Parameters

- - - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceDelete

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X DELETE\
- -H "Authorization: Bearer [[accessToken]]"\
-"/postman/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        try {
-            apiInstance.userServiceDelete(id);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceDelete");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceDeleteWith:id
-              completionHandler: ^(NSError* error) {
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully.');
-  }
-};
-api.userServiceDelete(id, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceDeleteExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-
-            try
-            {
-                apiInstance.userServiceDelete(id);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceDelete: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-
-try {
-    $api_instance->userServiceDelete($id);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceDelete: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-
-eval { 
-    $api_instance->userServiceDelete(id => $id);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceDelete: $@\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.UsersApi()
-id = id_example # String | 
-
-try: 
-    api_instance.user_service_delete(id)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceDelete: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - - -

Responses

-

Status: 204 - There is no content to send for this request, but the headers may be useful.

- - - -
-
- -
-
-
-
-
-
-

userServiceGet

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/users/{id}?select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String id = id_example; // String | 
-        String select = select_example; // String | 
-        try {
-            User result = apiInstance.userServiceGet(id, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGet");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *id = id_example; // 
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetWith:id
-    select:select
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var id = id_example; // {{String}} 
-var opts = { 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGet(id, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var id = id_example;  // String | 
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                User result = apiInstance.userServiceGet(id, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGet: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$id = id_example; // String | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGet($id, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGet: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $id = id_example; # String | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGet(id => $id, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGet: $@\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.UsersApi()
-id = id_example # String | 
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get(id, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGet: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - -
NameDescription
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceGetComments

-

-
-
-
-

-

-

-
-
/users/{authorId}/comments
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/users/{authorId}/comments?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetComments");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *authorId = authorId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetCommentsWith:authorId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Comments output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var authorId = authorId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGetComments(authorId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetCommentsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var authorId = authorId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Comments result = apiInstance.userServiceGetComments(authorId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGetComments: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$authorId = authorId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGetComments($authorId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGetComments: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $authorId = authorId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGetComments(authorId => $authorId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGetComments: $@\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.UsersApi()
-authorId = authorId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get_comments(authorId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGetComments: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
authorId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceGetPosts

-

-
-
-
-

-

-

-
-
/users/{authorId}/posts
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/users/{authorId}/posts?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetPosts");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String authorId = authorId_example; // String | 
-        Integer skip = 56; // Integer | 
-        Integer limit = 56; // Integer | 
-        String select = select_example; // String | 
-        try {
-            Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceGetPosts");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *authorId = authorId_example; // 
-Integer *skip = 56; //  (optional) (default to 0)
-Integer *limit = 56; //  (optional) (default to 30)
-String *select = select_example; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceGetPostsWith:authorId
-    skip:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Posts output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var authorId = authorId_example; // {{String}} 
-var opts = { 
-  'skip': 56, // {{Integer}} 
-  'limit': 56, // {{Integer}} 
-  'select': select_example // {{String}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceGetPosts(authorId, opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceGetPostsExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var authorId = authorId_example;  // String | 
-            var skip = 56;  // Integer |  (optional)  (default to 0)
-            var limit = 56;  // Integer |  (optional)  (default to 30)
-            var select = select_example;  // String |  (optional) 
-
-            try
-            {
-                Posts result = apiInstance.userServiceGetPosts(authorId, skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceGetPosts: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$authorId = authorId_example; // String | 
-$skip = 56; // Integer | 
-$limit = 56; // Integer | 
-$select = select_example; // String | 
-
-try {
-    $result = $api_instance->userServiceGetPosts($authorId, $skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceGetPosts: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $authorId = authorId_example; # String | 
-my $skip = 56; # Integer | 
-my $limit = 56; # Integer | 
-my $select = select_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceGetPosts(authorId => $authorId, skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceGetPosts: $@\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.UsersApi()
-authorId = authorId_example # String | 
-skip = 56 # Integer |  (optional) (default to 0)
-limit = 56 # Integer |  (optional) (default to 30)
-select = select_example # String |  (optional)
-
-try: 
-    api_response = api_instance.user_service_get_posts(authorId, skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceGetPosts: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
authorId* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - Integer - - -
-
-
-
limit - - -
-
-
- - Integer - - -
-
-
-
select - - -
-
-
- - String - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceList

-

-
-
-
-

-

-

-
-
/users
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X GET\
--H "Accept: application/json"\
-"/postman/users?skip=&limit=&select="
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        String skip = skip_example; // String | 
-        String limit = limit_example; // String | 
-        array[String] select = ; // array[String] | 
-        try {
-            Users result = apiInstance.userServiceList(skip, limit, select);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceList");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
String *skip = skip_example; //  (optional)
-String *limit = limit_example; //  (optional)
-array[String] *select = ; //  (optional)
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceListWith:skip
-    limit:limit
-    select:select
-              completionHandler: ^(Users output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-
-var api = new HttpApiExample.UsersApi()
-var opts = { 
-  'skip': skip_example, // {{String}} 
-  'limit': limit_example, // {{String}} 
-  'select':  // {{array[String]}} 
-};
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceList(opts, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceListExample
-    {
-        public void main()
-        {
-
-            var apiInstance = new UsersApi();
-            var skip = skip_example;  // String |  (optional) 
-            var limit = limit_example;  // String |  (optional) 
-            var select = new array[String](); // array[String] |  (optional) 
-
-            try
-            {
-                Users result = apiInstance.userServiceList(skip, limit, select);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceList: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$skip = skip_example; // String | 
-$limit = limit_example; // String | 
-$select = ; // array[String] | 
-
-try {
-    $result = $api_instance->userServiceList($skip, $limit, $select);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceList: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $skip = skip_example; # String | 
-my $limit = limit_example; # String | 
-my $select = []; # array[String] | 
-
-eval { 
-    my $result = $api_instance->userServiceList(skip => $skip, limit => $limit, select => $select);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceList: $@\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.UsersApi()
-skip = skip_example # String |  (optional)
-limit = limit_example # String |  (optional)
-select =  # array[String] |  (optional)
-
-try: 
-    api_response = api_instance.user_service_list(skip=skip, limit=limit, select=select)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceList: %s\n" % e)
-
-
- -

Parameters

- - - - - -
Query parameters
- - - - - - - - - - - - - - -
NameDescription
skip - - -
-
-
- - String - - -
-
-
-
limit - - -
-
-
- - String - - -
-
-
-
select - - -
-
-
- - array[String] - - -
-
-
-
- -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
-
-

userServiceUpdate

-

-
-
-
-

-

-

-
-
/users/{id}
-

-

Usage and SDK Samples

-

- - -
-
-
curl -X PATCH\
- -H "Authorization: Bearer [[accessToken]]"\
--H "Accept: application/json"\
--H "Content-Type: application/json"\
-"/postman/users/{id}"
-
-
-
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.UsersApi;
-
-import java.io.File;
-import java.util.*;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
import io.swagger.client.api.UsersApi;
-
-public class UsersApiExample {
-
-    public static void main(String[] args) {
-        UsersApi apiInstance = new UsersApi();
-        EditUserDto body = { }; // EditUserDto | 
-        String id = id_example; // String | 
-        try {
-            User result = apiInstance.userServiceUpdate(body, id);
-            System.out.println(result);
-        } catch (ApiException e) {
-            System.err.println("Exception when calling UsersApi#userServiceUpdate");
-            e.printStackTrace();
-        }
-    }
-}
-
- -
-
Configuration *apiConfig = [Configuration sharedConfig];
-EditUserDto *body = { }; // 
-String *id = id_example; // 
-
-UsersApi *apiInstance = [[UsersApi alloc] init];
-
-[apiInstance userServiceUpdateWith:body
-    id:id
-              completionHandler: ^(User output, NSError* error) {
-                            if (output) {
-                                NSLog(@"%@", output);
-                            }
-                            if (error) {
-                                NSLog(@"Error: %@", error);
-                            }
-                        }];
-
-
- -
-
var HttpApiExample = require('http_api_example');
-var defaultClient = HttpApiExample.ApiClient.instance;
-
-
-var api = new HttpApiExample.UsersApi()
-var body = { }; // {{EditUserDto}} 
-var id = id_example; // {{String}} 
-
-var callback = function(error, data, response) {
-  if (error) {
-    console.error(error);
-  } else {
-    console.log('API called successfully. Returned data: ' + data);
-  }
-};
-api.userServiceUpdate(bodyid, callback);
-
-
- - -
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
-    public class userServiceUpdateExample
-    {
-        public void main()
-        {
-
-
-            var apiInstance = new UsersApi();
-            var body = new EditUserDto(); // EditUserDto | 
-            var id = id_example;  // String | 
-
-            try
-            {
-                User result = apiInstance.userServiceUpdate(body, id);
-                Debug.WriteLine(result);
-            }
-            catch (Exception e)
-            {
-                Debug.Print("Exception when calling UsersApi.userServiceUpdate: " + e.Message );
-            }
-        }
-    }
-}
-
-
- -
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiUsersApi();
-$body = { }; // EditUserDto | 
-$id = id_example; // String | 
-
-try {
-    $result = $api_instance->userServiceUpdate($body, $id);
-    print_r($result);
-} catch (Exception $e) {
-    echo 'Exception when calling UsersApi->userServiceUpdate: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
- -
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::UsersApi;
-
-
-my $api_instance = WWW::SwaggerClient::UsersApi->new();
-my $body = WWW::SwaggerClient::Object::EditUserDto->new(); # EditUserDto | 
-my $id = id_example; # String | 
-
-eval { 
-    my $result = $api_instance->userServiceUpdate(body => $body, id => $id);
-    print Dumper($result);
-};
-if ($@) {
-    warn "Exception when calling UsersApi->userServiceUpdate: $@\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.UsersApi()
-body = { } # EditUserDto | 
-id = id_example # String | 
-
-try: 
-    api_response = api_instance.user_service_update(body, id)
-    pprint(api_response)
-except ApiException as e:
-    print("Exception when calling UsersApi->userServiceUpdate: %s\n" % e)
-
-
- -

Parameters

- -
Path parameters
- - - - - - - - -
NameDescription
id* - - -
-
-
- - String - - -
-
- Required -
-
-
-
- - -
Body parameters
- - - - - - - - -
NameDescription
body * - - - -
-
- - - -

Responses

-

Status: 200 - The request has succeeded.

- - - -
-
-
- -
- -
-
- -
-
-
-
-
- -
-
-
- - - - - - - - - diff --git a/typespec/examples/auth.tsp b/typespec/examples/auth.tsp deleted file mode 100644 index 1ca085a..0000000 --- a/typespec/examples/auth.tsp +++ /dev/null @@ -1,8 +0,0 @@ -const authDataExample = #{ - email: "max@hotmail.com", - password: "password" -}; - -const authTokenExample = #{ - token: "r4AR4Fo0j29s9mFk4IUVA2rGTQmIrHWlioifaJLSQQYHbTXHxtSLFUVp8PANrRoAb7fgkSsbN7lt4a86pcJ07ivUpxBLyyCHaY4Pp9I7hRPphCHM7xpZ1om1" -}; diff --git a/typespec/examples/comments.tsp b/typespec/examples/comments.tsp deleted file mode 100644 index 37f1efb..0000000 --- a/typespec/examples/comments.tsp +++ /dev/null @@ -1,200 +0,0 @@ -const totalCommentsExample = 40; - -const skipCommentsExample = 0; - -const limitCommentsExample = 40; - -const newCommentDtoExample = #{ - postId: "11", - body: "New comment body", -}; - -const editCommentDtoExample = #{ - postId: "11", - body: "Edited comment body", -}; - -const commentExample = #{ - id: "111", - authorId: "1", - postId: "11", - body: "Consequatur cornu amet comprehendo tamisium caelum animadverto triumphus damno. Aduro atqui dolorem vir architecto succurro. Sto aperte apto et derideo socius concedo nihil adhaero.\nBardus quas trepide circumvenio. Optio aegrotatio debeo theca adopto tam ver. Comis succedo volo quisquam.\nCauda atqui caveo deleo. Casso doloribus similique non universe ago defetiscor cicuta strenuus. Terror quos custodia administratio aegrus fugiat acquiro.", -}; - -const commentsExample = #[ - commentExample, - #{ - id: "112", - authorId: "1", - postId: "11", - body: "Vinitor creo defessus conor bellicus. Deludo nesciunt tabgo distinctio neque odio. Conservo adsum decretum aetas arcesso.\nUtor turbo apostolus fugit volaticus animus taceo venustas suppono succedo. Canis incidunt damnatio. Adsidue adsuesco cotidie pauper accusator delego theatrum voluptatem trado tolero.\nAudax explicabo curtus venio angulus demo. Defetiscor accedo tabula conventus accommodo quisquam abstergo infit. Asporto armarium ara varius." - }, - #{ - id: "113", - authorId: "1", - postId: "11", - body: "Thymum conforto alveus. Bibo et ager. Vulariter terminatio adhaero umbra eaque adulescens vis carpo.\nApostolus tabgo thymbra talio. Perferendis crur summopere nostrum adulatio victoria vulariter. Ver angustus claudeo est amicitia.\nVigor crur cervus talus certe. Vinitor ex apostolus cultellus quo crudelis uterque auditor. Blanditiis magnam defungo uter commodo aegrus calamitas adsuesco." - }, - #{ - id: "114", - authorId: "1", - postId: "11", - body: "Cubo vestrum cogito. Adficio vereor annus. Tubineus quod vulgo conventus cicuta tribuo clementia totus perspiciatis denique.\nDepraedor curso quia quia arbustum. Minima arma denego ea compono. Annus paulatim enim deripio amo cernuus soleo.\nImpedit umquam teres distinctio virtus synagoga tempus reprehenderit credo. Copia torrens utpote deputo articulus sollers. Auxilium cur strues arma eum." - }, - #{ - id: "115", - authorId: "1", - postId: "11", - body: "Certe acervus candidus. Voluptates adflicto sumptus abundans vallum. Bis velut vomito necessitatibus valde esse tepidus.\nVeritas consectetur cuius clamo nemo adopto copia tum. Tamdiu eligendi solutio vesco taedium aggredior sol tunc ad. Vespillo adstringo terebro.\nPax umerus copiose repudiandae vilis cultellus curriculum minus concido. Voro temperantia uxor degero voluptatem vir conturbo tardus acies. Colligo cibo cupio crur delibero." - }, - #{ - id: "116", - authorId: "1", - postId: "11", - body: "Ipsum aestivus curia ater voluptate suscipio certus claustrum compello curtus. Vis officiis aequitas cariosus cotidie acsi terror earum solitudo dedico. Adfero defetiscor assumenda congregatio tam.\nItaque adversus demulceo depopulo addo currus tribuo cunabula. Ars aetas carpo agnosco. Tres convoco degusto terga animus.\nReprehenderit adsidue vilicus aequitas capto texo iure tergum tres vetus. Totidem utique acsi. Vapulus ante curiositas benigne." - }, - #{ - id: "117", - authorId: "1", - postId: "11", - body: "Subiungo sortitus tantillus usque amo adhuc delinquo delego cattus. Aptus nam calcar victoria confido vestrum patruus debeo vilis nemo. Sollers concido attonbitus aegrotatio temeritas vobis est aegre conturbo cultellus.\nValetudo volva tardus sollicito admoneo accedo ustilo coaegresco cupiditate quae. Umbra cito alii tamisium somnus ascisco correptius molestiae. Advoco cometes aeneus.\nTextilis quod tego avarus conor suppono viscus. Aestus volup amo ratione acceptus suggero vesica. Cotidie infit deleniti adaugeo brevis unde molestiae valetudo." - }, - #{ - id: "118", - authorId: "1", - postId: "11", - body: "Cotidie desolo utique. Vestrum vinum tamdiu laborum capillus. Accusantium adicio sordeo arcesso absconditus aureus utrimque sit strenuus.\nQuod appono demonstro velut curriculum conforto vivo dicta natus ceno. Voluptatem deinde amo accedo voluptas. Supellex celebrer terminatio vinitor accommodo.\nOdio creta angelus compono trucido volubilis. Ambitus viridis subnecto. Tergo attollo carbo magnam voluptates thesaurus deinde." - }, - #{ - id: "119", - authorId: "1", - postId: "11", - body: "Voveo calcar suadeo vestigium cognatus utor. Virtus abbas turbo vestrum earum caelum. Itaque quae pecto voluptatum absum vobis una corpus temeritas textus.\nQuis vesica creator ustulo artificiose iure cursus vulnus. Caritas deleniti thesaurus deduco suppono. Antea demo distinctio optio termes creo adnuo.\nClarus comparo thermae adversus sponte sufficio vae omnis. Ver cunae deripio nemo vitium thalassinus. Allatus conculco videlicet defetiscor cupiditas." - }, - #{ - id: "120", - authorId: "1", - postId: "11", - body: "Cilicium solio cognomen. Voco alii confero aegrus bardus denique vicissitudo compono fugit. Tum consectetur creta.\nAcerbitas demitto non acies. Aperte minus certe auctus velit. Adfectus subvenio quis certus sordeo.\nNeque succurro varius magnam quisquam acquiro calamitas. Curis arto tego tres. Adiuvo vomer asperiores confido caecus defero possimus cena cunabula." - }, - #{ - id: "121", - authorId: "1", - postId: "12", - body: "Fuga altus qui valens tabgo venia torrens doloribus. Benevolentia vacuus ocer quis cohors suus inventore vetus campana triumphus. Calco vero acer.\nConicio curvo somnus cras tenus magnam vilitas suadeo. Decipio benevolentia cribro atque sponte bis acer absens. Ab acerbitas aliqua.\nAptus stultus tracto assumenda triduana claudeo ocer sit. Vobis ara aut. Vereor non a crudelis soleo thalassinus careo iusto." - }, - #{ - id: "122", - authorId: "1", - postId: "12", - body: "Cogito deorsum ab caries degero thymbra. Trans atqui ancilla amplexus amicitia sordeo conturbo. Sollers eligendi paulatim.\nVirga arceo pauper inflammatio celer dicta uterque. Solus absens officia cotidie conduco accendo voveo natus terra comes. Ait cimentarius tertius spargo.\nDelibero degero sublime conspergo impedit cohaero amo sollicito. Nisi rem chirographum certus arcesso statim. Quos umbra confugo similique una tamisium alo cito voluptatum." - }, - #{ - id: "123", - authorId: "1", - postId: "12", - body: "Colligo eos spes universe aggero conicio aestus appono. Conspergo aegre approbo claudeo autus colo verumtamen calcar civitas. Id a video.\nTeres inflammatio adamo. Amplus aeger tabula charisma. Vomica certus cervus.\nCauda uredo spiculum ullus cur magnam facilis amet venustas. Incidunt solitudo atrocitas vinco sto una vindico vulgus. Aureus cunabula alias vigilo terra paulatim tabernus." - }, - #{ - id: "124", - authorId: "1", - postId: "12", - body: "Barba admoveo textilis itaque sui constans aurum occaecati cauda quod. Cado veritas crepusculum abstergo aestas. Copiose vigor calamitas voluptates tepesco advenio via arx.\nCumque cupiditas tolero adsidue audax demergo. Uter via delinquo solitudo ceno sed. Trans cometes cohors depono cibus acerbitas fugit cruciamentum stipes corrupti.\nDolorem sed claro degusto ago et stillicidium auctor. Curatio ventito ambulo. Adamo vita caute tamisium absum congregatio aptus bis canonicus surculus." - }, - #{ - id: "125", - authorId: "1", - postId: "12", - body: "Centum denuo amplus depraedor tantillus minus amissio. Vita dens labore alo culpa. Cervus alveus viridis velociter praesentium theologus tricesimus cinis.\nSuppellex vulnero valetudo sufficio utroque calculus quos adaugeo thymbra. Ulterius rerum taceo adhuc utique. Iste cohibeo benevolentia.\nQuas deprimo itaque averto. Adfero vestigium conqueror victus supplanto speciosus votum aveho usque. Minima officia amplexus vito viscus casus coniuratio quidem tantum infit." - }, - #{ - id: "126", - authorId: "1", - postId: "12", - body: "Tergum amplexus civitas. Voluptates video suppono. Venia suscipio ultra earum aegrus accommodo.\nInventore timidus repellendus. Adhaero usitas laudantium. Advenio pecus temperantia.\nCopia convoco triduana aspernatur vere officia stultus. Coadunatio veritas vinum curto voluptate sodalitas rerum. Tamen conforto nulla subseco barba infit." - }, - #{ - id: "127", - authorId: "1", - postId: "12", - body: "Tertius virga abundans solio contra argentum. Cimentarius amo territo sustineo cum perspiciatis quis compello. Uberrime celebrer theca decumbo.\nDemo solium abstergo curtus velit laudantium aspicio aequus vulnus. Alo aufero conservo ipsam audentia volo damnatio vix cras caelum. Texo audax comprehendo colligo itaque desparatus conor utrimque valetudo vulnus.\nTabella torrens antea cedo ademptio. Tibi vobis valeo. Sortitus culpa venustas." - }, - #{ - id: "128", - authorId: "1", - postId: "12", - body: "Vero voluptate corroboro verbum adeptio. Triduana clementia aliquam cibo paens. Ulciscor altus argentum minus brevis adinventitias subnecto creo calculus.\nAmplitudo allatus aperio officiis testimonium ducimus deficio derelinquo amissio peior. Abduco coerceo dolores amplitudo stella thermae comparo. Nostrum absens surgo acerbitas hic temperantia temporibus theatrum curriculum odio.\nCaecus depono inventore soleo adipisci tenax curiositas. Suggero doloremque cibus vos anser repellendus tabella amissio denuo. Quam carus amoveo stipes vulnero rem amissio creo." - }, - #{ - id: "129", - authorId: "1", - postId: "12", - body: "Culpo aetas aliquid. Acervus vilicus quae solium tenuis. Labore valens tempus tunc a tubineus.\nTotidem creptio basium debilito vestigium cupio ascisco. Amplus ducimus trucido vergo accedo statua derelinquo abutor. Desolo callide benigne.\nCurriculum benigne tui aliquid tibi usus amplexus. Nesciunt talis sol cometes chirographum ultio cursus. Ubi centum tres vomica." - }, - #{ - id: "130", - authorId: "1", - postId: "12", - body: "Arma tollo appositus capillus. Nam altus auditor spes cuppedia. Eveniet arbitro alioqui testimonium adeo socius.\nAestas tibi volo tunc vomer sonitus sustineo temeritas substantia. Defessus accusator adhaero conatus ocer uredo dolorum vinitor. Suffragium aedificium acsi certus suus adfectus cubo cinis caecus suffragium.\nAmiculum tamquam auctus caelum argentum acsi decipio sub cervus. Praesentium vespillo xiphias denuo bellicus abbas aedificium deprecator. Voro aurum virga cattus versus amplitudo." - }, - #{ - id: "131", - authorId: "1", - postId: "13", - body: "Vicinus curriculum asporto summopere sopor. Deludo delibero caute caelestis caterva ducimus caveo. Thesis teres voveo.\nAro adnuo ipsam appositus certus suspendo auditor aestivus. Id enim dolorem adimpleo amplus ambitus ut vitium acceptus tandem. Statua vigilo mollitia absque anser demitto quasi.\nSit officiis dolorum adicio theatrum blandior triumphus copiose. Arcus unde beatae censura quaerat defero stips terminatio turba corporis. Supellex aer patrocinor utor deprecator depopulo contego." - }, - #{ - id: "132", - authorId: "1", - postId: "13", - body: "Pariatur curiositas triduana supra. Vaco conicio defero coaegresco varietas comburo. Depraedor vulpes aestivus crustulum bellum.\nAurum tripudio amplitudo. Iure campana vigor. Consequatur amicitia voro terra varietas coniecto bibo decens aedificium coerceo.\nCerte aperiam basium stultus vigilo antiquus dignissimos bestia. Sufficio virga sunt compello coma textus facere spero conservo. Dolorem cupressus est condico adhaero temptatio civitas perferendis architecto." - }, - #{ - id: "133", - authorId: "1", - postId: "13", - body: "Abscido strues angulus. Defluo coerceo celer accendo averto. Cibus turba uter theca soluta eum.\nMinus tum demergo fugiat decet defero. Saepe degusto convoco ubi confido astrum conturbo verbera defessus valetudo. Vulticulus color vergo.\nExcepturi verbera viduo sollers theca coruscus facere illum tabella curto. Tergeo quas vulnus depereo tactus. Canonicus socius vigor." - }, - #{ - id: "134", - authorId: "1", - postId: "13", - body: "Cupiditas itaque turbo condico carus conor ago. Pax vapulus amplexus ventosus dolore asper capitulus dolores. Stella antea admoneo.\nDemum vulpes ultra. Aureus via vilis facilis tripudio alias deficio peior tripudio. Adfectus statua libero cibo comedo.\nAer voluptates defendo. Tametsi adicio nulla tam sophismata absorbeo concedo. Admitto pauper error cunae allatus summa." - }, - #{ - id: "135", - authorId: "1", - postId: "13", - body: "Quidem vis pax armarium cenaculum vorax degusto ceno defero. Celer derelinquo vesica. Vicinus similique sursum copia tumultus aliquam.\nTracto vulticulus ait adsidue ara. Patruus abutor odio suscipit benigne ullam animadverto subvenio. Adhaero civitas denuncio vis.\nTabella iure adsuesco adduco perferendis consectetur absens asporto benevolentia ipsa. Vehemens dolore cum tametsi exercitationem cervus abutor suscipit. Pel terga crastinus strenuus." - }, - #{ - id: "136", - authorId: "1", - postId: "13", - body: "Tabernus id artificiose vespillo verumtamen decet vivo demulceo. Avarus stultus cernuus comes triduana. Deorsum adsidue cicuta creta attollo.\nAudentia demergo pectus velut angulus volaticus degero veritatis amplexus defetiscor. Casso timidus cultellus carmen repellendus torqueo. Peior cubo suus paulatim cresco comes.\nAppello texo color stillicidium possimus audax beatae antepono. Vorax sequi debitis vulnero asporto. Teres verbera modi desino culpa cattus cubitum non anser vomito." - }, - #{ - id: "137", - authorId: "1", - postId: "13", - body: "Exercitationem autus animi subito bardus sumo demergo constans agnosco. Acies totidem velociter tego autem quaerat turbo ventito volutabrum. Verbera caritas ait umbra cui.\nFugiat comparo soluta basium saepe cibo sonitus despecto communis. Absque volva corona depopulo cubitum tempora catena. Inflammatio minus tamisium pecto ducimus utrimque tener ipsam totidem.\nBeatae vociferor illo audentia supra. Deduco beatus ullus usus conventus virtus concido anser tenus. Admiratio est aiunt qui cado apud vitae desolo." - }, - #{ - id: "138", - authorId: "1", - postId: "13", - body: "Derideo volutabrum cruentus carbo dolorem. Patria spes taedium angelus caries vester aliqua ager deripio. Universe vulnero viduo sodalitas crapula pecto tergiversatio celebrer acervus.\nSpeculum tollo vito voluptatibus defluo tergiversatio. Hic thesis summa expedita denuncio non. Quae amplexus thymbra thermae tenetur turbo conscendo sit voluntarius suffoco.\nCetera nobis universe. Placeat nulla derelinquo arcus venia pauper. Sodalitas tactus aliqua terga saepe cur aetas credo." - }, - #{ - id: "139", - authorId: "1", - postId: "13", - body: "Vir suspendo solium verecundia ulciscor brevis vos cotidie. Ullus delectus umerus aperte ullam ventito. Cur at abscido.\nImpedit audeo virgo thesaurus tabella textilis pauci veniam. Contabesco arx ver succedo volubilis cursim autem. Balbus viridis solitudo denego capio curriculum.\nArx degusto culpo. Inventore aegrotatio annus thymbra ait. Quia minus vesica bene commodo usque quam vulnero turpis." - }, - #{ - id: "140", - authorId: "1", - postId: "13", - body: "Tristis coerceo atavus conculco temporibus aveho conduco tyrannus aspernatur utpote. Antepono tyrannus abbas suasoria pel tenetur. Campana causa depereo pauper dens cogito adflicto vesco volva.\nVirtus ars balbus aestivus deludo blandior earum. Ratione enim animus advoco atque decumbo coadunatio bibo uxor creo. Coma addo tamdiu.\nAmor fuga aequitas abutor vitiosus curvo. Fugit supra alii denego animi ars cresco clarus commodi. Appono basium abduco demulceo inflammatio." - } -]; diff --git a/typespec/examples/courses.tsp b/typespec/examples/courses.tsp deleted file mode 100644 index 610d688..0000000 --- a/typespec/examples/courses.tsp +++ /dev/null @@ -1,45 +0,0 @@ -const totalCoursesExample = 5; - -const skipCoursesExample = 0; - -const limitCoursesExample = 30; - -const newCourseDtoExample = #{ - title: "New course", - description: "description" -}; - -const editCourseDtoExample = #{ - title: "Edited course", - description: "new description", -}; - -const courseExample = #{ - id: "cb9b5981-c34d-49a5-8a44-1b1b96788123", - title: "Курс PHP", - description: "Курс знакомит с основами языка программирования PHP" -}; - -const coursesExample = #[ - courseExample, - #{ - id: "13e3ecf2-c37e-461a-bdd4-bb069329c914", - title: "Курс Ruby", - description: "Курс знакомит с основами языка программирования Ruby" - }, - #{ - id: "a0d29a74-13c7-4ca9-b6ce-e2a59508ac82", - title: "Курс JavaScript", - description: "Курс знакомит с основами языка программирования JavaScript" - }, - #{ - id: "afaf1d20-701d-494a-9589-7d3bc780b300", - title: "Курс Python", - description: "Курс знакомит с основами языка программирования Python" - }, - #{ - id: "6e32e36d-40d1-4bc4-bdcb-966f01748b17", - title: "Курс Java", - description: "Курс знакомит с основами языка программирования Java" - } -]; diff --git a/typespec/examples/posts.tsp b/typespec/examples/posts.tsp deleted file mode 100644 index aae7963..0000000 --- a/typespec/examples/posts.tsp +++ /dev/null @@ -1,200 +0,0 @@ -const totalPostsExample = 40; - -const skipPostsExample = 0; - -const limitPostsExample = 40; - -const newPostDtoExample = #{ - title: "New post", - body: "New post body" -}; - -const editPostDtoExample = #{ - title: "Edited post", - body: "Edited post body" -}; - -const postExample = #{ - id: "11", - authorId: "1", - title: "comitatus considero termes", - body: "Cultura fuga adicio conforto. Dolorum curtus teneo sollicito. Vulpes truculenter capitulus.\nRepellat virtus reiciendis admiratio torqueo cubicularis tempore alii. Sustineo apud vorax amissio. Aestivus catena dolore quo antiquus tantillus vinculum talis desidero curia.\nIllum blanditiis concido tepidus talus laborum laudantium aequitas vilitas. Consuasor ago patria. Thermae crur amo." -}; - -const postsExample = #[ - postExample, - #{ - id: "12", - authorId: "1", - title: "territo utrimque ab", - body: "Spargo sponte tum rerum. Thymum comes concido taedium. Claustrum voluptas via armarium tremo decens nemo bellicus.\nChirographum auctor vehemens animi bardus acsi. Desino ullus aranea. Vestrum eos deleniti accendo capio aut sto xiphias.\nFacilis assumenda amplitudo deputo attero peccatus. Spes labore civis eligendi adduco cupiditas error. Vulariter considero repudiandae blanditiis tot unde." - }, - #{ - id: "13", - authorId: "1", - title: "canonicus subseco ea", - body: "Conventus optio tumultus aiunt. Cultura contabesco animi vitae vulticulus a. Quis avarus synagoga coniecto textor anser asper desipio.\nUlciscor deprimo autus auctor defessus sursum aro. Cursim carbo suffoco timor administratio atrocitas circumvenio. Vinculum crustulum debeo molestias demoror atqui denique fugiat repudiandae.\nAurum deinde quas officia. Virga allatus amicitia est claudeo credo. Triumphus capillus nam autus abscido." - }, - #{ - id: "14", - authorId: "1", - title: "vulgivagus defleo succurro", - body: "Perferendis coaegresco quia carcer conculco. Curvo casso balbus atrocitas adhaero urbs debeo stipes. Depono sopor cariosus derelinquo decipio repellat ullam cohaero.\nCompello antiquus careo uterque. Viduo laudantium appono subito attollo maxime cruciamentum abbas admoneo convoco. Angulus arcus cunae videlicet victoria.\nCorpus compono dolor sui ait soleo crinis. Ascit contego deserunt cohors vallum expedita civis ustilo versus. Brevis catena carus ipsam super." - }, - #{ - id: "15", - authorId: "1", - title: "advoco decipio varietas", - body: "Aufero cupiditate pariatur caecus tubineus pariatur vetus adsuesco appono viriliter. Paulatim dolores atqui dedecor velit tamquam strues virtus. Approbo constans video cui nemo mollitia dedico.\nFacere neque pectus delinquo correptius tabesco comis tres. Absorbeo laudantium placeat. Sophismata comptus carpo sumo vaco spero vespillo.\nAperio aranea aeternus defluo sursum delectatio. Conitor urbanus combibo dolore viduo cogo trepide tollo. Valde tres demo tum caecus taedium atrox audio adicio." - }, - #{ - id: "16", - authorId: "1", - title: "aufero dolorum deleniti", - body: "Asporto depromo vaco expedita bene aiunt pel commemoro. Attonbitus caries consequatur ustilo charisma textor cervus comptus. Sapiente sopor deinde coaegresco tumultus subseco aedificium.\nAstrum similique defero cicuta vox. Casso aeneus aranea asperiores arceo quos. Claudeo viridis suggero.\nOdit curis occaecati vae civitas vacuus pax cultura. Catena eius universe aspicio audentia curso. Tertius ver attero et corrigo bestia stips conculco." - }, - #{ - id: "17", - authorId: "1", - title: "antiquus aetas beneficium", - body: "Sodalitas vitiosus suasoria sursum amiculum paens. Ante ver aperte cunabula alioqui ago consectetur abundans. Adiuvo aiunt abeo cinis absens agnitio.\nPatior vilitas certus quod vitiosus virga carus. Curia credo casso sed adsuesco angustus tracto ante admitto. Harum argentum odit distinctio perferendis complectus contigo.\nNumquam apto accusamus. Summa valeo certe defleo spiculum vivo terror auctor cultellus aequitas. Amiculum non credo." - }, - #{ - id: "18", - authorId: "1", - title: "solium absens summisse", - body: "Demum spargo tactus ipsa deripio aer. Angelus curo comis absens. Fugiat clementia curto censura theologus delectatio.\nDefaeco territo considero id patior tego provident sursum curis trado. Autus vivo quisquam. Aequitas laudantium cavus sono defungo timidus apparatus aeternus.\nAsperiores solium atrocitas synagoga crur. Capto possimus adulescens a curis cupiditate stella id labore. Tamdiu absum angelus possimus derelinquo convoco maiores." - }, - #{ - id: "19", - authorId: "1", - title: "appono deprimo decor", - body: "Caste suppellex certus sequi maxime terror apparatus vado cras tabgo. Depopulo attero ago arguo curatio sumo deorsum odio. Tracto alii velit usus audax aurum suus comparo sono.\nTardus ventosus demens exercitationem. Causa statua tumultus. Suppellex debilito abscido perspiciatis accedo.\nAuditor sophismata demonstro iure vester denuo cohors. Depraedor conqueror audax alo vacuus. Vesper subito tracto aut cattus aranea." - }, - #{ - id: "20", - authorId: "1", - title: "volubilis aliquam coma", - body: "Corpus verbum argumentum caste. Perspiciatis solutio vis vulgivagus possimus vero modi ater templum voro. Claustrum molestiae toties neque turpis eveniet conatus.\nCena sint peior ea bibo. Approbo dolor demum. Collum illum admoveo trucido.\nArgentum alius molestias aperiam subito arma. Succurro stips vero cur earum cavus dedico. Ancilla corona aegrotatio absens." - }, - #{ - id: "21", - authorId: "2", - title: "demonstro calco demens", - body: "Enim brevis copiose accusamus depono. Tristis aduro adamo utrimque. Ubi compono quidem autem.\nCruciamentum venio caput sufficio decet sit aequus subvenio. Commodi templum explicabo verbum optio totus spiritus nostrum auctor decerno. Turba deleo adhaero sequi illo cumque arca corrupti.\nConfugo curo est universe vix usitas tepidus inventore. Quasi surculus caveo vester sordeo autem. Quos creta cupio." - }, - #{ - id: "22", - authorId: "2", - title: "absconditus quod coma", - body: "Repudiandae aperiam expedita infit. Arma amoveo cito ars sui cinis cetera suppono strues. Paens inflammatio barba constans vinum sumo thalassinus.\nCursim timidus claustrum calculus comedo comis accusantium vos voluptates absque. Ratione enim abscido patior aureus molestiae vigilo cohibeo impedit repudiandae. Altus adfectus optio depopulo vesco altus.\nAttollo contra canto reprehenderit trucido abundans bardus tactus urbs. Decumbo ubi voluptates sollicito super ipsa. Teneo tenus corroboro abstergo terminatio statim cresco cupio compello." - }, - #{ - id: "23", - authorId: "2", - title: "verto cervus texo", - body: "Totidem urbs deinde acidus maiores. Crudelis beatae aduro verus succedo. Aut agnosco doloremque pecus collum adulatio viscus praesentium.\nTemporibus video pax crepusculum conservo soluta corroboro coniuratio demoror vis. Cauda amaritudo casso arcus astrum at suadeo teres cultellus. Anser suspendo deserunt defungo.\nVestrum abscido eveniet. Clamo coruscus dignissimos trans vomito canonicus sto sonitus. Cruentus dolorem adfectus accedo abduco vapulus comedo." - }, - #{ - id: "24", - authorId: "2", - title: "valens pecus terra", - body: "Impedit deludo alter contabesco absque comprehendo eum curis. Auxilium correptius synagoga desidero cometes commodi alveus crustulum alii versus. Vicinus alveus curriculum tempora teneo asporto.\nAedificium thymbra supra utrimque atqui vulgaris. Demergo super asporto blandior. Currus voro vestigium testimonium ceno.\nTolero tondeo adiuvo constans ascit. Audacia custodia bellicus. Optio cibo modi defaeco alias accedo." - }, - #{ - id: "25", - authorId: "2", - title: "volubilis audax aufero", - body: "Conatus suus cimentarius placeat aedificium. Clementia ago umerus abduco. Aequitas cauda tutis decor cauda atque vel contabesco censura.\nAverto teres stipes. Adsidue consequatur sperno pax condico clamo tametsi minus ubi comis. Beatae claudeo usitas sufficio.\nAstrum saepe advoco creo sonitus ventus. Thymum defero temporibus canto adinventitias. Somnus defungo adversus cometes." - }, - #{ - id: "26", - authorId: "2", - title: "constans talio canonicus", - body: "Sed trado atrocitas. Absconditus bis apparatus facilis cavus suscipio amo depromo. Ambulo aegrus ea civis adicio in caelestis decor.\nVirga adversus dapifer. Curatio tam uxor argentum. Aegrus utrum succurro strenuus cetera tardus quas volaticus canonicus.\nMolestias truculenter undique. Varietas aptus apto conventus tubineus veritatis virga canis amplexus. Spoliatio explicabo totidem." - }, - #{ - id: "27", - authorId: "2", - title: "comitatus vergo crepusculum", - body: "Summa ante cras. Deduco usque vita valetudo ait thesaurus cubitum cena. Arma campana ara tabgo uterque agnitio iure.\nDenuo alter decens cotidie appono coerceo ascit. Ullus aureus cresco conventus corrupti tergiversatio. Voco velum cetera chirographum adhuc itaque villa demonstro hic.\nCattus bene demergo tredecim nostrum ante suffragium cribro temptatio. Atavus error terebro. Studio creta demens sum." - }, - #{ - id: "28", - authorId: "2", - title: "mollitia carpo vestigium", - body: "Tero celer tamdiu synagoga umbra delicate caritas cursim vae sordeo. Coniuratio tergum cito. Aestivus tot virgo crapula arceo aspicio colo vereor terra.\nAggero dicta repellendus conor decor. Patruus consuasor ventus. Talis ipsum anser correptius video cohibeo cuius thorax timidus expedita.\nAdmoveo similique thorax amplus dolorum. Temeritas accusator dolor volaticus ab arbustum defluo sordeo. Appello benevolentia consequatur approbo infit amaritudo." - }, - #{ - id: "29", - authorId: "2", - title: "uberrime trepide aranea", - body: "Verecundia tergiversatio antepono soluta aetas viscus paens carbo. Tubineus triduana carpo ex vinco corona brevis. Vesica bene vilitas tero thermae et voluptatem titulus.\nCrebro demonstro succurro. Decimus ait delibero super barba corona sol enim. Volo sequi tardus maxime adhuc administratio tenax temperantia calco facere.\nSufficio vetus tendo. Talio amicitia combibo compono carmen vix. Tabernus deserunt texo cunae eaque abundans." - }, - #{ - id: "30", - authorId: "2", - title: "cultellus urbs victus", - body: "Cum infit similique averto templum. Appello decumbo suffoco facilis aggredior unus careo aeger convoco volaticus. Demo torqueo vestrum infit tui teres vergo.\nTres angulus natus patior harum. Solum aeger verecundia benigne. Derelinquo utroque saepe voco decens.\nVivo comprehendo caelum alo sto aperte quos vestrum desparatus civitas. Ullam ago absens. Animadverto libero uberrime ducimus candidus spiculum cui temporibus damno talus." - }, - #{ - id: "31", - authorId: "3", - title: "labore auctor sumptus", - body: "Cohors curia campana congregatio. Constans timidus dolores auxilium vel apparatus summisse. Vapulus adhuc voro sophismata abundans temptatio dapifer decumbo.\nUsque quidem sollicito. Vestrum sol voro. Blanditiis uberrime sufficio titulus annus ater eum thesis animadverto quia.\nUstilo cotidie vulnus. Thesaurus desino ultra crastinus stipes sol torrens spectaculum. Ciminatio cursim aperio credo arma cohibeo." - }, - #{ - id: "32", - authorId: "3", - title: "doloremque maxime autus", - body: "Curiositas dolore casus cohors tui annus coerceo dolore delego. Demoror constans contabesco aedificium ceno. Quos thymbra censura deprimo desidero celo absque nulla.\nCohaero tristis hic absens provident commodi utilis bonus voro infit. Temeritas cerno communis succurro adinventitias surculus voluntarius vivo sulum. Trans ipsum abscido turbo deficio colo quisquam ascit uterque candidus.\nUstilo accommodo traho bene. Tabernus decet correptius succedo deprimo. Tamquam somniculosus circumvenio damnatio arceo degero assentator." - }, - #{ - id: "33", - authorId: "3", - title: "perferendis absque deludo", - body: "Facere vito vitae speciosus sublime ante. Amicitia aiunt xiphias aperte. Dedecor universe acsi cursus derideo decumbo quia consequatur comis.\nTendo denuncio vinitor acer vindico spectaculum velit apto. Numquam spoliatio avaritia aveho absque tenus. Eum vergo defendo coadunatio occaecati succurro solus vindico talus suppono.\nNatus caveo capto valetudo collum absens. Cernuus conservo claro conservo conforto quis conculco vitium volutabrum. Aqua veniam torrens adaugeo." - }, - #{ - id: "34", - authorId: "3", - title: "incidunt blandior amplus", - body: "Triduana defendo coaegresco dolorem suus repellat. Arca qui acsi denuo sui. Natus decumbo vacuus tabgo cilicium territo.\nStipes solus debilito ex auditor cunctatio laudantium vigor omnis. Vinum laudantium adeo vacuus. Vulgo timor vacuus sopor clamo qui accommodo.\nAtrocitas somniculosus tergum voro bardus aeger casus apto. Beatae uredo aggredior tamquam. Vergo thesaurus veritatis laboriosam calcar possimus aliquid." - }, - #{ - id: "35", - authorId: "3", - title: "clarus velut spero", - body: "Arx cena volutabrum adfectus uredo non defendo arcus. Caput desparatus attero sortitus acceptus provident traho nostrum curtus adsum. Textilis defaeco anser corona statim adsum tego corpus curriculum.\nUtilis delibero cubo. Torrens benigne culpo adduco dolor. Molestias defendo cohors amitto advoco perspiciatis advenio valde congregatio vaco.\nIllum appello fuga arx abstergo solitudo aggero. Aureus vesper sono attero. Labore video cervus eius vilicus sperno copia sopor creptio eos." - }, - #{ - id: "36", - authorId: "3", - title: "tandem rem occaecati", - body: "Vacuus absum sodalitas aliquid eligendi suggero. Antea vallum vigilo subvenio aperte accommodo. Abutor cornu charisma vos deleo tener appositus.\nEos creptio coruscus avaritia crur uredo demum sopor caput. Corona atrocitas aranea coepi. Aptus claudeo derideo torrens cupio aiunt suadeo.\nAgo tergo catena iure adduco excepturi. Amo conturbo aiunt tenetur delectatio contabesco vobis crur. Decretum depromo vox spectaculum vigilo ars annus aro cribro." - }, - #{ - id: "37", - authorId: "3", - title: "explicabo candidus cetera", - body: "Supellex absque tumultus amo compello tui cibus conor. Coruscus attonbitus tredecim crur cruentus adficio vulticulus teres. Optio beneficium vel aptus.\nAdstringo tertius audentia. Damnatio ambulo cunctatio verus supra defetiscor vitiosus socius conturbo. Succurro causa acidus suasoria civitas tam solutio crinis adopto.\nAdhaero tardus architecto sui venustas comparo votum. Caute venia voluptas vulariter somniculosus. Absum aequus tenus arcus caste." - }, - #{ - id: "38", - authorId: "3", - title: "unde creo sapiente", - body: "Stultus atrocitas conicio delinquo adicio tametsi socius canto decretum. Voluntarius aeger una quod. Absconditus decor cultellus caput annus talis occaecati tracto antea animi.\nAdulescens earum decet verbum usque defendo sint tempore. Coruscus peccatus aegre teres denuo natus denique. Turbo alius cumque unus subiungo voluptatibus defessus.\nAdmitto distinctio solio conitor adeo admoveo cupio consequuntur terreo. Perspiciatis valeo eligendi. Cras patior trado angustus." - }, - #{ - id: "39", - authorId: "3", - title: "paens dolores claustrum", - body: "Umerus antiquus torqueo ratione totus celo aliquam abbas strenuus. Ratione commemoro acsi iste statim. Canis caste talio.\nAmbitus accusantium bos aetas caute voco celo defleo cervus utpote. Tandem copiose vomica aestas possimus arbitro decimus patior adeo candidus. Confero decerno adulescens tot tricesimus conqueror demitto cupio uredo thermae.\nVerbera cubitum officiis tantum validus compello arbustum perferendis usitas. Patria currus venia desparatus cupio substantia absconditus adfectus. Cinis umerus sulum tametsi." - }, - #{ - id: "40", - authorId: "3", - title: "vere desolo admitto", - body: "Bestia catena tubineus velociter non. Debilito beatus neque condico vel magni. Commodi rem tibi vado.\nDeputo possimus utor ciminatio comprehendo cornu explicabo auxilium vita. Adversus vito ventus. Soleo audentia soluta clibanus advoco vere vestigium.\nDesipio ullam cunae brevis amita tergum ab cunae clibanus cariosus. Curia vix timidus ambulo claustrum titulus. Thema est commemoro desolo sed magni suspendo assumenda." - } -]; diff --git a/typespec/examples/tasks.tsp b/typespec/examples/tasks.tsp deleted file mode 100644 index 3ec828c..0000000 --- a/typespec/examples/tasks.tsp +++ /dev/null @@ -1,52 +0,0 @@ -const totalTasksExample = 5; - -const skipTasksExample = 0; - -const limitTasksExample = 30; - -const newTaskDtoExample = #{ - title: "New Task", - description: "description", - status: Status.Ready, -}; - -const editTaskDtoExample = #{ - title: "Edited Task", - description: "new description", - status: Status.Ready, -}; - -const taskExample = #{ - id: "1", - title: "Опубликовать курс по основам JavaScript", - description: "Автор подготовил курс по JavaScript. Нужно его опубликовать", - status: Status.Backlog, -}; - -const tasksExample = #[ - taskExample, - #{ - id: "2", - title: "Опубликовать курс по основам Ruby", - description: "Автор подготовил курс по Ruby. Нужно его опубликовать", - status: Status.Ready - }, - #{ - id: "3", - title: "Опубликовать курс по основам PHP", - description: "Автор подготовил курс по PHP. Нужно его опубликовать", - status: Status.InProgress - }, - #{ - id: "4", - title: "Опубликовать курс по основам Java", - description: "Автор подготовил курс по Java. Нужно его опубликовать", - status: Status.Done - }, - #{ - id: "5", - title: "Опубликовать курс по основам Python", - description: "Автор подготовил курс по Python. Нужно его опубликовать", - status: Status.Archived - } -]; diff --git a/typespec/examples/users.tsp b/typespec/examples/users.tsp deleted file mode 100644 index 89aee9e..0000000 --- a/typespec/examples/users.tsp +++ /dev/null @@ -1,83 +0,0 @@ -const totalUsersExample = 10; - -const skipUsersExample = 0; - -const limitUsersExample = 30; - -const newUserDtoExample = #{ - email: "max@yahoo.com", - firstName: "Max", - lastName: "Maxwell", - password: "password" -}; - -const editUserDtoExample = #{ - email: "maria@yahoo.com", - firstName: "Maria", - lastName: "Marvel" -}; - -const userExample = #{ - id: "1", - email: "max@hotmail.com", - firstName: "Allison", - lastName: "Bernier", -}; - -const usersExample = #[ - userExample, - #{ - id: "2", - email: "Colt97@yahoo.com", - firstName: "Hudson", - lastName: "Schowalter" - }, - #{ - id: "3", - email: "Landen50@gmail.com", - firstName: "Reinhold", - lastName: "Upton" - }, - #{ - id: "4", - email: "Americo_Jones@hotmail.com", - firstName: "Fabian", - lastName: "Larson-Cassin" - }, - #{ - id: "5", - email: "Glenna.Kshlerin81@yahoo.com", - firstName: "Verlie", - lastName: "Bauch" - }, - #{ - id: "6", - email: "Jamie.Volkman@gmail.com", - firstName: "Marcelle", - lastName: "Collier" - }, - #{ - id: "7", - email: "Meghan.Emmerich49@gmail.com", - firstName: "Easton", - lastName: "Halvorson" - }, - #{ - id: "8", - email: "Ophelia_Nikolaus73@gmail.com", - firstName: "Althea", - lastName: "Leannon" - }, - #{ - id: "9", - email: "Jovanny.Tromp3@gmail.com", - firstName: "Savion", - lastName: "King" - }, - #{ - id: "10", - email: "Aniyah_Macejkovic@gmail.com", - firstName: "Magali", - lastName: "Carroll" - } -]; diff --git a/typespec/http-api/models/auth.tsp b/typespec/http-api/models/auth.tsp index 6f22991..c1b89d0 100644 --- a/typespec/http-api/models/auth.tsp +++ b/typespec/http-api/models/auth.tsp @@ -1,13 +1,3 @@ -import "../../examples/auth.tsp"; - -@example( - authDataExample, - #{ - title: - "Authentication data", - description: "Login and password for authentication" - } -) model AuthData { @minLength(1) email: string; @@ -16,10 +6,6 @@ model AuthData { password: string; } -@example( - authTokenExample, - #{ title: "Authorisation data", description: "Token for authorisation" } -) model AuthToken { @minLength(1) token: string; diff --git a/typespec/http-api/models/comment.tsp b/typespec/http-api/models/comment.tsp index 3a1f344..a6086b4 100644 --- a/typespec/http-api/models/comment.tsp +++ b/typespec/http-api/models/comment.tsp @@ -1,54 +1,31 @@ -import "../../examples/comments.tsp"; - -@example( - newCommentDtoExample, - #{ title: "New comment" } -) model NewCommentDto { - postId: string; + postId: uint16; @minLength(1) body: string; } -@example( - editCommentDtoExample, - #{ title: "Edit comment" } -) model EditCommentDto { - postId?: string; + postId?: uint16; @minLength(1) body?: string; } -@example( - commentExample, - #{ title: "Comment" } -) model Comment { @key - id: string; + id: uint16; - authorId: string; - postId: string; + authorId: uint16; + postId: uint16; @minLength(1) body: string; } -@example( - #{ - comments: commentsExample, - total: totalCommentsExample, - skip: skipCommentsExample, - limit: limitCommentsExample, - }, - #{ title: "Comments" } -) model Comments { comments: Comment[]; - total: integer; - skip: integer; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/http-api/models/course.tsp b/typespec/http-api/models/course.tsp index 93866f8..1b576fb 100644 --- a/typespec/http-api/models/course.tsp +++ b/typespec/http-api/models/course.tsp @@ -1,9 +1,3 @@ -import "../../examples/courses.tsp"; - -@example( - newCourseDtoExample, - #{ title: "New Course" } -) model NewCourseDto { @minLength(1) title: string; @@ -13,10 +7,6 @@ model NewCourseDto { } -@example( - editCourseDtoExample, - #{ title: "Edit Course" } -) model EditCourseDto { @minLength(1) title?: string; @@ -25,13 +15,9 @@ model EditCourseDto { description?: string; } -@example( - courseExample, - #{ title: "Course" } -) model Course { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -41,18 +27,9 @@ model Course { } -@example( - #{ - courses: coursesExample, - total: totalCoursesExample, - skip: skipCoursesExample, - limit: limitCoursesExample, - }, - #{ title: "Courses" } -) model Courses { courses: Course[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/http-api/models/post.tsp b/typespec/http-api/models/post.tsp index b975794..aade19b 100644 --- a/typespec/http-api/models/post.tsp +++ b/typespec/http-api/models/post.tsp @@ -1,9 +1,3 @@ -import "../../examples/posts.tsp"; - -@example( - newPostDtoExample, - #{ title: "New Post" } -) model NewPostDto { @minLength(1) title: string; @@ -12,10 +6,6 @@ model NewPostDto { body: string; } -@example( - editPostDtoExample, - #{ title: "Edit Post" } -) model EditPostDto { @minLength(1) title?: string; @@ -24,15 +14,11 @@ model EditPostDto { body?: string; } -@example( - postExample, - #{ title: "Post" } -) model Post { @key - id: string; + id: uint16; - authorId: string; + authorId: uint16; @minLength(1) title: string; @@ -41,18 +27,9 @@ model Post { body: string; } -@example( - #{ - posts: postsExample, - total: totalPostsExample, - skip: skipPostsExample, - limit: limitPostsExample, - }, - #{ title: "posts" } -) model Posts { posts: Post[]; - total: integer; - skip: integer; - limit: integer = 30; + total: uint16; + skip: uint16; + limit: uint16 = 30; } diff --git a/typespec/http-api/models/task.tsp b/typespec/http-api/models/task.tsp index fa50a2e..16f7c9b 100644 --- a/typespec/http-api/models/task.tsp +++ b/typespec/http-api/models/task.tsp @@ -1,9 +1,3 @@ -import "../../examples/tasks.tsp"; - -@example( - newTaskDtoExample, - #{ title: "New Task" } -) model NewTaskDto { @minLength(1) title: string; @@ -14,10 +8,6 @@ model NewTaskDto { status?: Status = Status.Backlog; } -@example( - editTaskDtoExample, - #{ title: "Edit Task" } -) model EditTaskDto { @minLength(1) title?: string; @@ -28,13 +18,9 @@ model EditTaskDto { status?: Status; } -@example( - taskExample, - #{ title: "Task" } -) model Task { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -45,20 +31,11 @@ model Task { status: Status; } -@example( - #{ - tasks: tasksExample, - total: totalTasksExample, - skip: skipTasksExample, - limit: limitTasksExample, - }, - #{ title: "Tasks" } -) model Tasks { tasks: Task[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } enum Status { diff --git a/typespec/http-api/models/user.tsp b/typespec/http-api/models/user.tsp index 735b251..c391a4d 100644 --- a/typespec/http-api/models/user.tsp +++ b/typespec/http-api/models/user.tsp @@ -1,9 +1,3 @@ -import "../../examples/users.tsp"; - -@example( - newUserDtoExample, - #{ title: "New User" } -) model NewUserDto { @minLength(1) email: string; @@ -18,10 +12,6 @@ model NewUserDto { password: string; } -@example( - editUserDtoExample, - #{ title: "Edit User" } -) model EditUserDto { @minLength(1) email?: string; @@ -33,13 +23,9 @@ model EditUserDto { lastName?: string; } -@example( - userExample, - #{ title: "User" } -) model User { @key - id: string; + id: uint16; @minLength(1) email: string; @@ -51,18 +37,9 @@ model User { lastName: string; } -@example( - #{ - users: usersExample, - total: totalUsersExample, - skip: skipUsersExample, - limit: limitUsersExample, - }, - #{ title: "Users" } -) model Users { users: User[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/http-api/services/commentsService.tsp b/typespec/http-api/services/commentsService.tsp index 6fdbe7a..3801796 100644 --- a/typespec/http-api/services/commentsService.tsp +++ b/typespec/http-api/services/commentsService.tsp @@ -13,8 +13,8 @@ namespace AppService; interface CommentService { @get op list( - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; diff --git a/typespec/http-api/services/postsService.tsp b/typespec/http-api/services/postsService.tsp index 7d782be..823177e 100644 --- a/typespec/http-api/services/postsService.tsp +++ b/typespec/http-api/services/postsService.tsp @@ -13,8 +13,8 @@ namespace AppService; interface PostService { @get op list( - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Posts; @@ -48,8 +48,8 @@ interface PostService { @route("/{postId}/comments") op getComments( @path postId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; } diff --git a/typespec/http-api/services/usersService.tsp b/typespec/http-api/services/usersService.tsp index adf16f2..0a49e35 100644 --- a/typespec/http-api/services/usersService.tsp +++ b/typespec/http-api/services/usersService.tsp @@ -50,16 +50,16 @@ interface UserService { @route("/{authorId}/posts") op getPosts( @path authorId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Posts; @route("/{authorId}/comments") op getComments( @path authorId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; } diff --git a/typespec/http-protocol/models/auth.tsp b/typespec/http-protocol/models/auth.tsp index 6f22991..c1b89d0 100644 --- a/typespec/http-protocol/models/auth.tsp +++ b/typespec/http-protocol/models/auth.tsp @@ -1,13 +1,3 @@ -import "../../examples/auth.tsp"; - -@example( - authDataExample, - #{ - title: - "Authentication data", - description: "Login and password for authentication" - } -) model AuthData { @minLength(1) email: string; @@ -16,10 +6,6 @@ model AuthData { password: string; } -@example( - authTokenExample, - #{ title: "Authorisation data", description: "Token for authorisation" } -) model AuthToken { @minLength(1) token: string; diff --git a/typespec/http-protocol/models/comment.tsp b/typespec/http-protocol/models/comment.tsp index 3a1f344..d2a3ada 100644 --- a/typespec/http-protocol/models/comment.tsp +++ b/typespec/http-protocol/models/comment.tsp @@ -1,54 +1,31 @@ -import "../../examples/comments.tsp"; - -@example( - newCommentDtoExample, - #{ title: "New comment" } -) model NewCommentDto { - postId: string; + postId: uint16; @minLength(1) body: string; } -@example( - editCommentDtoExample, - #{ title: "Edit comment" } -) model EditCommentDto { - postId?: string; + postId?: uint16; @minLength(1) body?: string; } -@example( - commentExample, - #{ title: "Comment" } -) model Comment { @key - id: string; + id: uint16; - authorId: string; - postId: string; + authorId: uint16; + postId: uint16; @minLength(1) body: string; } -@example( - #{ - comments: commentsExample, - total: totalCommentsExample, - skip: skipCommentsExample, - limit: limitCommentsExample, - }, - #{ title: "Comments" } -) model Comments { comments: Comment[]; - total: integer; - skip: integer; - limit: integer = 30; + total: uint16; + skip: uint16; + limit: uint16 = 30; } diff --git a/typespec/http-protocol/models/course.tsp b/typespec/http-protocol/models/course.tsp index 93866f8..1b576fb 100644 --- a/typespec/http-protocol/models/course.tsp +++ b/typespec/http-protocol/models/course.tsp @@ -1,9 +1,3 @@ -import "../../examples/courses.tsp"; - -@example( - newCourseDtoExample, - #{ title: "New Course" } -) model NewCourseDto { @minLength(1) title: string; @@ -13,10 +7,6 @@ model NewCourseDto { } -@example( - editCourseDtoExample, - #{ title: "Edit Course" } -) model EditCourseDto { @minLength(1) title?: string; @@ -25,13 +15,9 @@ model EditCourseDto { description?: string; } -@example( - courseExample, - #{ title: "Course" } -) model Course { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -41,18 +27,9 @@ model Course { } -@example( - #{ - courses: coursesExample, - total: totalCoursesExample, - skip: skipCoursesExample, - limit: limitCoursesExample, - }, - #{ title: "Courses" } -) model Courses { courses: Course[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/http-protocol/models/post.tsp b/typespec/http-protocol/models/post.tsp index b975794..aade19b 100644 --- a/typespec/http-protocol/models/post.tsp +++ b/typespec/http-protocol/models/post.tsp @@ -1,9 +1,3 @@ -import "../../examples/posts.tsp"; - -@example( - newPostDtoExample, - #{ title: "New Post" } -) model NewPostDto { @minLength(1) title: string; @@ -12,10 +6,6 @@ model NewPostDto { body: string; } -@example( - editPostDtoExample, - #{ title: "Edit Post" } -) model EditPostDto { @minLength(1) title?: string; @@ -24,15 +14,11 @@ model EditPostDto { body?: string; } -@example( - postExample, - #{ title: "Post" } -) model Post { @key - id: string; + id: uint16; - authorId: string; + authorId: uint16; @minLength(1) title: string; @@ -41,18 +27,9 @@ model Post { body: string; } -@example( - #{ - posts: postsExample, - total: totalPostsExample, - skip: skipPostsExample, - limit: limitPostsExample, - }, - #{ title: "posts" } -) model Posts { posts: Post[]; - total: integer; - skip: integer; - limit: integer = 30; + total: uint16; + skip: uint16; + limit: uint16 = 30; } diff --git a/typespec/http-protocol/models/task.tsp b/typespec/http-protocol/models/task.tsp index fa50a2e..1f5acd9 100644 --- a/typespec/http-protocol/models/task.tsp +++ b/typespec/http-protocol/models/task.tsp @@ -1,9 +1,3 @@ -import "../../examples/tasks.tsp"; - -@example( - newTaskDtoExample, - #{ title: "New Task" } -) model NewTaskDto { @minLength(1) title: string; @@ -14,10 +8,6 @@ model NewTaskDto { status?: Status = Status.Backlog; } -@example( - editTaskDtoExample, - #{ title: "Edit Task" } -) model EditTaskDto { @minLength(1) title?: string; @@ -28,13 +18,9 @@ model EditTaskDto { status?: Status; } -@example( - taskExample, - #{ title: "Task" } -) model Task { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -45,20 +31,11 @@ model Task { status: Status; } -@example( - #{ - tasks: tasksExample, - total: totalTasksExample, - skip: skipTasksExample, - limit: limitTasksExample, - }, - #{ title: "Tasks" } -) model Tasks { tasks: Task[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16; + limit: uint16 = 30; } enum Status { diff --git a/typespec/http-protocol/models/user.tsp b/typespec/http-protocol/models/user.tsp index 735b251..c391a4d 100644 --- a/typespec/http-protocol/models/user.tsp +++ b/typespec/http-protocol/models/user.tsp @@ -1,9 +1,3 @@ -import "../../examples/users.tsp"; - -@example( - newUserDtoExample, - #{ title: "New User" } -) model NewUserDto { @minLength(1) email: string; @@ -18,10 +12,6 @@ model NewUserDto { password: string; } -@example( - editUserDtoExample, - #{ title: "Edit User" } -) model EditUserDto { @minLength(1) email?: string; @@ -33,13 +23,9 @@ model EditUserDto { lastName?: string; } -@example( - userExample, - #{ title: "User" } -) model User { @key - id: string; + id: uint16; @minLength(1) email: string; @@ -51,18 +37,9 @@ model User { lastName: string; } -@example( - #{ - users: usersExample, - total: totalUsersExample, - skip: skipUsersExample, - limit: limitUsersExample, - }, - #{ title: "Users" } -) model Users { users: User[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/http-protocol/services/commentsService.tsp b/typespec/http-protocol/services/commentsService.tsp index 6fdbe7a..3801796 100644 --- a/typespec/http-protocol/services/commentsService.tsp +++ b/typespec/http-protocol/services/commentsService.tsp @@ -13,8 +13,8 @@ namespace AppService; interface CommentService { @get op list( - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; diff --git a/typespec/http-protocol/services/postsService.tsp b/typespec/http-protocol/services/postsService.tsp index 7d782be..823177e 100644 --- a/typespec/http-protocol/services/postsService.tsp +++ b/typespec/http-protocol/services/postsService.tsp @@ -13,8 +13,8 @@ namespace AppService; interface PostService { @get op list( - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Posts; @@ -48,8 +48,8 @@ interface PostService { @route("/{postId}/comments") op getComments( @path postId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; } diff --git a/typespec/http-protocol/services/usersService.tsp b/typespec/http-protocol/services/usersService.tsp index adf16f2..0a49e35 100644 --- a/typespec/http-protocol/services/usersService.tsp +++ b/typespec/http-protocol/services/usersService.tsp @@ -50,16 +50,16 @@ interface UserService { @route("/{authorId}/posts") op getPosts( @path authorId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Posts; @route("/{authorId}/comments") op getComments( @path authorId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; } diff --git a/typespec/js-playwright/models/auth.tsp b/typespec/js-playwright/models/auth.tsp index 6f22991..c1b89d0 100644 --- a/typespec/js-playwright/models/auth.tsp +++ b/typespec/js-playwright/models/auth.tsp @@ -1,13 +1,3 @@ -import "../../examples/auth.tsp"; - -@example( - authDataExample, - #{ - title: - "Authentication data", - description: "Login and password for authentication" - } -) model AuthData { @minLength(1) email: string; @@ -16,10 +6,6 @@ model AuthData { password: string; } -@example( - authTokenExample, - #{ title: "Authorisation data", description: "Token for authorisation" } -) model AuthToken { @minLength(1) token: string; diff --git a/typespec/js-playwright/models/course.tsp b/typespec/js-playwright/models/course.tsp index 93866f8..1b576fb 100644 --- a/typespec/js-playwright/models/course.tsp +++ b/typespec/js-playwright/models/course.tsp @@ -1,9 +1,3 @@ -import "../../examples/courses.tsp"; - -@example( - newCourseDtoExample, - #{ title: "New Course" } -) model NewCourseDto { @minLength(1) title: string; @@ -13,10 +7,6 @@ model NewCourseDto { } -@example( - editCourseDtoExample, - #{ title: "Edit Course" } -) model EditCourseDto { @minLength(1) title?: string; @@ -25,13 +15,9 @@ model EditCourseDto { description?: string; } -@example( - courseExample, - #{ title: "Course" } -) model Course { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -41,18 +27,9 @@ model Course { } -@example( - #{ - courses: coursesExample, - total: totalCoursesExample, - skip: skipCoursesExample, - limit: limitCoursesExample, - }, - #{ title: "Courses" } -) model Courses { courses: Course[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/js-playwright/models/task.tsp b/typespec/js-playwright/models/task.tsp index fa50a2e..16f7c9b 100644 --- a/typespec/js-playwright/models/task.tsp +++ b/typespec/js-playwright/models/task.tsp @@ -1,9 +1,3 @@ -import "../../examples/tasks.tsp"; - -@example( - newTaskDtoExample, - #{ title: "New Task" } -) model NewTaskDto { @minLength(1) title: string; @@ -14,10 +8,6 @@ model NewTaskDto { status?: Status = Status.Backlog; } -@example( - editTaskDtoExample, - #{ title: "Edit Task" } -) model EditTaskDto { @minLength(1) title?: string; @@ -28,13 +18,9 @@ model EditTaskDto { status?: Status; } -@example( - taskExample, - #{ title: "Task" } -) model Task { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -45,20 +31,11 @@ model Task { status: Status; } -@example( - #{ - tasks: tasksExample, - total: totalTasksExample, - skip: skipTasksExample, - limit: limitTasksExample, - }, - #{ title: "Tasks" } -) model Tasks { tasks: Task[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } enum Status { diff --git a/typespec/js-playwright/models/user.tsp b/typespec/js-playwright/models/user.tsp index 735b251..c391a4d 100644 --- a/typespec/js-playwright/models/user.tsp +++ b/typespec/js-playwright/models/user.tsp @@ -1,9 +1,3 @@ -import "../../examples/users.tsp"; - -@example( - newUserDtoExample, - #{ title: "New User" } -) model NewUserDto { @minLength(1) email: string; @@ -18,10 +12,6 @@ model NewUserDto { password: string; } -@example( - editUserDtoExample, - #{ title: "Edit User" } -) model EditUserDto { @minLength(1) email?: string; @@ -33,13 +23,9 @@ model EditUserDto { lastName?: string; } -@example( - userExample, - #{ title: "User" } -) model User { @key - id: string; + id: uint16; @minLength(1) email: string; @@ -51,18 +37,9 @@ model User { lastName: string; } -@example( - #{ - users: usersExample, - total: totalUsersExample, - skip: skipUsersExample, - limit: limitUsersExample, - }, - #{ title: "Users" } -) model Users { users: User[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/postman/models/auth.tsp b/typespec/postman/models/auth.tsp index 6f22991..c1b89d0 100644 --- a/typespec/postman/models/auth.tsp +++ b/typespec/postman/models/auth.tsp @@ -1,13 +1,3 @@ -import "../../examples/auth.tsp"; - -@example( - authDataExample, - #{ - title: - "Authentication data", - description: "Login and password for authentication" - } -) model AuthData { @minLength(1) email: string; @@ -16,10 +6,6 @@ model AuthData { password: string; } -@example( - authTokenExample, - #{ title: "Authorisation data", description: "Token for authorisation" } -) model AuthToken { @minLength(1) token: string; diff --git a/typespec/postman/models/comment.tsp b/typespec/postman/models/comment.tsp index 3a1f344..d2a3ada 100644 --- a/typespec/postman/models/comment.tsp +++ b/typespec/postman/models/comment.tsp @@ -1,54 +1,31 @@ -import "../../examples/comments.tsp"; - -@example( - newCommentDtoExample, - #{ title: "New comment" } -) model NewCommentDto { - postId: string; + postId: uint16; @minLength(1) body: string; } -@example( - editCommentDtoExample, - #{ title: "Edit comment" } -) model EditCommentDto { - postId?: string; + postId?: uint16; @minLength(1) body?: string; } -@example( - commentExample, - #{ title: "Comment" } -) model Comment { @key - id: string; + id: uint16; - authorId: string; - postId: string; + authorId: uint16; + postId: uint16; @minLength(1) body: string; } -@example( - #{ - comments: commentsExample, - total: totalCommentsExample, - skip: skipCommentsExample, - limit: limitCommentsExample, - }, - #{ title: "Comments" } -) model Comments { comments: Comment[]; - total: integer; - skip: integer; - limit: integer = 30; + total: uint16; + skip: uint16; + limit: uint16 = 30; } diff --git a/typespec/postman/models/course.tsp b/typespec/postman/models/course.tsp index 93866f8..1b576fb 100644 --- a/typespec/postman/models/course.tsp +++ b/typespec/postman/models/course.tsp @@ -1,9 +1,3 @@ -import "../../examples/courses.tsp"; - -@example( - newCourseDtoExample, - #{ title: "New Course" } -) model NewCourseDto { @minLength(1) title: string; @@ -13,10 +7,6 @@ model NewCourseDto { } -@example( - editCourseDtoExample, - #{ title: "Edit Course" } -) model EditCourseDto { @minLength(1) title?: string; @@ -25,13 +15,9 @@ model EditCourseDto { description?: string; } -@example( - courseExample, - #{ title: "Course" } -) model Course { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -41,18 +27,9 @@ model Course { } -@example( - #{ - courses: coursesExample, - total: totalCoursesExample, - skip: skipCoursesExample, - limit: limitCoursesExample, - }, - #{ title: "Courses" } -) model Courses { courses: Course[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/postman/models/post.tsp b/typespec/postman/models/post.tsp index b975794..aade19b 100644 --- a/typespec/postman/models/post.tsp +++ b/typespec/postman/models/post.tsp @@ -1,9 +1,3 @@ -import "../../examples/posts.tsp"; - -@example( - newPostDtoExample, - #{ title: "New Post" } -) model NewPostDto { @minLength(1) title: string; @@ -12,10 +6,6 @@ model NewPostDto { body: string; } -@example( - editPostDtoExample, - #{ title: "Edit Post" } -) model EditPostDto { @minLength(1) title?: string; @@ -24,15 +14,11 @@ model EditPostDto { body?: string; } -@example( - postExample, - #{ title: "Post" } -) model Post { @key - id: string; + id: uint16; - authorId: string; + authorId: uint16; @minLength(1) title: string; @@ -41,18 +27,9 @@ model Post { body: string; } -@example( - #{ - posts: postsExample, - total: totalPostsExample, - skip: skipPostsExample, - limit: limitPostsExample, - }, - #{ title: "posts" } -) model Posts { posts: Post[]; - total: integer; - skip: integer; - limit: integer = 30; + total: uint16; + skip: uint16; + limit: uint16 = 30; } diff --git a/typespec/postman/models/task.tsp b/typespec/postman/models/task.tsp index fa50a2e..16f7c9b 100644 --- a/typespec/postman/models/task.tsp +++ b/typespec/postman/models/task.tsp @@ -1,9 +1,3 @@ -import "../../examples/tasks.tsp"; - -@example( - newTaskDtoExample, - #{ title: "New Task" } -) model NewTaskDto { @minLength(1) title: string; @@ -14,10 +8,6 @@ model NewTaskDto { status?: Status = Status.Backlog; } -@example( - editTaskDtoExample, - #{ title: "Edit Task" } -) model EditTaskDto { @minLength(1) title?: string; @@ -28,13 +18,9 @@ model EditTaskDto { status?: Status; } -@example( - taskExample, - #{ title: "Task" } -) model Task { @key - id: string; + id: uint16; @minLength(1) title: string; @@ -45,20 +31,11 @@ model Task { status: Status; } -@example( - #{ - tasks: tasksExample, - total: totalTasksExample, - skip: skipTasksExample, - limit: limitTasksExample, - }, - #{ title: "Tasks" } -) model Tasks { tasks: Task[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } enum Status { diff --git a/typespec/postman/models/user.tsp b/typespec/postman/models/user.tsp index 735b251..c391a4d 100644 --- a/typespec/postman/models/user.tsp +++ b/typespec/postman/models/user.tsp @@ -1,9 +1,3 @@ -import "../../examples/users.tsp"; - -@example( - newUserDtoExample, - #{ title: "New User" } -) model NewUserDto { @minLength(1) email: string; @@ -18,10 +12,6 @@ model NewUserDto { password: string; } -@example( - editUserDtoExample, - #{ title: "Edit User" } -) model EditUserDto { @minLength(1) email?: string; @@ -33,13 +23,9 @@ model EditUserDto { lastName?: string; } -@example( - userExample, - #{ title: "User" } -) model User { @key - id: string; + id: uint16; @minLength(1) email: string; @@ -51,18 +37,9 @@ model User { lastName: string; } -@example( - #{ - users: usersExample, - total: totalUsersExample, - skip: skipUsersExample, - limit: limitUsersExample, - }, - #{ title: "Users" } -) model Users { users: User[]; - total: integer; - skip: integer = 0; - limit: integer = 30; + total: uint16; + skip: uint16 = 0; + limit: uint16 = 30; } diff --git a/typespec/postman/services/commentsService.tsp b/typespec/postman/services/commentsService.tsp index 6fdbe7a..3801796 100644 --- a/typespec/postman/services/commentsService.tsp +++ b/typespec/postman/services/commentsService.tsp @@ -13,8 +13,8 @@ namespace AppService; interface CommentService { @get op list( - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; diff --git a/typespec/postman/services/postsService.tsp b/typespec/postman/services/postsService.tsp index 7d782be..823177e 100644 --- a/typespec/postman/services/postsService.tsp +++ b/typespec/postman/services/postsService.tsp @@ -13,8 +13,8 @@ namespace AppService; interface PostService { @get op list( - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Posts; @@ -48,8 +48,8 @@ interface PostService { @route("/{postId}/comments") op getComments( @path postId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; } diff --git a/typespec/postman/services/usersService.tsp b/typespec/postman/services/usersService.tsp index adf16f2..0a49e35 100644 --- a/typespec/postman/services/usersService.tsp +++ b/typespec/postman/services/usersService.tsp @@ -50,16 +50,16 @@ interface UserService { @route("/{authorId}/posts") op getPosts( @path authorId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Posts; @route("/{authorId}/comments") op getComments( @path authorId: string, - @query skip?: integer = 0, - @query limit?: integer = 30, + @query skip?: uint16 = 0, + @query limit?: uint16 = 30, @query select?: string ): Comments; }