cohortesAllGet
Données sur l'ensemble des cohortes
liste de toutes les cohortes
/cohortes/all
Usage and SDK Samples
curl -X GET\
-H "Accept: */*"\
"https://data.unif.app/api/cohortes/all"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApiApi;
import java.io.File;
import java.util.*;
public class ApiApiExample {
public static void main(String[] args) {
ApiApi apiInstance = new ApiApi();
try {
array[CohorteEtablissement] result = apiInstance.cohortesAllGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiApi#cohortesAllGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ApiApi;
public class ApiApiExample {
public static void main(String[] args) {
ApiApi apiInstance = new ApiApi();
try {
array[CohorteEtablissement] result = apiInstance.cohortesAllGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiApi#cohortesAllGet");
e.printStackTrace();
}
}
}
ApiApi *apiInstance = [[ApiApi alloc] init];
// Données sur l'ensemble des cohortes
[apiInstance cohortesAllGetWithCompletionHandler:
^(array[CohorteEtablissement] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApiOpenDataOraccle = require('api_open_data_oraccle');
var api = new ApiOpenDataOraccle.ApiApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.cohortesAllGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class cohortesAllGetExample
{
public void main()
{
var apiInstance = new ApiApi();
try
{
// Données sur l'ensemble des cohortes
array[CohorteEtablissement] result = apiInstance.cohortesAllGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ApiApi.cohortesAllGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiApiApi();
try {
$result = $api_instance->cohortesAllGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApiApi->cohortesAllGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApiApi;
my $api_instance = WWW::SwaggerClient::ApiApi->new();
eval {
my $result = $api_instance->cohortesAllGet();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ApiApi->cohortesAllGet: $@\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.ApiApi()
try:
# Données sur l'ensemble des cohortes
api_response = api_instance.cohortes_all_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling ApiApi->cohortesAllGet: %s\n" % e)