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
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
|