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
+ + + +Name | +Description | +
---|---|
asociation * | ++ + + + | +