apiV1ProjectGet
Get list of all projects
/api/v1/project
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/MATHEUSMVIANA/project-manager/1.0.0/api/v1/project"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjectApi;
import java.io.File;
import java.util.*;
public class ProjectApiExample {
public static void main(String[] args) {
ProjectApi apiInstance = new ProjectApi();
try {
array[Project] result = apiInstance.apiV1ProjectGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#apiV1ProjectGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ProjectApi;
public class ProjectApiExample {
public static void main(String[] args) {
ProjectApi apiInstance = new ProjectApi();
try {
array[Project] result = apiInstance.apiV1ProjectGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#apiV1ProjectGet");
e.printStackTrace();
}
}
}
ProjectApi *apiInstance = [[ProjectApi alloc] init];
// Get list of all projects
[apiInstance apiV1ProjectGetWithCompletionHandler:
^(array[Project] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ProjectManagerApi = require('project_manager_api');
var api = new ProjectManagerApi.ProjectApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiV1ProjectGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class apiV1ProjectGetExample
{
public void main()
{
var apiInstance = new ProjectApi();
try
{
// Get list of all projects
array[Project] result = apiInstance.apiV1ProjectGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProjectApi.apiV1ProjectGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiProjectApi();
try {
$result = $api_instance->apiV1ProjectGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->apiV1ProjectGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProjectApi;
my $api_instance = WWW::SwaggerClient::ProjectApi->new();
eval {
my $result = $api_instance->apiV1ProjectGet();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProjectApi->apiV1ProjectGet: $@\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.ProjectApi()
try:
# Get list of all projects
api_response = api_instance.api_v1_project_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectApi->apiV1ProjectGet: %s\n" % e)