listRequest
This endpoint allows you to list requests
/request
Usage and SDK Samples
curl -X GET \
-H "Accept: */*" \
"http://localhost:3080/v1/request?processed=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RequestApi;
import java.io.File;
import java.util.*;
public class RequestApiExample {
public static void main(String[] args) {
// Create an instance of the API class
RequestApi apiInstance = new RequestApi();
Boolean processed = true; // Boolean | Processed
try {
model.RequestList result = apiInstance.listRequest(processed);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RequestApi#listRequest");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Boolean processed = new Boolean(); // Boolean | Processed
try {
final result = await api_instance.listRequest(processed);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->listRequest: $e\n');
}
import org.openapitools.client.api.RequestApi;
public class RequestApiExample {
public static void main(String[] args) {
RequestApi apiInstance = new RequestApi();
Boolean processed = true; // Boolean | Processed
try {
model.RequestList result = apiInstance.listRequest(processed);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RequestApi#listRequest");
e.printStackTrace();
}
}
}
// Create an instance of the API class
RequestApi *apiInstance = [[RequestApi alloc] init];
Boolean *processed = true; // Processed (optional) (default to null)
[apiInstance listRequestWith:processed
completionHandler: ^(model.RequestList output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var 0GServingProviderBrokerApi = require('0_g_serving_provider_broker_api');
// Create an instance of the API class
var api = new 0GServingProviderBrokerApi.RequestApi()
var opts = {
'processed': true // {Boolean} Processed
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.listRequest(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class listRequestExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new RequestApi();
var processed = true; // Boolean | Processed (optional) (default to null)
try {
model.RequestList result = apiInstance.listRequest(processed);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling RequestApi.listRequest: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RequestApi();
$processed = true; // Boolean | Processed
try {
$result = $api_instance->listRequest($processed);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RequestApi->listRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RequestApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RequestApi->new();
my $processed = true; # Boolean | Processed
eval {
my $result = $api_instance->listRequest(processed => $processed);
print Dumper($result);
};
if ($@) {
warn "Exception when calling RequestApi->listRequest: $@\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.RequestApi()
processed = true # Boolean | Processed (optional) (default to null)
try:
api_response = api_instance.list_request(processed=processed)
pprint(api_response)
except ApiException as e:
print("Exception when calling RequestApi->listRequest: %s\n" % e)
extern crate RequestApi;
pub fn main() {
let processed = true; // Boolean
let mut context = RequestApi::Context::default();
let result = client.listRequest(processed, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Name | Description |
---|---|
processed |
Boolean
Processed
|