REST API FOR COURSES INFORMATIONS

HowToVisualize

courses

All courses of a university in a specific year.


/u{university_code}/{year}/

Usage and SDK Samples

curl -X GET "http://ateneo.pp.cineca.it/off270/web/ApiRest/ftp2/api/switch.php?param=/u{university_code}/{year}/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HowToVisualizeApi;

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

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        try {
            Courses result = apiInstance.courses(universityCode, year);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#courses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HowToVisualizeApi;

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        try {
            Courses result = apiInstance.courses(universityCode, year);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#courses");
            e.printStackTrace();
        }
    }
}
String *universityCode = universityCode_example; // The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Integer *year = 56; // the year of the courses of your interest, for example 2018

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

// All courses of a university in a specific year.
[apiInstance coursesWith:universityCode
    year:year
              completionHandler: ^(Courses output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApiForCoursesInformations = require('rest_api_for_courses_informations');

var api = new RestApiForCoursesInformations.HowToVisualizeApi()
var universityCode = universityCode_example; // {{String}} The univocal code of a university,for example 03 (Università degli Studi di Bologna)
var year = 56; // {{Integer}} the year of the courses of your interest, for example 2018

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

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

            var apiInstance = new HowToVisualizeApi();
            var universityCode = universityCode_example;  // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
            var year = 56;  // Integer | the year of the courses of your interest, for example 2018

            try
            {
                // All courses of a university in a specific year.
                Courses result = apiInstance.courses(universityCode, year);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HowToVisualizeApi.courses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiHowToVisualizeApi();
$universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
$year = 56; // Integer | the year of the courses of your interest, for example 2018

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

my $api_instance = WWW::SwaggerClient::HowToVisualizeApi->new();
my $universityCode = universityCode_example; # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
my $year = 56; # Integer | the year of the courses of your interest, for example 2018

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

# create an instance of the API class
api_instance = swagger_client.HowToVisualizeApi()
universityCode = universityCode_example # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
year = 56 # Integer | the year of the courses of your interest, for example 2018

try: 
    # All courses of a university in a specific year.
    api_response = api_instance.courses(universityCode, year)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HowToVisualizeApi->courses: %s\n" % e)

Parameters

Path parameters
Name Description
university_code*
String
The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Required
year*
Integer
the year of the courses of your interest, for example 2018
Required

Responses

Status: 200 - Array of courses

Status: default - Invalid_Parameters Error


historic

The course of study informations in the past years, useful to make comparison on how the course is changed from 2002.


/u{university_code}/{year}/cds{internal_code}/historic

Usage and SDK Samples

curl -X GET "http://ateneo.pp.cineca.it/off270/web/ApiRest/ftp2/api/switch.php?param=/u{university_code}/{year}/cds{internal_code}/historic"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HowToVisualizeApi;

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

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        try {
            Historic result = apiInstance.historic(universityCode, year, internalCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#historic");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HowToVisualizeApi;

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        try {
            Historic result = apiInstance.historic(universityCode, year, internalCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#historic");
            e.printStackTrace();
        }
    }
}
String *universityCode = universityCode_example; // The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Integer *year = 56; // the year of the courses of your interest, for example 2018
String *internalCode = internalCode_example; // the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

// The course of study informations in the past years, useful to make comparison on how the course is changed from 2002.
[apiInstance historicWith:universityCode
    year:year
    internalCode:internalCode
              completionHandler: ^(Historic output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApiForCoursesInformations = require('rest_api_for_courses_informations');

var api = new RestApiForCoursesInformations.HowToVisualizeApi()
var universityCode = universityCode_example; // {{String}} The univocal code of a university,for example 03 (Università degli Studi di Bologna)
var year = 56; // {{Integer}} the year of the courses of your interest, for example 2018
var internalCode = internalCode_example; // {{String}} the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

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

            var apiInstance = new HowToVisualizeApi();
            var universityCode = universityCode_example;  // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
            var year = 56;  // Integer | the year of the courses of your interest, for example 2018
            var internalCode = internalCode_example;  // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

            try
            {
                // The course of study informations in the past years, useful to make comparison on how the course is changed from 2002.
                Historic result = apiInstance.historic(universityCode, year, internalCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HowToVisualizeApi.historic: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiHowToVisualizeApi();
$universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
$year = 56; // Integer | the year of the courses of your interest, for example 2018
$internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

try {
    $result = $api_instance->historic($universityCode, $year, $internalCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HowToVisualizeApi->historic: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HowToVisualizeApi;

my $api_instance = WWW::SwaggerClient::HowToVisualizeApi->new();
my $universityCode = universityCode_example; # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
my $year = 56; # Integer | the year of the courses of your interest, for example 2018
my $internalCode = internalCode_example; # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

# create an instance of the API class
api_instance = swagger_client.HowToVisualizeApi()
universityCode = universityCode_example # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
year = 56 # Integer | the year of the courses of your interest, for example 2018
internalCode = internalCode_example # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

try: 
    # The course of study informations in the past years, useful to make comparison on how the course is changed from 2002.
    api_response = api_instance.historic(universityCode, year, internalCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HowToVisualizeApi->historic: %s\n" % e)

Parameters

Path parameters
Name Description
university_code*
String
The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Required
year*
Integer
the year of the courses of your interest, for example 2018
Required
internal_code*
String
the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
Required

Responses

Status: 200 - Array of the course in the past years

Status: default - Invalid_Parameters Error


sua

The SUA's sheet texts of a course in a specific year.


/u{university_code}/{year}/cds{internal_code}/sua

Usage and SDK Samples

curl -X GET "http://ateneo.pp.cineca.it/off270/web/ApiRest/ftp2/api/switch.php?param=/u{university_code}/{year}/cds{internal_code}/sua"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HowToVisualizeApi;

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

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        try {
            Texts result = apiInstance.sua(universityCode, year, internalCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#sua");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HowToVisualizeApi;

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        try {
            Texts result = apiInstance.sua(universityCode, year, internalCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#sua");
            e.printStackTrace();
        }
    }
}
String *universityCode = universityCode_example; // The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Integer *year = 56; // the year of the courses of your interest, for example 2018
String *internalCode = internalCode_example; // the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

// The SUA's sheet texts of a course in a specific year.
[apiInstance suaWith:universityCode
    year:year
    internalCode:internalCode
              completionHandler: ^(Texts output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApiForCoursesInformations = require('rest_api_for_courses_informations');

var api = new RestApiForCoursesInformations.HowToVisualizeApi()
var universityCode = universityCode_example; // {{String}} The univocal code of a university,for example 03 (Università degli Studi di Bologna)
var year = 56; // {{Integer}} the year of the courses of your interest, for example 2018
var internalCode = internalCode_example; // {{String}} the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

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

            var apiInstance = new HowToVisualizeApi();
            var universityCode = universityCode_example;  // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
            var year = 56;  // Integer | the year of the courses of your interest, for example 2018
            var internalCode = internalCode_example;  // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

            try
            {
                // The SUA's sheet texts of a course in a specific year.
                Texts result = apiInstance.sua(universityCode, year, internalCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HowToVisualizeApi.sua: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiHowToVisualizeApi();
$universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
$year = 56; // Integer | the year of the courses of your interest, for example 2018
$internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

try {
    $result = $api_instance->sua($universityCode, $year, $internalCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HowToVisualizeApi->sua: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HowToVisualizeApi;

my $api_instance = WWW::SwaggerClient::HowToVisualizeApi->new();
my $universityCode = universityCode_example; # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
my $year = 56; # Integer | the year of the courses of your interest, for example 2018
my $internalCode = internalCode_example; # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

# create an instance of the API class
api_instance = swagger_client.HowToVisualizeApi()
universityCode = universityCode_example # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
year = 56 # Integer | the year of the courses of your interest, for example 2018
internalCode = internalCode_example # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

try: 
    # The SUA's sheet texts of a course in a specific year.
    api_response = api_instance.sua(universityCode, year, internalCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HowToVisualizeApi->sua: %s\n" % e)

Parameters

Path parameters
Name Description
university_code*
String
The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Required
year*
Integer
the year of the courses of your interest, for example 2018
Required
internal_code*
String
the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
Required

Responses

Status: 200 - Array of texts

Status: default - Invalid_Parameters Error


teachings

array composed by the teachings that made a course, possible to specific the year when they are teached.


/u{university_code}/{year}/cds{internal_code}/{year_of_teach}/teachings/

Usage and SDK Samples

curl -X GET "http://ateneo.pp.cineca.it/off270/web/ApiRest/ftp2/api/switch.php?param=/u{university_code}/{year}/cds{internal_code}/{year_of_teach}/teachings/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HowToVisualizeApi;

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

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        String yearOfTeach = yearOfTeach_example; // String | the course year , used to see only the exams of that year
        try {
            Teachings result = apiInstance.teachings(universityCode, year, internalCode, yearOfTeach);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#teachings");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HowToVisualizeApi;

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        String yearOfTeach = yearOfTeach_example; // String | the course year , used to see only the exams of that year
        try {
            Teachings result = apiInstance.teachings(universityCode, year, internalCode, yearOfTeach);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#teachings");
            e.printStackTrace();
        }
    }
}
String *universityCode = universityCode_example; // The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Integer *year = 56; // the year of the courses of your interest, for example 2018
String *internalCode = internalCode_example; // the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
String *yearOfTeach = yearOfTeach_example; // the course year , used to see only the exams of that year

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

// array composed by the teachings that made a course, possible to specific the year when they are teached.
[apiInstance teachingsWith:universityCode
    year:year
    internalCode:internalCode
    yearOfTeach:yearOfTeach
              completionHandler: ^(Teachings output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApiForCoursesInformations = require('rest_api_for_courses_informations');

var api = new RestApiForCoursesInformations.HowToVisualizeApi()
var universityCode = universityCode_example; // {{String}} The univocal code of a university,for example 03 (Università degli Studi di Bologna)
var year = 56; // {{Integer}} the year of the courses of your interest, for example 2018
var internalCode = internalCode_example; // {{String}} the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
var yearOfTeach = yearOfTeach_example; // {{String}} the course year , used to see only the exams of that year

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

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

            var apiInstance = new HowToVisualizeApi();
            var universityCode = universityCode_example;  // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
            var year = 56;  // Integer | the year of the courses of your interest, for example 2018
            var internalCode = internalCode_example;  // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
            var yearOfTeach = yearOfTeach_example;  // String | the course year , used to see only the exams of that year

            try
            {
                // array composed by the teachings that made a course, possible to specific the year when they are teached.
                Teachings result = apiInstance.teachings(universityCode, year, internalCode, yearOfTeach);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HowToVisualizeApi.teachings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiHowToVisualizeApi();
$universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
$year = 56; // Integer | the year of the courses of your interest, for example 2018
$internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
$yearOfTeach = yearOfTeach_example; // String | the course year , used to see only the exams of that year

try {
    $result = $api_instance->teachings($universityCode, $year, $internalCode, $yearOfTeach);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HowToVisualizeApi->teachings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HowToVisualizeApi;

my $api_instance = WWW::SwaggerClient::HowToVisualizeApi->new();
my $universityCode = universityCode_example; # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
my $year = 56; # Integer | the year of the courses of your interest, for example 2018
my $internalCode = internalCode_example; # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
my $yearOfTeach = yearOfTeach_example; # String | the course year , used to see only the exams of that year

eval { 
    my $result = $api_instance->teachings(universityCode => $universityCode, year => $year, internalCode => $internalCode, yearOfTeach => $yearOfTeach);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling HowToVisualizeApi->teachings: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.HowToVisualizeApi()
universityCode = universityCode_example # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
year = 56 # Integer | the year of the courses of your interest, for example 2018
internalCode = internalCode_example # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
yearOfTeach = yearOfTeach_example # String | the course year , used to see only the exams of that year

try: 
    # array composed by the teachings that made a course, possible to specific the year when they are teached.
    api_response = api_instance.teachings(universityCode, year, internalCode, yearOfTeach)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HowToVisualizeApi->teachings: %s\n" % e)

Parameters

Path parameters
Name Description
university_code*
String
The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Required
year*
Integer
the year of the courses of your interest, for example 2018
Required
internal_code*
String
the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
Required
year_of_teach*
String
the course year , used to see only the exams of that year
Required

Responses

Status: 200 - Array of courses

Status: default - Invalid_Parameters Error


universities

All italian universities ordered by their own univocal code.


/

Usage and SDK Samples

curl -X GET "http://ateneo.pp.cineca.it/off270/web/ApiRest/ftp2/api/switch.php?param=/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HowToVisualizeApi;

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

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        try {
            Universities result = apiInstance.universities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#universities");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HowToVisualizeApi;

public class HowToVisualizeApiExample {

    public static void main(String[] args) {
        HowToVisualizeApi apiInstance = new HowToVisualizeApi();
        try {
            Universities result = apiInstance.universities();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling HowToVisualizeApi#universities");
            e.printStackTrace();
        }
    }
}

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

// All italian universities ordered by their own univocal code.
[apiInstance universitiesWithCompletionHandler: 
              ^(Universities output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApiForCoursesInformations = require('rest_api_for_courses_informations');

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

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

            var apiInstance = new HowToVisualizeApi();

            try
            {
                // All italian universities ordered by their own univocal code.
                Universities result = apiInstance.universities();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HowToVisualizeApi.universities: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiHowToVisualizeApi();

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

my $api_instance = WWW::SwaggerClient::HowToVisualizeApi->new();

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

# create an instance of the API class
api_instance = swagger_client.HowToVisualizeApi()

try: 
    # All italian universities ordered by their own univocal code.
    api_response = api_instance.universities()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HowToVisualizeApi->universities: %s\n" % e)

Parameters

Responses

Status: 200 - Array of universities

Status: default - Invalid_Parameters Error


UpdateSua

suaUpdate

The SUA's sheet texts of a course in a specific year.


/u{university_code}/{year}/cds{internal_code}/sua

Usage and SDK Samples

curl -X POST "http://ateneo.pp.cineca.it/off270/web/ApiRest/ftp2/api/switch.php?param=/u{university_code}/{year}/cds{internal_code}/sua"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UpdateSuaApi;

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

public class UpdateSuaApiExample {

    public static void main(String[] args) {
        
        UpdateSuaApi apiInstance = new UpdateSuaApi();
        String text = text_example; // String | the new text you want to update
        String textId = textId_example; // String | the code of the text-section you want to update
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        try {
            Update_Success result = apiInstance.suaUpdate(text, textId, universityCode, year, internalCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateSuaApi#suaUpdate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UpdateSuaApi;

public class UpdateSuaApiExample {

    public static void main(String[] args) {
        UpdateSuaApi apiInstance = new UpdateSuaApi();
        String text = text_example; // String | the new text you want to update
        String textId = textId_example; // String | the code of the text-section you want to update
        String universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
        Integer year = 56; // Integer | the year of the courses of your interest, for example 2018
        String internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
        try {
            Update_Success result = apiInstance.suaUpdate(text, textId, universityCode, year, internalCode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpdateSuaApi#suaUpdate");
            e.printStackTrace();
        }
    }
}
String *text = text_example; // the new text you want to update
String *textId = textId_example; // the code of the text-section you want to update
String *universityCode = universityCode_example; // The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Integer *year = 56; // the year of the courses of your interest, for example 2018
String *internalCode = internalCode_example; // the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

// The SUA's sheet texts of a course in a specific year.
[apiInstance suaUpdateWith:text
    textId:textId
    universityCode:universityCode
    year:year
    internalCode:internalCode
              completionHandler: ^(Update_Success output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RestApiForCoursesInformations = require('rest_api_for_courses_informations');

var api = new RestApiForCoursesInformations.UpdateSuaApi()
var text = text_example; // {{String}} the new text you want to update
var textId = textId_example; // {{String}} the code of the text-section you want to update
var universityCode = universityCode_example; // {{String}} The univocal code of a university,for example 03 (Università degli Studi di Bologna)
var year = 56; // {{Integer}} the year of the courses of your interest, for example 2018
var internalCode = internalCode_example; // {{String}} the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

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

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

            var apiInstance = new UpdateSuaApi();
            var text = text_example;  // String | the new text you want to update
            var textId = textId_example;  // String | the code of the text-section you want to update
            var universityCode = universityCode_example;  // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
            var year = 56;  // Integer | the year of the courses of your interest, for example 2018
            var internalCode = internalCode_example;  // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

            try
            {
                // The SUA's sheet texts of a course in a specific year.
                Update_Success result = apiInstance.suaUpdate(text, textId, universityCode, year, internalCode);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UpdateSuaApi.suaUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUpdateSuaApi();
$text = text_example; // String | the new text you want to update
$textId = textId_example; // String | the code of the text-section you want to update
$universityCode = universityCode_example; // String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
$year = 56; // Integer | the year of the courses of your interest, for example 2018
$internalCode = internalCode_example; // String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

try {
    $result = $api_instance->suaUpdate($text, $textId, $universityCode, $year, $internalCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UpdateSuaApi->suaUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UpdateSuaApi;

my $api_instance = WWW::SwaggerClient::UpdateSuaApi->new();
my $text = text_example; # String | the new text you want to update
my $textId = textId_example; # String | the code of the text-section you want to update
my $universityCode = universityCode_example; # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
my $year = 56; # Integer | the year of the courses of your interest, for example 2018
my $internalCode = internalCode_example; # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

eval { 
    my $result = $api_instance->suaUpdate(text => $text, textId => $textId, universityCode => $universityCode, year => $year, internalCode => $internalCode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UpdateSuaApi->suaUpdate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UpdateSuaApi()
text = text_example # String | the new text you want to update
textId = textId_example # String | the code of the text-section you want to update
universityCode = universityCode_example # String | The univocal code of a university,for example 03 (Università degli Studi di Bologna)
year = 56 # Integer | the year of the courses of your interest, for example 2018
internalCode = internalCode_example # String | the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)

try: 
    # The SUA's sheet texts of a course in a specific year.
    api_response = api_instance.sua_update(text, textId, universityCode, year, internalCode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpdateSuaApi->suaUpdate: %s\n" % e)

Parameters

Path parameters
Name Description
university_code*
String
The univocal code of a university,for example 03 (Università degli Studi di Bologna)
Required
year*
Integer
the year of the courses of your interest, for example 2018
Required
internal_code*
String
the code that represents a course within the university, for example 8009 (Informatica in Università degli Studi di Bologna)
Required
Header parameters
Name Description
text*
String
the new text you want to update
Required
text_id*
String
the code of the text-section you want to update
Required

Responses

Status: 200 - Url

Status: 401 - Unauthorized

Status: default - Invalid_Parameters Error