From 541d70222a60ed4fd7f5949ec7a155d0b1b6797a Mon Sep 17 00:00:00 2001 From: Danielus99 <102818915+Danielus99@users.noreply.github.com> Date: Tue, 4 Apr 2023 14:14:56 +0200 Subject: [PATCH 1/2] Api-Docs --- .../api-docs/.openapi-generator-ignore | 23 + .../api-docs/.openapi-generator/FILES | 2 + .../api-docs/.openapi-generator/VERSION | 1 + .../api-docs.yaml-default.sha256 | 1 + .../asociationPlatform/api-docs/api-docs.html | 15883 ++++++++++++++++ .../asociationPlatform/api-docs/api-docs.yaml | 1021 + .../backend/asociationPlatform/pom.xml | 33 +- 7 files changed, 16963 insertions(+), 1 deletion(-) create mode 100644 AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator-ignore create mode 100644 AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/FILES create mode 100644 AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/VERSION create mode 100644 AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/api-docs.yaml-default.sha256 create mode 100644 AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.html create mode 100644 AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.yaml diff --git a/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator-ignore b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# 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 OpenAPI Generator 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/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/FILES b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/FILES new file mode 100644 index 0000000..af3fdae --- /dev/null +++ b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/FILES @@ -0,0 +1,2 @@ +.openapi-generator-ignore +index.html diff --git a/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/VERSION b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/VERSION new file mode 100644 index 0000000..e230c83 --- /dev/null +++ b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/VERSION @@ -0,0 +1 @@ +5.3.0 \ No newline at end of file diff --git a/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/api-docs.yaml-default.sha256 b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/api-docs.yaml-default.sha256 new file mode 100644 index 0000000..1d28955 --- /dev/null +++ b/AplicacionWEB/backend/asociationPlatform/api-docs/.openapi-generator/api-docs.yaml-default.sha256 @@ -0,0 +1 @@ +77551d8840d0fa508f86b80db59dddb45be2b1efaf36e2e42e26a5060bdb6a24 \ No newline at end of file diff --git a/AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.html b/AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.html new file mode 100644 index 0000000..ef33275 --- /dev/null +++ b/AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.html @@ -0,0 +1,15883 @@ + + + + + OpenAPI definition + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+

OpenAPI definition

+
+
+
+ +
+
+

AssoRestController

+
+
+
+

create

+

Create personal Association

+
+
+
+

+

+

+
+
/api/aso/miAsociacion
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/api/aso/miAsociacion" \
+ -d '{
+  "owner" : {
+    "validated" : true,
+    "favoritos" : [ null, null ],
+    "id" : 1,
+    "checkToken" : "checkToken",
+    "email" : "email",
+    "getencodedPassword" : "getencodedPassword",
+    "rol" : "rol",
+    "username" : "username"
+  },
+  "campus" : "campus",
+  "name" : "name",
+  "description" : "description",
+  "id" : 6,
+  "ownerId" : 5,
+  "faculty" : "faculty"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.AssoRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Asociation asociation = ; // Asociation | 
+
+        try {
+            AsociationDTO result = apiInstance.create(asociation);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#create");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.AssoRestControllerApi;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Asociation asociation = ; // Asociation | 
+
+        try {
+            AsociationDTO result = apiInstance.create(asociation);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#create");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+AssoRestControllerApi *apiInstance = [[AssoRestControllerApi alloc] init];
+Asociation *asociation = ; // 
+
+// Create personal Association
+[apiInstance createWith:asociation
+              completionHandler: ^(AsociationDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.AssoRestControllerApi()
+var asociation = ; // {Asociation} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.create(asociation, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class createExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new AssoRestControllerApi();
+            var asociation = new Asociation(); // Asociation | 
+
+            try {
+                // Create personal Association
+                AsociationDTO result = apiInstance.create(asociation);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling AssoRestControllerApi.create: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\AssoRestControllerApi();
+$asociation = ; // Asociation | 
+
+try {
+    $result = $api_instance->create($asociation);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling AssoRestControllerApi->create: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::AssoRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::AssoRestControllerApi->new();
+my $asociation = WWW::OPenAPIClient::Object::Asociation->new(); # Asociation | 
+
+eval {
+    my $result = $api_instance->create(asociation => $asociation);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling AssoRestControllerApi->create: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.AssoRestControllerApi()
+asociation =  # Asociation | 
+
+try:
+    # Create personal Association
+    api_response = api_instance.create(asociation)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling AssoRestControllerApi->create: %s\n" % e)
+
+ +
+
extern crate AssoRestControllerApi;
+
+pub fn main() {
+    let asociation = ; // Asociation
+
+    let mut context = AssoRestControllerApi::Context::default();
+    let result = client.create(asociation, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
asociation * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

deleteAsso

+

Delete Association

+
+
+
+

+

+

+
+
/api/aso/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/aso/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.AssoRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            AsociationDTO result = apiInstance.deleteAsso(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#deleteAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.AssoRestControllerApi;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            AsociationDTO result = apiInstance.deleteAsso(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#deleteAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+AssoRestControllerApi *apiInstance = [[AssoRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Delete Association
+[apiInstance deleteAssoWith:id
+              completionHandler: ^(AsociationDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.AssoRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.deleteAsso(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class deleteAssoExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new AssoRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Delete Association
+                AsociationDTO result = apiInstance.deleteAsso(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling AssoRestControllerApi.deleteAsso: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\AssoRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->deleteAsso($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling AssoRestControllerApi->deleteAsso: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::AssoRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::AssoRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->deleteAsso(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling AssoRestControllerApi->deleteAsso: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.AssoRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Delete Association
+    api_response = api_instance.delete_asso(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling AssoRestControllerApi->deleteAsso: %s\n" % e)
+
+ +
+
extern crate AssoRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = AssoRestControllerApi::Context::default();
+    let result = client.deleteAsso(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

editAsso

+

Edit association

+
+
+
+

+

+

+
+
/api/aso/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/api/aso/{id}" \
+ -d '{
+  "owner" : {
+    "validated" : true,
+    "favoritos" : [ null, null ],
+    "id" : 1,
+    "checkToken" : "checkToken",
+    "email" : "email",
+    "getencodedPassword" : "getencodedPassword",
+    "rol" : "rol",
+    "username" : "username"
+  },
+  "campus" : "campus",
+  "name" : "name",
+  "description" : "description",
+  "id" : 6,
+  "ownerId" : 5,
+  "faculty" : "faculty"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.AssoRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Long id = 789; // Long | 
+        Asociation asociation = ; // Asociation | 
+
+        try {
+            AsociationDTO result = apiInstance.editAsso(id, asociation);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#editAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.AssoRestControllerApi;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Long id = 789; // Long | 
+        Asociation asociation = ; // Asociation | 
+
+        try {
+            AsociationDTO result = apiInstance.editAsso(id, asociation);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#editAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+AssoRestControllerApi *apiInstance = [[AssoRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+Asociation *asociation = ; // 
+
+// Edit association
+[apiInstance editAssoWith:id
+    asociation:asociation
+              completionHandler: ^(AsociationDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.AssoRestControllerApi()
+var id = 789; // {Long} 
+var asociation = ; // {Asociation} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.editAsso(id, asociation, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class editAssoExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new AssoRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+            var asociation = new Asociation(); // Asociation | 
+
+            try {
+                // Edit association
+                AsociationDTO result = apiInstance.editAsso(id, asociation);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling AssoRestControllerApi.editAsso: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\AssoRestControllerApi();
+$id = 789; // Long | 
+$asociation = ; // Asociation | 
+
+try {
+    $result = $api_instance->editAsso($id, $asociation);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling AssoRestControllerApi->editAsso: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::AssoRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::AssoRestControllerApi->new();
+my $id = 789; # Long | 
+my $asociation = WWW::OPenAPIClient::Object::Asociation->new(); # Asociation | 
+
+eval {
+    my $result = $api_instance->editAsso(id => $id, asociation => $asociation);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling AssoRestControllerApi->editAsso: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.AssoRestControllerApi()
+id = 789 # Long |  (default to null)
+asociation =  # Asociation | 
+
+try:
+    # Edit association
+    api_response = api_instance.edit_asso(id, asociation)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling AssoRestControllerApi->editAsso: %s\n" % e)
+
+ +
+
extern crate AssoRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+    let asociation = ; // Asociation
+
+    let mut context = AssoRestControllerApi::Context::default();
+    let result = client.editAsso(id, asociation, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
asociation * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

editMyAsso

+

Edit personal association

+
+
+
+

+

+

+
+
/api/aso/miAsociacion
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/api/aso/miAsociacion" \
+ -d '{
+  "owner" : {
+    "validated" : true,
+    "favoritos" : [ null, null ],
+    "id" : 1,
+    "checkToken" : "checkToken",
+    "email" : "email",
+    "getencodedPassword" : "getencodedPassword",
+    "rol" : "rol",
+    "username" : "username"
+  },
+  "campus" : "campus",
+  "name" : "name",
+  "description" : "description",
+  "id" : 6,
+  "ownerId" : 5,
+  "faculty" : "faculty"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.AssoRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Asociation asociation = ; // Asociation | 
+
+        try {
+            AsociationDTO result = apiInstance.editMyAsso(asociation);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#editMyAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.AssoRestControllerApi;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Asociation asociation = ; // Asociation | 
+
+        try {
+            AsociationDTO result = apiInstance.editMyAsso(asociation);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#editMyAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+AssoRestControllerApi *apiInstance = [[AssoRestControllerApi alloc] init];
+Asociation *asociation = ; // 
+
+// Edit personal association
+[apiInstance editMyAssoWith:asociation
+              completionHandler: ^(AsociationDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.AssoRestControllerApi()
+var asociation = ; // {Asociation} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.editMyAsso(asociation, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class editMyAssoExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new AssoRestControllerApi();
+            var asociation = new Asociation(); // Asociation | 
+
+            try {
+                // Edit personal association
+                AsociationDTO result = apiInstance.editMyAsso(asociation);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling AssoRestControllerApi.editMyAsso: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\AssoRestControllerApi();
+$asociation = ; // Asociation | 
+
+try {
+    $result = $api_instance->editMyAsso($asociation);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling AssoRestControllerApi->editMyAsso: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::AssoRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::AssoRestControllerApi->new();
+my $asociation = WWW::OPenAPIClient::Object::Asociation->new(); # Asociation | 
+
+eval {
+    my $result = $api_instance->editMyAsso(asociation => $asociation);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling AssoRestControllerApi->editMyAsso: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.AssoRestControllerApi()
+asociation =  # Asociation | 
+
+try:
+    # Edit personal association
+    api_response = api_instance.edit_my_asso(asociation)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling AssoRestControllerApi->editMyAsso: %s\n" % e)
+
+ +
+
extern crate AssoRestControllerApi;
+
+pub fn main() {
+    let asociation = ; // Asociation
+
+    let mut context = AssoRestControllerApi::Context::default();
+    let result = client.editMyAsso(asociation, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
asociation * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

getById

+

Get Association by id

+
+
+
+

+

+

+
+
/api/aso/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/aso/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.AssoRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            AsociationDTO result = apiInstance.getById(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#getById");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.AssoRestControllerApi;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            AsociationDTO result = apiInstance.getById(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#getById");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+AssoRestControllerApi *apiInstance = [[AssoRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Get Association by id
+[apiInstance getByIdWith:id
+              completionHandler: ^(AsociationDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.AssoRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getById(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getByIdExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new AssoRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Get Association by id
+                AsociationDTO result = apiInstance.getById(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling AssoRestControllerApi.getById: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\AssoRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->getById($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling AssoRestControllerApi->getById: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::AssoRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::AssoRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->getById(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling AssoRestControllerApi->getById: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.AssoRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Get Association by id
+    api_response = api_instance.get_by_id(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling AssoRestControllerApi->getById: %s\n" % e)
+
+ +
+
extern crate AssoRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = AssoRestControllerApi::Context::default();
+    let result = client.getById(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

getMyAsso

+

Get personal Association

+
+
+
+

+

+

+
+
/api/aso/miAsociacion
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/aso/miAsociacion"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.AssoRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+
+        try {
+            AsociationDTO result = apiInstance.getMyAsso();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#getMyAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.AssoRestControllerApi;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+
+        try {
+            AsociationDTO result = apiInstance.getMyAsso();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#getMyAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+AssoRestControllerApi *apiInstance = [[AssoRestControllerApi alloc] init];
+
+// Get personal Association
+[apiInstance getMyAssoWithCompletionHandler: 
+              ^(AsociationDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.AssoRestControllerApi()
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getMyAsso(callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getMyAssoExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new AssoRestControllerApi();
+
+            try {
+                // Get personal Association
+                AsociationDTO result = apiInstance.getMyAsso();
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling AssoRestControllerApi.getMyAsso: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\AssoRestControllerApi();
+
+try {
+    $result = $api_instance->getMyAsso();
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling AssoRestControllerApi->getMyAsso: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::AssoRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::AssoRestControllerApi->new();
+
+eval {
+    my $result = $api_instance->getMyAsso();
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling AssoRestControllerApi->getMyAsso: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.AssoRestControllerApi()
+
+try:
+    # Get personal Association
+    api_response = api_instance.get_my_asso()
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling AssoRestControllerApi->getMyAsso: %s\n" % e)
+
+ +
+
extern crate AssoRestControllerApi;
+
+pub fn main() {
+
+    let mut context = AssoRestControllerApi::Context::default();
+    let result = client.getMyAsso(&context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

listAsso

+

Get Association list

+
+
+
+

+

+

+
+
/api/aso/asociationsList
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/aso/asociationsList"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.AssoRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+
+        try {
+            AsociationDTO result = apiInstance.listAsso();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#listAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.AssoRestControllerApi;
+
+public class AssoRestControllerApiExample {
+    public static void main(String[] args) {
+        AssoRestControllerApi apiInstance = new AssoRestControllerApi();
+
+        try {
+            AsociationDTO result = apiInstance.listAsso();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling AssoRestControllerApi#listAsso");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+AssoRestControllerApi *apiInstance = [[AssoRestControllerApi alloc] init];
+
+// Get Association list
+[apiInstance listAssoWithCompletionHandler: 
+              ^(AsociationDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.AssoRestControllerApi()
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.listAsso(callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class listAssoExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new AssoRestControllerApi();
+
+            try {
+                // Get Association list
+                AsociationDTO result = apiInstance.listAsso();
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling AssoRestControllerApi.listAsso: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\AssoRestControllerApi();
+
+try {
+    $result = $api_instance->listAsso();
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling AssoRestControllerApi->listAsso: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::AssoRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::AssoRestControllerApi->new();
+
+eval {
+    my $result = $api_instance->listAsso();
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling AssoRestControllerApi->listAsso: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.AssoRestControllerApi()
+
+try:
+    # Get Association list
+    api_response = api_instance.list_asso()
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling AssoRestControllerApi->listAsso: %s\n" % e)
+
+ +
+
extern crate AssoRestControllerApi;
+
+pub fn main() {
+
+    let mut context = AssoRestControllerApi::Context::default();
+    let result = client.listAsso(&context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+

CommentRestController

+
+
+
+

deleteComment

+

Get list of comments of event

+
+
+
+

+

+

+
+
/api/comments/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/comments/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.CommentRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            array[CommentDTO] result = apiInstance.deleteComment(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#deleteComment");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.CommentRestControllerApi;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            array[CommentDTO] result = apiInstance.deleteComment(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#deleteComment");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+CommentRestControllerApi *apiInstance = [[CommentRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Get list of comments of event
+[apiInstance deleteCommentWith:id
+              completionHandler: ^(array[CommentDTO] output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.CommentRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.deleteComment(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class deleteCommentExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new CommentRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Get list of comments of event
+                array[CommentDTO] result = apiInstance.deleteComment(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling CommentRestControllerApi.deleteComment: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\CommentRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->deleteComment($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling CommentRestControllerApi->deleteComment: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::CommentRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::CommentRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->deleteComment(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling CommentRestControllerApi->deleteComment: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.CommentRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Get list of comments of event
+    api_response = api_instance.delete_comment(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling CommentRestControllerApi->deleteComment: %s\n" % e)
+
+ +
+
extern crate CommentRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = CommentRestControllerApi::Context::default();
+    let result = client.deleteComment(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

deleteComment1

+

Remove Comment

+
+
+
+

+

+

+
+
/api/comment/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/comment/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.CommentRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            CommentDTO result = apiInstance.deleteComment1(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#deleteComment1");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.CommentRestControllerApi;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            CommentDTO result = apiInstance.deleteComment1(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#deleteComment1");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+CommentRestControllerApi *apiInstance = [[CommentRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Remove Comment
+[apiInstance deleteComment1With:id
+              completionHandler: ^(CommentDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.CommentRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.deleteComment1(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class deleteComment1Example
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new CommentRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Remove Comment
+                CommentDTO result = apiInstance.deleteComment1(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling CommentRestControllerApi.deleteComment1: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\CommentRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->deleteComment1($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling CommentRestControllerApi->deleteComment1: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::CommentRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::CommentRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->deleteComment1(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling CommentRestControllerApi->deleteComment1: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.CommentRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Remove Comment
+    api_response = api_instance.delete_comment1(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling CommentRestControllerApi->deleteComment1: %s\n" % e)
+
+ +
+
extern crate CommentRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = CommentRestControllerApi::Context::default();
+    let result = client.deleteComment1(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

getComment

+

Get Comment

+
+
+
+

+

+

+
+
/api/comment/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/comment/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.CommentRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            CommentDTO result = apiInstance.getComment(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#getComment");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.CommentRestControllerApi;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            CommentDTO result = apiInstance.getComment(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#getComment");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+CommentRestControllerApi *apiInstance = [[CommentRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Get Comment
+[apiInstance getCommentWith:id
+              completionHandler: ^(CommentDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.CommentRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getComment(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getCommentExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new CommentRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Get Comment
+                CommentDTO result = apiInstance.getComment(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling CommentRestControllerApi.getComment: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\CommentRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->getComment($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling CommentRestControllerApi->getComment: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::CommentRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::CommentRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->getComment(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling CommentRestControllerApi->getComment: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.CommentRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Get Comment
+    api_response = api_instance.get_comment(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling CommentRestControllerApi->getComment: %s\n" % e)
+
+ +
+
extern crate CommentRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = CommentRestControllerApi::Context::default();
+    let result = client.getComment(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

postComment

+

Post Comment

+
+
+
+

+

+

+
+
/api/comment/new/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/api/comment/new/{id}" \
+ -d '{
+  "commentUser" : "commentUser",
+  "totalFavorites" : 2,
+  "description" : "description",
+  "id" : 5,
+  "time" : "time"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.CommentRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+        Comment comment = ; // Comment | 
+
+        try {
+            Comment result = apiInstance.postComment(id, comment);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#postComment");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.CommentRestControllerApi;
+
+public class CommentRestControllerApiExample {
+    public static void main(String[] args) {
+        CommentRestControllerApi apiInstance = new CommentRestControllerApi();
+        Long id = 789; // Long | 
+        Comment comment = ; // Comment | 
+
+        try {
+            Comment result = apiInstance.postComment(id, comment);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling CommentRestControllerApi#postComment");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+CommentRestControllerApi *apiInstance = [[CommentRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+Comment *comment = ; // 
+
+// Post Comment
+[apiInstance postCommentWith:id
+    comment:comment
+              completionHandler: ^(Comment output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.CommentRestControllerApi()
+var id = 789; // {Long} 
+var comment = ; // {Comment} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.postComment(id, comment, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class postCommentExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new CommentRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+            var comment = new Comment(); // Comment | 
+
+            try {
+                // Post Comment
+                Comment result = apiInstance.postComment(id, comment);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling CommentRestControllerApi.postComment: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\CommentRestControllerApi();
+$id = 789; // Long | 
+$comment = ; // Comment | 
+
+try {
+    $result = $api_instance->postComment($id, $comment);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling CommentRestControllerApi->postComment: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::CommentRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::CommentRestControllerApi->new();
+my $id = 789; # Long | 
+my $comment = WWW::OPenAPIClient::Object::Comment->new(); # Comment | 
+
+eval {
+    my $result = $api_instance->postComment(id => $id, comment => $comment);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling CommentRestControllerApi->postComment: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.CommentRestControllerApi()
+id = 789 # Long |  (default to null)
+comment =  # Comment | 
+
+try:
+    # Post Comment
+    api_response = api_instance.post_comment(id, comment)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling CommentRestControllerApi->postComment: %s\n" % e)
+
+ +
+
extern crate CommentRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+    let comment = ; // Comment
+
+    let mut context = CommentRestControllerApi::Context::default();
+    let result = client.postComment(id, comment, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
comment * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+

EmailController

+
+
+
+

sendMail

+

+
+
+
+

+

+

+
+
/sendMail
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ -H "Accept: */*" \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/sendMail" \
+ -d '{
+  "subject" : "subject",
+  "recipient" : "recipient",
+  "msgBody" : "msgBody"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EmailControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EmailControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EmailControllerApi apiInstance = new EmailControllerApi();
+        EmailDetails emailDetails = ; // EmailDetails | 
+
+        try {
+            'String' result = apiInstance.sendMail(emailDetails);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EmailControllerApi#sendMail");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EmailControllerApi;
+
+public class EmailControllerApiExample {
+    public static void main(String[] args) {
+        EmailControllerApi apiInstance = new EmailControllerApi();
+        EmailDetails emailDetails = ; // EmailDetails | 
+
+        try {
+            'String' result = apiInstance.sendMail(emailDetails);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EmailControllerApi#sendMail");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EmailControllerApi *apiInstance = [[EmailControllerApi alloc] init];
+EmailDetails *emailDetails = ; // 
+
+[apiInstance sendMailWith:emailDetails
+              completionHandler: ^('String' output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EmailControllerApi()
+var emailDetails = ; // {EmailDetails} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.sendMail(emailDetails, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class sendMailExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EmailControllerApi();
+            var emailDetails = new EmailDetails(); // EmailDetails | 
+
+            try {
+                'String' result = apiInstance.sendMail(emailDetails);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EmailControllerApi.sendMail: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EmailControllerApi();
+$emailDetails = ; // EmailDetails | 
+
+try {
+    $result = $api_instance->sendMail($emailDetails);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EmailControllerApi->sendMail: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EmailControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EmailControllerApi->new();
+my $emailDetails = WWW::OPenAPIClient::Object::EmailDetails->new(); # EmailDetails | 
+
+eval {
+    my $result = $api_instance->sendMail(emailDetails => $emailDetails);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EmailControllerApi->sendMail: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EmailControllerApi()
+emailDetails =  # EmailDetails | 
+
+try:
+    api_response = api_instance.send_mail(emailDetails)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EmailControllerApi->sendMail: %s\n" % e)
+
+ +
+
extern crate EmailControllerApi;
+
+pub fn main() {
+    let emailDetails = ; // EmailDetails
+
+    let mut context = EmailControllerApi::Context::default();
+    let result = client.sendMail(emailDetails, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
emailDetails * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+

EventRestController

+
+
+
+

createEvent

+

Create Event

+
+
+
+

+

+

+
+
/api/events/new
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/events/new?newImage=BINARY_DATA_HERE&event="
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EventRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        File newImage = BINARY_DATA_HERE; // File | 
+        Event event = ; // Event | 
+
+        try {
+            EventDTO result = apiInstance.createEvent(newImage, event);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#createEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EventRestControllerApi;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        File newImage = BINARY_DATA_HERE; // File | 
+        Event event = ; // Event | 
+
+        try {
+            EventDTO result = apiInstance.createEvent(newImage, event);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#createEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];
+File *newImage = BINARY_DATA_HERE; //  (default to null)
+Event *event = ; //  (default to null)
+
+// Create Event
+[apiInstance createEventWith:newImage
+    event:event
+              completionHandler: ^(EventDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EventRestControllerApi()
+var newImage = BINARY_DATA_HERE; // {File} 
+var event = ; // {Event} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.createEvent(newImage, event, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class createEventExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EventRestControllerApi();
+            var newImage = BINARY_DATA_HERE;  // File |  (default to null)
+            var event = new Event(); // Event |  (default to null)
+
+            try {
+                // Create Event
+                EventDTO result = apiInstance.createEvent(newImage, event);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EventRestControllerApi.createEvent: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();
+$newImage = BINARY_DATA_HERE; // File | 
+$event = ; // Event | 
+
+try {
+    $result = $api_instance->createEvent($newImage, $event);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EventRestControllerApi->createEvent: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EventRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();
+my $newImage = BINARY_DATA_HERE; # File | 
+my $event = ; # Event | 
+
+eval {
+    my $result = $api_instance->createEvent(newImage => $newImage, event => $event);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EventRestControllerApi->createEvent: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EventRestControllerApi()
+newImage = BINARY_DATA_HERE # File |  (default to null)
+event =  # Event |  (default to null)
+
+try:
+    # Create Event
+    api_response = api_instance.create_event(newImage, event)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EventRestControllerApi->createEvent: %s\n" % e)
+
+ +
+
extern crate EventRestControllerApi;
+
+pub fn main() {
+    let newImage = BINARY_DATA_HERE; // File
+    let event = ; // Event
+
+    let mut context = EventRestControllerApi::Context::default();
+    let result = client.createEvent(newImage, event, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + +
Query parameters
+ + + + + + + + + + + + + +
NameDescription
newImage* + + +
+
+
+ + File + + + (binary) + + +
+
+ Required +
+
+
+
event* + + +
+
+
+ + Event + + +
+
+ Required +
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

deleteEvent

+

Delete event

+
+
+
+

+

+

+
+
/api/events/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/events/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EventRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.deleteEvent(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#deleteEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EventRestControllerApi;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.deleteEvent(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#deleteEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Delete event
+[apiInstance deleteEventWith:id
+              completionHandler: ^(EventDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EventRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.deleteEvent(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class deleteEventExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EventRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Delete event
+                EventDTO result = apiInstance.deleteEvent(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EventRestControllerApi.deleteEvent: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->deleteEvent($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EventRestControllerApi->deleteEvent: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EventRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->deleteEvent(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EventRestControllerApi->deleteEvent: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EventRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Delete event
+    api_response = api_instance.delete_event(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EventRestControllerApi->deleteEvent: %s\n" % e)
+
+ +
+
extern crate EventRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = EventRestControllerApi::Context::default();
+    let result = client.deleteEvent(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

editEvent

+

Edit event

+
+
+
+

+

+

+
+
/api/events/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/events/{id}?event="
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EventRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+        Event event = ; // Event | 
+
+        try {
+            EventDTO result = apiInstance.editEvent(id, event);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#editEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EventRestControllerApi;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+        Event event = ; // Event | 
+
+        try {
+            EventDTO result = apiInstance.editEvent(id, event);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#editEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+Event *event = ; //  (default to null)
+
+// Edit event
+[apiInstance editEventWith:id
+    event:event
+              completionHandler: ^(EventDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EventRestControllerApi()
+var id = 789; // {Long} 
+var event = ; // {Event} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.editEvent(id, event, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class editEventExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EventRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+            var event = new Event(); // Event |  (default to null)
+
+            try {
+                // Edit event
+                EventDTO result = apiInstance.editEvent(id, event);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EventRestControllerApi.editEvent: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();
+$id = 789; // Long | 
+$event = ; // Event | 
+
+try {
+    $result = $api_instance->editEvent($id, $event);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EventRestControllerApi->editEvent: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EventRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();
+my $id = 789; # Long | 
+my $event = ; # Event | 
+
+eval {
+    my $result = $api_instance->editEvent(id => $id, event => $event);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EventRestControllerApi->editEvent: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EventRestControllerApi()
+id = 789 # Long |  (default to null)
+event =  # Event |  (default to null)
+
+try:
+    # Edit event
+    api_response = api_instance.edit_event(id, event)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EventRestControllerApi->editEvent: %s\n" % e)
+
+ +
+
extern crate EventRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+    let event = ; // Event
+
+    let mut context = EventRestControllerApi::Context::default();
+    let result = client.editEvent(id, event, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
event* + + +
+
+
+ + Event + + +
+
+ Required +
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

getEvent

+

Get Event by id

+
+
+
+

+

+

+
+
/api/events/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/events/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EventRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.getEvent(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#getEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EventRestControllerApi;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.getEvent(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#getEvent");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Get Event by id
+[apiInstance getEventWith:id
+              completionHandler: ^(EventDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EventRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getEvent(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getEventExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EventRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Get Event by id
+                EventDTO result = apiInstance.getEvent(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EventRestControllerApi.getEvent: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->getEvent($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EventRestControllerApi->getEvent: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EventRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->getEvent(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EventRestControllerApi->getEvent: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EventRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Get Event by id
+    api_response = api_instance.get_event(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EventRestControllerApi->getEvent: %s\n" % e)
+
+ +
+
extern crate EventRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = EventRestControllerApi::Context::default();
+    let result = client.getEvent(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

getImage

+

Get event image

+
+
+
+

+

+

+
+
/api/events/image/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/events/image/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EventRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            Event result = apiInstance.getImage(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#getImage");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EventRestControllerApi;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            Event result = apiInstance.getImage(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#getImage");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Get event image
+[apiInstance getImageWith:id
+              completionHandler: ^(Event output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EventRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getImage(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getImageExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EventRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Get event image
+                Event result = apiInstance.getImage(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EventRestControllerApi.getImage: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->getImage($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EventRestControllerApi->getImage: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EventRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->getImage(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EventRestControllerApi->getImage: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EventRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Get event image
+    api_response = api_instance.get_image(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EventRestControllerApi->getImage: %s\n" % e)
+
+ +
+
extern crate EventRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = EventRestControllerApi::Context::default();
+    let result = client.getImage(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

searchFilters

+

Get events using filters

+
+
+
+

+

+

+
+
/api/events/filters
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/events/filters?name=name_example&month=month_example&campus=campus_example&asociation=asociation_example&page=56"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EventRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        String name = name_example; // String | 
+        String month = month_example; // String | 
+        String campus = campus_example; // String | 
+        String asociation = asociation_example; // String | 
+        Integer page = 56; // Integer | 
+
+        try {
+            array[EventDTO] result = apiInstance.searchFilters(name, month, campus, asociation, page);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#searchFilters");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EventRestControllerApi;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        String name = name_example; // String | 
+        String month = month_example; // String | 
+        String campus = campus_example; // String | 
+        String asociation = asociation_example; // String | 
+        Integer page = 56; // Integer | 
+
+        try {
+            array[EventDTO] result = apiInstance.searchFilters(name, month, campus, asociation, page);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#searchFilters");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];
+String *name = name_example; //  (default to null)
+String *month = month_example; //  (default to null)
+String *campus = campus_example; //  (default to null)
+String *asociation = asociation_example; //  (default to null)
+Integer *page = 56; //  (default to null)
+
+// Get events using filters
+[apiInstance searchFiltersWith:name
+    month:month
+    campus:campus
+    asociation:asociation
+    page:page
+              completionHandler: ^(array[EventDTO] output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EventRestControllerApi()
+var name = name_example; // {String} 
+var month = month_example; // {String} 
+var campus = campus_example; // {String} 
+var asociation = asociation_example; // {String} 
+var page = 56; // {Integer} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.searchFilters(name, month, campus, asociation, page, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class searchFiltersExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EventRestControllerApi();
+            var name = name_example;  // String |  (default to null)
+            var month = month_example;  // String |  (default to null)
+            var campus = campus_example;  // String |  (default to null)
+            var asociation = asociation_example;  // String |  (default to null)
+            var page = 56;  // Integer |  (default to null)
+
+            try {
+                // Get events using filters
+                array[EventDTO] result = apiInstance.searchFilters(name, month, campus, asociation, page);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EventRestControllerApi.searchFilters: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();
+$name = name_example; // String | 
+$month = month_example; // String | 
+$campus = campus_example; // String | 
+$asociation = asociation_example; // String | 
+$page = 56; // Integer | 
+
+try {
+    $result = $api_instance->searchFilters($name, $month, $campus, $asociation, $page);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EventRestControllerApi->searchFilters: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EventRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();
+my $name = name_example; # String | 
+my $month = month_example; # String | 
+my $campus = campus_example; # String | 
+my $asociation = asociation_example; # String | 
+my $page = 56; # Integer | 
+
+eval {
+    my $result = $api_instance->searchFilters(name => $name, month => $month, campus => $campus, asociation => $asociation, page => $page);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EventRestControllerApi->searchFilters: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EventRestControllerApi()
+name = name_example # String |  (default to null)
+month = month_example # String |  (default to null)
+campus = campus_example # String |  (default to null)
+asociation = asociation_example # String |  (default to null)
+page = 56 # Integer |  (default to null)
+
+try:
+    # Get events using filters
+    api_response = api_instance.search_filters(name, month, campus, asociation, page)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EventRestControllerApi->searchFilters: %s\n" % e)
+
+ +
+
extern crate EventRestControllerApi;
+
+pub fn main() {
+    let name = name_example; // String
+    let month = month_example; // String
+    let campus = campus_example; // String
+    let asociation = asociation_example; // String
+    let page = 56; // Integer
+
+    let mut context = EventRestControllerApi::Context::default();
+    let result = client.searchFilters(name, month, campus, asociation, page, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + +
Query parameters
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
name* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
month* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
campus* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
asociation* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
page* + + +
+
+
+ + Integer + + + (int32) + + +
+
+ Required +
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

setImage

+

Change event image

+
+
+
+

+

+

+
+
/api/events/image/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/events/image/{id}?newImage=BINARY_DATA_HERE"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.EventRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+        File newImage = BINARY_DATA_HERE; // File | 
+
+        try {
+            EventDTO result = apiInstance.setImage(id, newImage);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#setImage");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.EventRestControllerApi;
+
+public class EventRestControllerApiExample {
+    public static void main(String[] args) {
+        EventRestControllerApi apiInstance = new EventRestControllerApi();
+        Long id = 789; // Long | 
+        File newImage = BINARY_DATA_HERE; // File | 
+
+        try {
+            EventDTO result = apiInstance.setImage(id, newImage);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling EventRestControllerApi#setImage");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+EventRestControllerApi *apiInstance = [[EventRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+File *newImage = BINARY_DATA_HERE; //  (default to null)
+
+// Change event image
+[apiInstance setImageWith:id
+    newImage:newImage
+              completionHandler: ^(EventDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.EventRestControllerApi()
+var id = 789; // {Long} 
+var newImage = BINARY_DATA_HERE; // {File} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.setImage(id, newImage, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class setImageExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new EventRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+            var newImage = BINARY_DATA_HERE;  // File |  (default to null)
+
+            try {
+                // Change event image
+                EventDTO result = apiInstance.setImage(id, newImage);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling EventRestControllerApi.setImage: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\EventRestControllerApi();
+$id = 789; // Long | 
+$newImage = BINARY_DATA_HERE; // File | 
+
+try {
+    $result = $api_instance->setImage($id, $newImage);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling EventRestControllerApi->setImage: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::EventRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::EventRestControllerApi->new();
+my $id = 789; # Long | 
+my $newImage = BINARY_DATA_HERE; # File | 
+
+eval {
+    my $result = $api_instance->setImage(id => $id, newImage => $newImage);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling EventRestControllerApi->setImage: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.EventRestControllerApi()
+id = 789 # Long |  (default to null)
+newImage = BINARY_DATA_HERE # File |  (default to null)
+
+try:
+    # Change event image
+    api_response = api_instance.set_image(id, newImage)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling EventRestControllerApi->setImage: %s\n" % e)
+
+ +
+
extern crate EventRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+    let newImage = BINARY_DATA_HERE; // File
+
+    let mut context = EventRestControllerApi::Context::default();
+    let result = client.setImage(id, newImage, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
newImage* + + +
+
+
+ + File + + + (binary) + + +
+
+ Required +
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+

LoginRestController

+
+
+
+

logOut

+

Logout as user

+
+
+
+

+

+

+
+
/api/auth/logout
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ "http://localhost:8443/api/auth/logout"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.LoginRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class LoginRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
+
+        try {
+            apiInstance.logOut();
+        } catch (ApiException e) {
+            System.err.println("Exception when calling LoginRestControllerApi#logOut");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.LoginRestControllerApi;
+
+public class LoginRestControllerApiExample {
+    public static void main(String[] args) {
+        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
+
+        try {
+            apiInstance.logOut();
+        } catch (ApiException e) {
+            System.err.println("Exception when calling LoginRestControllerApi#logOut");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+LoginRestControllerApi *apiInstance = [[LoginRestControllerApi alloc] init];
+
+// Logout as user
+[apiInstance logOutWithCompletionHandler: 
+              ^(NSError* error) {
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.LoginRestControllerApi()
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.logOut(callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class logOutExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new LoginRestControllerApi();
+
+            try {
+                // Logout as user
+                apiInstance.logOut();
+            } catch (Exception e) {
+                Debug.Print("Exception when calling LoginRestControllerApi.logOut: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\LoginRestControllerApi();
+
+try {
+    $api_instance->logOut();
+} catch (Exception $e) {
+    echo 'Exception when calling LoginRestControllerApi->logOut: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::LoginRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::LoginRestControllerApi->new();
+
+eval {
+    $api_instance->logOut();
+};
+if ($@) {
+    warn "Exception when calling LoginRestControllerApi->logOut: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.LoginRestControllerApi()
+
+try:
+    # Logout as user
+    api_instance.log_out()
+except ApiException as e:
+    print("Exception when calling LoginRestControllerApi->logOut: %s\n" % e)
+
+ +
+
extern crate LoginRestControllerApi;
+
+pub fn main() {
+
+    let mut context = LoginRestControllerApi::Context::default();
+    let result = client.logOut(&context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

login

+

Login as user

+
+
+
+

+

+

+
+
/api/auth/login
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/api/auth/login" \
+ -d '{
+  "password" : "password",
+  "username" : "username"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.LoginRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class LoginRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
+        LoginRequest loginRequest = ; // LoginRequest | 
+        String accessToken = accessToken_example; // String | 
+        String refreshToken = refreshToken_example; // String | 
+
+        try {
+            apiInstance.login(loginRequest, accessToken, refreshToken);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling LoginRestControllerApi#login");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.LoginRestControllerApi;
+
+public class LoginRestControllerApiExample {
+    public static void main(String[] args) {
+        LoginRestControllerApi apiInstance = new LoginRestControllerApi();
+        LoginRequest loginRequest = ; // LoginRequest | 
+        String accessToken = accessToken_example; // String | 
+        String refreshToken = refreshToken_example; // String | 
+
+        try {
+            apiInstance.login(loginRequest, accessToken, refreshToken);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling LoginRestControllerApi#login");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+LoginRestControllerApi *apiInstance = [[LoginRestControllerApi alloc] init];
+LoginRequest *loginRequest = ; // 
+String *accessToken = accessToken_example; //  (optional) (default to null)
+String *refreshToken = refreshToken_example; //  (optional) (default to null)
+
+// Login as user
+[apiInstance loginWith:loginRequest
+    accessToken:accessToken
+    refreshToken:refreshToken
+              completionHandler: ^(NSError* error) {
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.LoginRestControllerApi()
+var loginRequest = ; // {LoginRequest} 
+var opts = {
+  'accessToken': accessToken_example, // {String} 
+  'refreshToken': refreshToken_example // {String} 
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.login(loginRequest, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class loginExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new LoginRestControllerApi();
+            var loginRequest = new LoginRequest(); // LoginRequest | 
+            var accessToken = accessToken_example;  // String |  (optional)  (default to null)
+            var refreshToken = refreshToken_example;  // String |  (optional)  (default to null)
+
+            try {
+                // Login as user
+                apiInstance.login(loginRequest, accessToken, refreshToken);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling LoginRestControllerApi.login: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\LoginRestControllerApi();
+$loginRequest = ; // LoginRequest | 
+$accessToken = accessToken_example; // String | 
+$refreshToken = refreshToken_example; // String | 
+
+try {
+    $api_instance->login($loginRequest, $accessToken, $refreshToken);
+} catch (Exception $e) {
+    echo 'Exception when calling LoginRestControllerApi->login: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::LoginRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::LoginRestControllerApi->new();
+my $loginRequest = WWW::OPenAPIClient::Object::LoginRequest->new(); # LoginRequest | 
+my $accessToken = accessToken_example; # String | 
+my $refreshToken = refreshToken_example; # String | 
+
+eval {
+    $api_instance->login(loginRequest => $loginRequest, accessToken => $accessToken, refreshToken => $refreshToken);
+};
+if ($@) {
+    warn "Exception when calling LoginRestControllerApi->login: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.LoginRestControllerApi()
+loginRequest =  # LoginRequest | 
+accessToken = accessToken_example # String |  (optional) (default to null)
+refreshToken = refreshToken_example # String |  (optional) (default to null)
+
+try:
+    # Login as user
+    api_instance.login(loginRequest, accessToken=accessToken, refreshToken=refreshToken)
+except ApiException as e:
+    print("Exception when calling LoginRestControllerApi->login: %s\n" % e)
+
+ +
+
extern crate LoginRestControllerApi;
+
+pub fn main() {
+    let loginRequest = ; // LoginRequest
+    let accessToken = accessToken_example; // String
+    let refreshToken = refreshToken_example; // String
+
+    let mut context = LoginRestControllerApi::Context::default();
+    let result = client.login(loginRequest, accessToken, refreshToken, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
loginRequest * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+

UserRestController

+
+
+
+

addFavorites

+

Add event to current user's favorites

+
+
+
+

+

+

+
+
/api/users/me/favorites/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/me/favorites/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.addFavorites(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#addFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.addFavorites(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#addFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Add event to current user's favorites
+[apiInstance addFavoritesWith:id
+              completionHandler: ^(EventDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.addFavorites(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class addFavoritesExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Add event to current user's favorites
+                EventDTO result = apiInstance.addFavorites(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.addFavorites: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->addFavorites($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->addFavorites: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->addFavorites(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->addFavorites: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Add event to current user's favorites
+    api_response = api_instance.add_favorites(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->addFavorites: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.addFavorites(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

deleteUser

+

Delete user by admin

+
+
+
+

+

+

+
+
/api/users/admin/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/admin/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            UserDTO result = apiInstance.deleteUser(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#deleteUser");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            UserDTO result = apiInstance.deleteUser(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#deleteUser");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Delete user by admin
+[apiInstance deleteUserWith:id
+              completionHandler: ^(UserDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.deleteUser(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class deleteUserExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Delete user by admin
+                UserDTO result = apiInstance.deleteUser(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.deleteUser: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->deleteUser($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->deleteUser: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->deleteUser(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->deleteUser: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Delete user by admin
+    api_response = api_instance.delete_user(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->deleteUser: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.deleteUser(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

getMyFavorites

+

Get my favorites

+
+
+
+

+

+

+
+
/api/users/me/favorites
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/me/favorites"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+
+        try {
+            array[EventDTO] result = apiInstance.getMyFavorites();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#getMyFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+
+        try {
+            array[EventDTO] result = apiInstance.getMyFavorites();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#getMyFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+
+// Get my favorites
+[apiInstance getMyFavoritesWithCompletionHandler: 
+              ^(array[EventDTO] output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getMyFavorites(callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getMyFavoritesExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+
+            try {
+                // Get my favorites
+                array[EventDTO] result = apiInstance.getMyFavorites();
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.getMyFavorites: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+
+try {
+    $result = $api_instance->getMyFavorites();
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->getMyFavorites: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+
+eval {
+    my $result = $api_instance->getMyFavorites();
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->getMyFavorites: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+
+try:
+    # Get my favorites
+    api_response = api_instance.get_my_favorites()
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->getMyFavorites: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.getMyFavorites(&context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

getProfile

+

Get a user by admin

+
+
+
+

+

+

+
+
/api/users/admin/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/admin/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            UserDTO result = apiInstance.getProfile(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#getProfile");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            UserDTO result = apiInstance.getProfile(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#getProfile");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Get a user by admin
+[apiInstance getProfileWith:id
+              completionHandler: ^(UserDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getProfile(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getProfileExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Get a user by admin
+                UserDTO result = apiInstance.getProfile(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.getProfile: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->getProfile($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->getProfile: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->getProfile(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->getProfile: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Get a user by admin
+    api_response = api_instance.get_profile(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->getProfile: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.getProfile(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

getUserFavorites

+

Get user favorites by admin

+
+
+
+

+

+

+
+
/api/users/admin/{id}/favorites
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/admin/{id}/favorites"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            array[EventDTO] result = apiInstance.getUserFavorites(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#getUserFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            array[EventDTO] result = apiInstance.getUserFavorites(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#getUserFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Get user favorites by admin
+[apiInstance getUserFavoritesWith:id
+              completionHandler: ^(array[EventDTO] output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.getUserFavorites(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class getUserFavoritesExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Get user favorites by admin
+                array[EventDTO] result = apiInstance.getUserFavorites(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.getUserFavorites: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->getUserFavorites($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->getUserFavorites: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->getUserFavorites(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->getUserFavorites: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Get user favorites by admin
+    api_response = api_instance.get_user_favorites(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->getUserFavorites: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.getUserFavorites(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

me

+

Get current user

+
+
+
+

+

+

+
+
/api/users/me
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/me"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+
+        try {
+            UserDTO result = apiInstance.me();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#me");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+
+        try {
+            UserDTO result = apiInstance.me();
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#me");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+
+// Get current user
+[apiInstance meWithCompletionHandler: 
+              ^(UserDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.me(callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class meExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+
+            try {
+                // Get current user
+                UserDTO result = apiInstance.me();
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.me: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+
+try {
+    $result = $api_instance->me();
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->me: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+
+eval {
+    my $result = $api_instance->me();
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->me: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+
+try:
+    # Get current user
+    api_response = api_instance.me()
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->me: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.me(&context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

modifyMyPassWord

+

Modify my password

+
+
+
+

+

+

+
+
/api/users/me/password
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PATCH \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/api/users/me/password" \
+ -d '{
+  "oldPassword" : "oldPassword",
+  "newPassword" : "newPassword"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        ChangePassword changePassword = ; // ChangePassword | 
+
+        try {
+            UserDTO result = apiInstance.modifyMyPassWord(changePassword);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#modifyMyPassWord");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        ChangePassword changePassword = ; // ChangePassword | 
+
+        try {
+            UserDTO result = apiInstance.modifyMyPassWord(changePassword);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#modifyMyPassWord");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+ChangePassword *changePassword = ; // 
+
+// Modify my password
+[apiInstance modifyMyPassWordWith:changePassword
+              completionHandler: ^(UserDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var changePassword = ; // {ChangePassword} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.modifyMyPassWord(changePassword, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class modifyMyPassWordExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var changePassword = new ChangePassword(); // ChangePassword | 
+
+            try {
+                // Modify my password
+                UserDTO result = apiInstance.modifyMyPassWord(changePassword);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.modifyMyPassWord: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$changePassword = ; // ChangePassword | 
+
+try {
+    $result = $api_instance->modifyMyPassWord($changePassword);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->modifyMyPassWord: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $changePassword = WWW::OPenAPIClient::Object::ChangePassword->new(); # ChangePassword | 
+
+eval {
+    my $result = $api_instance->modifyMyPassWord(changePassword => $changePassword);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->modifyMyPassWord: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+changePassword =  # ChangePassword | 
+
+try:
+    # Modify my password
+    api_response = api_instance.modify_my_pass_word(changePassword)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->modifyMyPassWord: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let changePassword = ; // ChangePassword
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.modifyMyPassWord(changePassword, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
changePassword * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

modifyUser

+

Modify current user

+
+
+
+

+

+

+
+
/api/users/me
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PATCH \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/me?newName=newName_example&newEmail=newEmail_example"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        String newName = newName_example; // String | 
+        String newEmail = newEmail_example; // String | 
+
+        try {
+            UserDTO result = apiInstance.modifyUser(newName, newEmail);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#modifyUser");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        String newName = newName_example; // String | 
+        String newEmail = newEmail_example; // String | 
+
+        try {
+            UserDTO result = apiInstance.modifyUser(newName, newEmail);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#modifyUser");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+String *newName = newName_example; //  (default to null)
+String *newEmail = newEmail_example; //  (default to null)
+
+// Modify current user
+[apiInstance modifyUserWith:newName
+    newEmail:newEmail
+              completionHandler: ^(UserDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var newName = newName_example; // {String} 
+var newEmail = newEmail_example; // {String} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.modifyUser(newName, newEmail, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class modifyUserExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var newName = newName_example;  // String |  (default to null)
+            var newEmail = newEmail_example;  // String |  (default to null)
+
+            try {
+                // Modify current user
+                UserDTO result = apiInstance.modifyUser(newName, newEmail);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.modifyUser: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$newName = newName_example; // String | 
+$newEmail = newEmail_example; // String | 
+
+try {
+    $result = $api_instance->modifyUser($newName, $newEmail);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->modifyUser: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $newName = newName_example; # String | 
+my $newEmail = newEmail_example; # String | 
+
+eval {
+    my $result = $api_instance->modifyUser(newName => $newName, newEmail => $newEmail);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->modifyUser: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+newName = newName_example # String |  (default to null)
+newEmail = newEmail_example # String |  (default to null)
+
+try:
+    # Modify current user
+    api_response = api_instance.modify_user(newName, newEmail)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->modifyUser: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let newName = newName_example; // String
+    let newEmail = newEmail_example; // String
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.modifyUser(newName, newEmail, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + +
Query parameters
+ + + + + + + + + + + + + +
NameDescription
newName* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
newEmail* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

modifyUserbyAdmin

+

Modify user by admin

+
+
+
+

+

+

+
+
/api/users/admin/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PATCH \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/admin/{id}?newName=newName_example&newEmail=newEmail_example&newRol=newRol_example"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+        String newName = newName_example; // String | 
+        String newEmail = newEmail_example; // String | 
+        String newRol = newRol_example; // String | 
+
+        try {
+            UserDTO result = apiInstance.modifyUserbyAdmin(id, newName, newEmail, newRol);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#modifyUserbyAdmin");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+        String newName = newName_example; // String | 
+        String newEmail = newEmail_example; // String | 
+        String newRol = newRol_example; // String | 
+
+        try {
+            UserDTO result = apiInstance.modifyUserbyAdmin(id, newName, newEmail, newRol);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#modifyUserbyAdmin");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+String *newName = newName_example; //  (default to null)
+String *newEmail = newEmail_example; //  (default to null)
+String *newRol = newRol_example; //  (default to null)
+
+// Modify user by admin
+[apiInstance modifyUserbyAdminWith:id
+    newName:newName
+    newEmail:newEmail
+    newRol:newRol
+              completionHandler: ^(UserDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var id = 789; // {Long} 
+var newName = newName_example; // {String} 
+var newEmail = newEmail_example; // {String} 
+var newRol = newRol_example; // {String} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.modifyUserbyAdmin(id, newName, newEmail, newRol, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class modifyUserbyAdminExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+            var newName = newName_example;  // String |  (default to null)
+            var newEmail = newEmail_example;  // String |  (default to null)
+            var newRol = newRol_example;  // String |  (default to null)
+
+            try {
+                // Modify user by admin
+                UserDTO result = apiInstance.modifyUserbyAdmin(id, newName, newEmail, newRol);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.modifyUserbyAdmin: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$id = 789; // Long | 
+$newName = newName_example; // String | 
+$newEmail = newEmail_example; // String | 
+$newRol = newRol_example; // String | 
+
+try {
+    $result = $api_instance->modifyUserbyAdmin($id, $newName, $newEmail, $newRol);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->modifyUserbyAdmin: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $id = 789; # Long | 
+my $newName = newName_example; # String | 
+my $newEmail = newEmail_example; # String | 
+my $newRol = newRol_example; # String | 
+
+eval {
+    my $result = $api_instance->modifyUserbyAdmin(id => $id, newName => $newName, newEmail => $newEmail, newRol => $newRol);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->modifyUserbyAdmin: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+id = 789 # Long |  (default to null)
+newName = newName_example # String |  (default to null)
+newEmail = newEmail_example # String |  (default to null)
+newRol = newRol_example # String |  (default to null)
+
+try:
+    # Modify user by admin
+    api_response = api_instance.modify_userby_admin(id, newName, newEmail, newRol)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->modifyUserbyAdmin: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+    let newName = newName_example; // String
+    let newEmail = newEmail_example; // String
+    let newRol = newRol_example; // String
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.modifyUserbyAdmin(id, newName, newEmail, newRol, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + + + + + + + + + +
NameDescription
newName* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
newEmail* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
newRol* + + +
+
+
+ + String + + +
+
+ Required +
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

register

+

Register a user

+
+
+
+

+

+

+
+
/api/users/
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST \
+ -H "Accept: application/json" \
+ -H "Content-Type: application/json" \
+ "http://localhost:8443/api/users/" \
+ -d '{
+  "validated" : true,
+  "favoritos" : [ null, null ],
+  "id" : 1,
+  "checkToken" : "checkToken",
+  "email" : "email",
+  "getencodedPassword" : "getencodedPassword",
+  "rol" : "rol",
+  "username" : "username"
+}'
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        User user = ; // User | 
+
+        try {
+            UserDTO result = apiInstance.register(user);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#register");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        User user = ; // User | 
+
+        try {
+            UserDTO result = apiInstance.register(user);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#register");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+User *user = ; // 
+
+// Register a user
+[apiInstance registerWith:user
+              completionHandler: ^(UserDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var user = ; // {User} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.register(user, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class registerExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var user = new User(); // User | 
+
+            try {
+                // Register a user
+                UserDTO result = apiInstance.register(user);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.register: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$user = ; // User | 
+
+try {
+    $result = $api_instance->register($user);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->register: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $user = WWW::OPenAPIClient::Object::User->new(); # User | 
+
+eval {
+    my $result = $api_instance->register(user => $user);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->register: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+user =  # User | 
+
+try:
+    # Register a user
+    api_response = api_instance.register(user)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->register: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let user = ; // User
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.register(user, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
user * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

removeFavorites

+

Remove event from current user's favorites

+
+
+
+

+

+

+
+
/api/users/me/favorites/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE \
+ -H "Accept: application/json" \
+ "http://localhost:8443/api/users/me/favorites/{id}"
+
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.UserRestControllerApi;
+
+import java.io.File;
+import java.util.*;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+
+        // Create an instance of the API class
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.removeFavorites(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#removeFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+
+ +
+
import org.openapitools.client.api.UserRestControllerApi;
+
+public class UserRestControllerApiExample {
+    public static void main(String[] args) {
+        UserRestControllerApi apiInstance = new UserRestControllerApi();
+        Long id = 789; // Long | 
+
+        try {
+            EventDTO result = apiInstance.removeFavorites(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling UserRestControllerApi#removeFavorites");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+

+
+// Create an instance of the API class
+UserRestControllerApi *apiInstance = [[UserRestControllerApi alloc] init];
+Long *id = 789; //  (default to null)
+
+// Remove event from current user's favorites
+[apiInstance removeFavoritesWith:id
+              completionHandler: ^(EventDTO output, NSError* error) {
+    if (output) {
+        NSLog(@"%@", output);
+    }
+    if (error) {
+        NSLog(@"Error: %@", error);
+    }
+}];
+
+
+ +
+
var OpenApiDefinition = require('open_api_definition');
+
+// Create an instance of the API class
+var api = new OpenApiDefinition.UserRestControllerApi()
+var id = 789; // {Long} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.removeFavorites(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Client;
+using Org.OpenAPITools.Model;
+
+namespace Example
+{
+    public class removeFavoritesExample
+    {
+        public void main()
+        {
+
+            // Create an instance of the API class
+            var apiInstance = new UserRestControllerApi();
+            var id = 789;  // Long |  (default to null)
+
+            try {
+                // Remove event from current user's favorites
+                EventDTO result = apiInstance.removeFavorites(id);
+                Debug.WriteLine(result);
+            } catch (Exception e) {
+                Debug.Print("Exception when calling UserRestControllerApi.removeFavorites: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Create an instance of the API class
+$api_instance = new OpenAPITools\Client\Api\UserRestControllerApi();
+$id = 789; // Long | 
+
+try {
+    $result = $api_instance->removeFavorites($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling UserRestControllerApi->removeFavorites: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::UserRestControllerApi;
+
+# Create an instance of the API class
+my $api_instance = WWW::OPenAPIClient::UserRestControllerApi->new();
+my $id = 789; # Long | 
+
+eval {
+    my $result = $api_instance->removeFavorites(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling UserRestControllerApi->removeFavorites: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Create an instance of the API class
+api_instance = openapi_client.UserRestControllerApi()
+id = 789 # Long |  (default to null)
+
+try:
+    # Remove event from current user's favorites
+    api_response = api_instance.remove_favorites(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling UserRestControllerApi->removeFavorites: %s\n" % e)
+
+ +
+
extern crate UserRestControllerApi;
+
+pub fn main() {
+    let id = 789; // Long
+
+    let mut context = UserRestControllerApi::Context::default();
+    let result = client.removeFavorites(id, &context).wait();
+
+    println!("{:?}", result);
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + Long + + + (int64) + + +
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + + diff --git a/AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.yaml b/AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.yaml new file mode 100644 index 0000000..09175eb --- /dev/null +++ b/AplicacionWEB/backend/asociationPlatform/api-docs/api-docs.yaml @@ -0,0 +1,1021 @@ +openapi: 3.0.1 +info: + title: OpenAPI definition + version: v0 +servers: +- url: http://localhost:8443 + description: Generated server url +paths: + /api/events/{id}: + get: + tags: + - event-rest-controller + summary: Get Event by id + operationId: getEvent + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Event getted succesfully + content: + application/json: + schema: + $ref: '#/components/schemas/EventDTO' + "404": + description: Event not found + put: + tags: + - event-rest-controller + summary: Edit event + operationId: editEvent + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + - name: event + in: query + required: true + schema: + $ref: '#/components/schemas/Event' + responses: + "404": + description: event not found + "403": + description: not enouth privileges + "200": + description: event edited sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/EventDTO' + "401": + description: no user register + delete: + tags: + - event-rest-controller + summary: Delete event + operationId: deleteEvent + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: event removed sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/EventDTO' + "404": + description: event not found + "403": + description: not enouth privileges + "401": + description: no user register + /api/events/image/{id}: + get: + tags: + - event-rest-controller + summary: Get event image + operationId: getImage + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: event image getted sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/Event' + "404": + description: event not found + put: + tags: + - event-rest-controller + summary: Change event image + operationId: setImage + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + - name: newImage + in: query + required: true + schema: + type: string + format: binary + responses: + "404": + description: event not found + "403": + description: not enouth privileges + "200": + description: event image changed sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/EventDTO' + "401": + description: no user register + /api/aso/{id}: + get: + tags: + - asso-rest-controller + summary: Get Association by id + operationId: getById + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "404": + description: Association not found + "200": + description: Association obtained sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/AsociationDTO' + put: + tags: + - asso-rest-controller + summary: Edit association + operationId: editAsso + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Asociation' + required: true + responses: + "401": + description: current user doesn´t have the required permissions + "403": + description: these changes can´t be made + "404": + description: Asociation not found + "200": + description: Association edited sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/AsociationDTO' + delete: + tags: + - asso-rest-controller + summary: Delete Association + operationId: deleteAsso + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "401": + description: current user doesn´t have the required permissions + "404": + description: Association not found + "200": + description: Association deleted sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/AsociationDTO' + /api/aso/miAsociacion: + get: + tags: + - asso-rest-controller + summary: Get personal Association + operationId: getMyAsso + responses: + "404": + description: User not found + "200": + description: Association obtained sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/AsociationDTO' + put: + tags: + - asso-rest-controller + summary: Edit personal association + operationId: editMyAsso + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Asociation' + required: true + responses: + "401": + description: current user doesn´t have the required permissions + "403": + description: these changes can´t be made + "404": + description: Asociation not found + "200": + description: Association edited sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/AsociationDTO' + post: + tags: + - asso-rest-controller + summary: Create personal Association + operationId: create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Asociation' + required: true + responses: + "404": + description: User not found + "200": + description: Association created sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/AsociationDTO' + /sendMail: + post: + tags: + - email-controller + operationId: sendMail + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EmailDetails' + required: true + responses: + "200": + description: OK + content: + '*/*': + schema: + type: string + /api/users/me/favorites/{id}: + post: + tags: + - user-rest-controller + summary: Add event to current user's favorites + operationId: addFavorites + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: event added sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/EventDTO' + "400": + description: invalid event id supplied + "404": + description: event not found + "401": + description: user is not registered + delete: + tags: + - user-rest-controller + summary: Remove event from current user's favorites + operationId: removeFavorites + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: event removed sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/EventDTO' + "400": + description: invalid event id supplied + "404": + description: event not found + "401": + description: user is not registered + /api/users/: + post: + tags: + - user-rest-controller + summary: Register a user + operationId: register + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/User' + required: true + responses: + "400": + description: invalid id supplied + "403": + description: existing user or wrong role + "201": + description: user created sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + /api/events/new: + post: + tags: + - event-rest-controller + summary: Create Event + operationId: createEvent + parameters: + - name: newImage + in: query + required: true + schema: + type: string + format: binary + - name: event + in: query + required: true + schema: + $ref: '#/components/schemas/Event' + responses: + "403": + description: not enouth privileges + "201": + description: event created sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/EventDTO' + "401": + description: no user register + /api/comment/new/{id}: + post: + tags: + - comment-rest-controller + summary: Post Comment + operationId: postComment + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Comment' + required: true + responses: + "400": + description: invalid id supplied + "401": + description: comment is not created + "200": + description: comment posted sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/Comment' + "403": + description: not enough privileges or admin is modifying itself + "404": + description: comment not found + /api/auth/logout: + post: + tags: + - login-rest-controller + summary: Logout as user + operationId: logOut + responses: + "200": + description: user logged out sucessfully + "405": + description: logout error + /api/auth/login: + post: + tags: + - login-rest-controller + summary: Login as user + operationId: login + parameters: + - name: accessToken + in: cookie + required: false + schema: + type: string + - name: refreshToken + in: cookie + required: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LoginRequest' + required: true + responses: + "405": + description: wrong username or password + "200": + description: user logged in sucessfully + /api/users/me: + get: + tags: + - user-rest-controller + summary: Get current user + operationId: me + responses: + "200": + description: user found + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + "401": + description: user is not registered + patch: + tags: + - user-rest-controller + summary: Modify current user + operationId: modifyUser + parameters: + - name: newName + in: query + required: true + schema: + type: string + - name: newEmail + in: query + required: true + schema: + type: string + responses: + "401": + description: user is not registered + "200": + description: user modified sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + /api/users/me/password: + patch: + tags: + - user-rest-controller + summary: Modify my password + operationId: modifyMyPassWord + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangePassword' + required: true + responses: + "403": + description: wrong password + "401": + description: user is not registered + "200": + description: password modified sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + /api/users/admin/{id}: + get: + tags: + - user-rest-controller + summary: Get a user by admin + operationId: getProfile + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "400": + description: invalid id supplied + "200": + description: user found + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + "401": + description: user is not registered + "404": + description: user not found + delete: + tags: + - user-rest-controller + summary: Delete user by admin + operationId: deleteUser + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "400": + description: invalid id supplied + "403": + description: not enough privileges or admin is deleting itself + "401": + description: user is not registered + "404": + description: user not found + "200": + description: user deleted sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + patch: + tags: + - user-rest-controller + summary: Modify user by admin + operationId: modifyUserbyAdmin + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + - name: newName + in: query + required: true + schema: + type: string + - name: newEmail + in: query + required: true + schema: + type: string + - name: newRol + in: query + required: true + schema: + type: string + responses: + "400": + description: invalid id supplied + "401": + description: user is not registered + "200": + description: user modified sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + "403": + description: not enough privileges or admin is modifying itself + "404": + description: user not found + /api/users/me/favorites: + get: + tags: + - user-rest-controller + summary: Get my favorites + operationId: getMyFavorites + responses: + "200": + description: favourites getted sucessfully + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventDTO' + "401": + description: user is not registered + "403": + description: not enough privileges + "404": + description: user not found + /api/users/admin/{id}/favorites: + get: + tags: + - user-rest-controller + summary: Get user favorites by admin + operationId: getUserFavorites + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "400": + description: invalid id supplied + "401": + description: user is not registered + "200": + description: favourites from user getted sucessfully + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventDTO' + "403": + description: not enough privileges + "404": + description: user not found + /api/events/filters: + get: + tags: + - event-rest-controller + summary: Get events using filters + operationId: searchFilters + parameters: + - name: name + in: query + required: true + schema: + type: string + - name: month + in: query + required: true + schema: + type: string + - name: campus + in: query + required: true + schema: + type: string + - name: asociation + in: query + required: true + schema: + type: string + - name: page + in: query + required: true + schema: + type: integer + format: int32 + responses: + "200": + description: Events getted succesfully + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventDTO' + /api/comments/{id}: + get: + tags: + - comment-rest-controller + summary: Get list of comments of event + operationId: deleteComment + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "404": + description: event not found + "200": + description: list of comments sucessfully getted + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CommentDTO' + /api/comment/{id}: + get: + tags: + - comment-rest-controller + summary: Get Comment + operationId: getComment + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "400": + description: invalid id supplied + "200": + description: comment obtained sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/CommentDTO' + "401": + description: comment is not created + "403": + description: not enough privileges or admin is modifying itself + "404": + description: comment not found + delete: + tags: + - comment-rest-controller + summary: Remove Comment + operationId: deleteComment_1 + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int64 + responses: + "400": + description: invalid id supplied + "401": + description: comment is not created + "403": + description: not enough privileges or admin is modifying itself + "404": + description: comment not found + "200": + description: comment removed sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/CommentDTO' + /api/aso/asociationsList: + get: + tags: + - asso-rest-controller + summary: Get Association list + operationId: ListAsso + responses: + "200": + description: Association list obtained sucessfully + content: + application/json: + schema: + $ref: '#/components/schemas/AsociationDTO' +components: + schemas: + Asociation: + type: object + properties: + id: + type: integer + format: int64 + name: + type: string + description: + type: string + faculty: + type: string + campus: + type: string + owner: + $ref: '#/components/schemas/User' + ownerId: + type: integer + format: int64 + Comment: + type: object + properties: + id: + type: integer + format: int64 + event: + $ref: '#/components/schemas/Event' + description: + type: string + time: + type: string + commentUser: + type: string + totalFavorites: + type: integer + format: int32 + Event: + type: object + properties: + id: + type: integer + format: int64 + name: + type: string + date: + type: string + format: date-time + month: + type: string + description: + type: string + location: + type: string + asociation: + $ref: '#/components/schemas/Asociation' + campus: + type: string + credits: + type: boolean + booking: + type: boolean + startTime: + type: string + endTime: + type: string + duration: + type: string + comments: + type: array + items: + $ref: '#/components/schemas/Comment' + image: + type: object + properties: + binaryStream: + type: object + imgUrl: + type: object + properties: + binaryStream: + type: object + writeOnly: true + totalLikes: + type: integer + format: int32 + totalDislikes: + type: integer + format: int32 + asociationName: + type: string + User: + type: object + properties: + id: + type: integer + format: int64 + email: + type: string + username: + type: string + getencodedPassword: + type: string + rol: + type: string + favoritos: + type: array + items: + $ref: '#/components/schemas/Event' + validated: + type: boolean + checkToken: + type: string + EventDTO: + type: object + properties: + id: + type: integer + format: int64 + name: + type: string + date: + type: string + format: date-time + month: + type: string + description: + type: string + location: + type: string + asociation: + type: string + campus: + type: string + credits: + type: boolean + booking: + type: boolean + startTime: + type: string + endTime: + type: string + duration: + type: string + AsociationDTO: + type: object + properties: + id: + type: integer + format: int64 + name: + type: string + description: + type: string + faculty: + type: string + campus: + type: string + ownerId: + type: integer + format: int64 + EmailDetails: + type: object + properties: + recipient: + type: string + msgBody: + type: string + subject: + type: string + UserDTO: + type: object + properties: + id: + type: integer + format: int64 + email: + type: string + username: + type: string + rol: + type: string + LoginRequest: + type: object + properties: + username: + type: string + password: + type: string + ChangePassword: + type: object + properties: + oldPassword: + type: string + newPassword: + type: string + CommentDTO: + type: object + properties: + id: + type: integer + format: int64 + event: + $ref: '#/components/schemas/EventDTO' + comment_user: + type: string + description: + type: string + time: + type: string diff --git a/AplicacionWEB/backend/asociationPlatform/pom.xml b/AplicacionWEB/backend/asociationPlatform/pom.xml index e4a6bc3..5461b4c 100644 --- a/AplicacionWEB/backend/asociationPlatform/pom.xml +++ b/AplicacionWEB/backend/asociationPlatform/pom.xml @@ -100,6 +100,25 @@ org.springframework.boot spring-boot-maven-plugin + + + pre-integration-test + + start + + + + --server.ssl.enabled=false + + + + + post-integration-test + + stop + + + org.springdoc @@ -123,7 +142,19 @@ org.openapitools openapi-generator-maven-plugin 5.3.0 - + com.coderplus.maven.plugins From 796030aa5861a4849ae52fb093872e17468af74f Mon Sep 17 00:00:00 2001 From: Danielus99 <102818915+Danielus99@users.noreply.github.com> Date: Tue, 4 Apr 2023 15:13:40 +0200 Subject: [PATCH 2/2] Update pom.xml --- AplicacionWEB/backend/asociationPlatform/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AplicacionWEB/backend/asociationPlatform/pom.xml b/AplicacionWEB/backend/asociationPlatform/pom.xml index 5461b4c..c426bc3 100644 --- a/AplicacionWEB/backend/asociationPlatform/pom.xml +++ b/AplicacionWEB/backend/asociationPlatform/pom.xml @@ -142,7 +142,7 @@ org.openapitools openapi-generator-maven-plugin 5.3.0 - + com.coderplus.maven.plugins