getNRU
Fonction qui génére le HTML/PDF d'une NRU
Retourne le HTML/PDF d'une NRU
/{version}/nru/{idParcelle}.{_format}
Usage and SDK Samples
curl -X GET "https://api-urba.sig.rennesmetropole.fr/{version}/nru/{idParcelle}.{_format}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NRUApi;
import java.io.File;
import java.util.*;
public class NRUApiExample {
public static void main(String[] args) {
NRUApi apiInstance = new NRUApi();
String version = version_example; // String | Version de l'API
String idParcelle = idParcelle_example; // String | L'ID de la parcelle à retourner
String format = format_example; // String | Format de retour souhaité
try {
apiInstance.getNRU(version, idParcelle, format);
} catch (ApiException e) {
System.err.println("Exception when calling NRUApi#getNRU");
e.printStackTrace();
}
}
}
import io.swagger.client.api.NRUApi;
public class NRUApiExample {
public static void main(String[] args) {
NRUApi apiInstance = new NRUApi();
String version = version_example; // String | Version de l'API
String idParcelle = idParcelle_example; // String | L'ID de la parcelle à retourner
String format = format_example; // String | Format de retour souhaité
try {
apiInstance.getNRU(version, idParcelle, format);
} catch (ApiException e) {
System.err.println("Exception when calling NRUApi#getNRU");
e.printStackTrace();
}
}
}
String *version = version_example; // Version de l'API
String *idParcelle = idParcelle_example; // L'ID de la parcelle à retourner
String *format = format_example; // Format de retour souhaité
NRUApi *apiInstance = [[NRUApi alloc] init];
// Fonction qui génére le HTML/PDF d'une NRU
[apiInstance getNRUWith:version
idParcelle:idParcelle
format:format
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ApiRestUrba = require('api_rest_urba');
var api = new ApiRestUrba.NRUApi()
var version = version_example; // {String} Version de l'API
var idParcelle = idParcelle_example; // {String} L'ID de la parcelle à retourner
var format = format_example; // {String} Format de retour souhaité
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.getNRU(version, idParcelle, format, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getNRUExample
{
public void main()
{
var apiInstance = new NRUApi();
var version = version_example; // String | Version de l'API
var idParcelle = idParcelle_example; // String | L'ID de la parcelle à retourner
var format = format_example; // String | Format de retour souhaité
try
{
// Fonction qui génére le HTML/PDF d'une NRU
apiInstance.getNRU(version, idParcelle, format);
}
catch (Exception e)
{
Debug.Print("Exception when calling NRUApi.getNRU: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\NRUApi();
$version = version_example; // String | Version de l'API
$idParcelle = idParcelle_example; // String | L'ID de la parcelle à retourner
$format = format_example; // String | Format de retour souhaité
try {
$api_instance->getNRU($version, $idParcelle, $format);
} catch (Exception $e) {
echo 'Exception when calling NRUApi->getNRU: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NRUApi;
my $api_instance = WWW::SwaggerClient::NRUApi->new();
my $version = version_example; # String | Version de l'API
my $idParcelle = idParcelle_example; # String | L'ID de la parcelle à retourner
my $format = format_example; # String | Format de retour souhaité
eval {
$api_instance->getNRU(version => $version, idParcelle => $idParcelle, format => $format);
};
if ($@) {
warn "Exception when calling NRUApi->getNRU: $@\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.NRUApi()
version = version_example # String | Version de l'API
idParcelle = idParcelle_example # String | L'ID de la parcelle à retourner
format = format_example # String | Format de retour souhaité
try:
# Fonction qui génére le HTML/PDF d'une NRU
api_instance.get_nru(version, idParcelle, format)
except ApiException as e:
print("Exception when calling NRUApi->getNRU: %s\n" % e)
Parameters
Path parameters
Name | Description |
---|---|
version* |
String
Version de l'API
Required
|
idParcelle* |
String
L'ID de la parcelle à retourner
Required
|
_format* |
String
Format de retour souhaité
Required
|