Management People for Angular

People

addPeople

Add a new people

create new people


/people

Usage and SDK Samples

curl -X post "http://127.0.0.1:8080/api/v1/people"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PeopleApi;

import java.io.File;
import java.util.*;

public class PeopleApiExample {

    public static void main(String[] args) {
        
        PeopleApi apiInstance = new PeopleApi();
        NewPeople body = ; // NewPeople | People object that needs to be added
        try {
            people result = apiInstance.addPeople(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#addPeople");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PeopleApi;

public class PeopleApiExample {

    public static void main(String[] args) {
        PeopleApi apiInstance = new PeopleApi();
        NewPeople body = ; // NewPeople | People object that needs to be added
        try {
            people result = apiInstance.addPeople(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#addPeople");
            e.printStackTrace();
        }
    }
}
NewPeople *body = ; // People object that needs to be added (optional)

PeopleApi *apiInstance = [[PeopleApi alloc] init];

// Add a new people
[apiInstance addPeopleWith:body
              completionHandler: ^(people output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ManagementPeopleForAngular = require('management_people_for_angular');

var api = new ManagementPeopleForAngular.PeopleApi()

var opts = { 
  'body':  // {NewPeople} People object that needs to be added
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addPeople(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addPeopleExample
    {
        public void main()
        {
            
            var apiInstance = new PeopleApi();
            var body = new NewPeople(); // NewPeople | People object that needs to be added (optional) 

            try
            {
                // Add a new people
                people result = apiInstance.addPeople(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PeopleApi.addPeople: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PeopleApi();
$body = ; // NewPeople | People object that needs to be added

try {
    $result = $api_instance->addPeople($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PeopleApi->addPeople: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PeopleApi;

my $api_instance = WWW::SwaggerClient::PeopleApi->new();
my $body = WWW::SwaggerClient::Object::NewPeople->new(); # NewPeople | People object that needs to be added

eval { 
    my $result = $api_instance->addPeople(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PeopleApi->addPeople: $@\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.PeopleApi()
body =  # NewPeople | People object that needs to be added (optional)

try: 
    # Add a new people
    api_response = api_instance.addPeople(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PeopleApi->addPeople: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - People object added

Status: 400 - People already exists

Status: 405 - Invalid input


deletePeople

Deletes a people

delete people by Id


/people/{peopleId}

Usage and SDK Samples

curl -X delete "http://127.0.0.1:8080/api/v1/people/{peopleId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PeopleApi;

import java.io.File;
import java.util.*;

public class PeopleApiExample {

    public static void main(String[] args) {
        
        PeopleApi apiInstance = new PeopleApi();
        Long peopleId = 789; // Long | People id to delete
        try {
            apiInstance.deletePeople(peopleId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#deletePeople");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PeopleApi;

public class PeopleApiExample {

    public static void main(String[] args) {
        PeopleApi apiInstance = new PeopleApi();
        Long peopleId = 789; // Long | People id to delete
        try {
            apiInstance.deletePeople(peopleId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#deletePeople");
            e.printStackTrace();
        }
    }
}
Long *peopleId = 789; // People id to delete

PeopleApi *apiInstance = [[PeopleApi alloc] init];

// Deletes a people
[apiInstance deletePeopleWith:peopleId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ManagementPeopleForAngular = require('management_people_for_angular');

var api = new ManagementPeopleForAngular.PeopleApi()

var peopleId = 789; // {Long} People id to delete


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePeople(peopleId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePeopleExample
    {
        public void main()
        {
            
            var apiInstance = new PeopleApi();
            var peopleId = 789;  // Long | People id to delete

            try
            {
                // Deletes a people
                apiInstance.deletePeople(peopleId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PeopleApi.deletePeople: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PeopleApi();
$peopleId = 789; // Long | People id to delete

try {
    $api_instance->deletePeople($peopleId);
} catch (Exception $e) {
    echo 'Exception when calling PeopleApi->deletePeople: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PeopleApi;

my $api_instance = WWW::SwaggerClient::PeopleApi->new();
my $peopleId = 789; # Long | People id to delete

eval { 
    $api_instance->deletePeople(peopleId => $peopleId);
};
if ($@) {
    warn "Exception when calling PeopleApi->deletePeople: $@\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.PeopleApi()
peopleId = 789 # Long | People id to delete

try: 
    # Deletes a people
    api_instance.deletePeople(peopleId)
except ApiException as e:
    print("Exception when calling PeopleApi->deletePeople: %s\n" % e)

Parameters

Path parameters
Name Description
peopleId*

Responses

Status: 200 - People object deleted

Status: 400 - Invalid people supplied

Status: 404 - People not found


getPeople

Find people by ID

Returns a people


/people/{peopleId}

Usage and SDK Samples

curl -X get "http://127.0.0.1:8080/api/v1/people/{peopleId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PeopleApi;

import java.io.File;
import java.util.*;

public class PeopleApiExample {

    public static void main(String[] args) {
        
        PeopleApi apiInstance = new PeopleApi();
        Long peopleId = 789; // Long | ID of people that needs to be fetched
        try {
            people result = apiInstance.getPeople(peopleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#getPeople");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PeopleApi;

public class PeopleApiExample {

    public static void main(String[] args) {
        PeopleApi apiInstance = new PeopleApi();
        Long peopleId = 789; // Long | ID of people that needs to be fetched
        try {
            people result = apiInstance.getPeople(peopleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#getPeople");
            e.printStackTrace();
        }
    }
}
Long *peopleId = 789; // ID of people that needs to be fetched

PeopleApi *apiInstance = [[PeopleApi alloc] init];

// Find people by ID
[apiInstance getPeopleWith:peopleId
              completionHandler: ^(people output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ManagementPeopleForAngular = require('management_people_for_angular');

var api = new ManagementPeopleForAngular.PeopleApi()

var peopleId = 789; // {Long} ID of people that needs to be fetched


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPeople(peopleId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPeopleExample
    {
        public void main()
        {
            
            var apiInstance = new PeopleApi();
            var peopleId = 789;  // Long | ID of people that needs to be fetched

            try
            {
                // Find people by ID
                people result = apiInstance.getPeople(peopleId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PeopleApi.getPeople: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PeopleApi();
$peopleId = 789; // Long | ID of people that needs to be fetched

try {
    $result = $api_instance->getPeople($peopleId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PeopleApi->getPeople: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PeopleApi;

my $api_instance = WWW::SwaggerClient::PeopleApi->new();
my $peopleId = 789; # Long | ID of people that needs to be fetched

eval { 
    my $result = $api_instance->getPeople(peopleId => $peopleId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PeopleApi->getPeople: $@\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.PeopleApi()
peopleId = 789 # Long | ID of people that needs to be fetched

try: 
    # Find people by ID
    api_response = api_instance.getPeople(peopleId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PeopleApi->getPeople: %s\n" % e)

Parameters

Path parameters
Name Description
peopleId*

Responses

Status: 200 - successful operation

Status: 400 - Invalid ID supplied

Status: 404 - people not found


getPeoples

list of people

Returns list of people


/people

Usage and SDK Samples

curl -X get "http://127.0.0.1:8080/api/v1/people?gender="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PeopleApi;

import java.io.File;
import java.util.*;

public class PeopleApiExample {

    public static void main(String[] args) {
        
        PeopleApi apiInstance = new PeopleApi();
        String gender = gender_example; // String | filter by gender
        try {
            array[people] result = apiInstance.getPeoples(gender);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#getPeoples");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PeopleApi;

public class PeopleApiExample {

    public static void main(String[] args) {
        PeopleApi apiInstance = new PeopleApi();
        String gender = gender_example; // String | filter by gender
        try {
            array[people] result = apiInstance.getPeoples(gender);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#getPeoples");
            e.printStackTrace();
        }
    }
}
String *gender = gender_example; // filter by gender (optional) (default to all)

PeopleApi *apiInstance = [[PeopleApi alloc] init];

// list of people
[apiInstance getPeoplesWith:gender
              completionHandler: ^(array[people] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ManagementPeopleForAngular = require('management_people_for_angular');

var api = new ManagementPeopleForAngular.PeopleApi()

var opts = { 
  'gender': gender_example // {String} filter by gender
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPeoples(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPeoplesExample
    {
        public void main()
        {
            
            var apiInstance = new PeopleApi();
            var gender = gender_example;  // String | filter by gender (optional)  (default to all)

            try
            {
                // list of people
                array[people] result = apiInstance.getPeoples(gender);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PeopleApi.getPeoples: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PeopleApi();
$gender = gender_example; // String | filter by gender

try {
    $result = $api_instance->getPeoples($gender);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PeopleApi->getPeoples: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PeopleApi;

my $api_instance = WWW::SwaggerClient::PeopleApi->new();
my $gender = gender_example; # String | filter by gender

eval { 
    my $result = $api_instance->getPeoples(gender => $gender);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PeopleApi->getPeoples: $@\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.PeopleApi()
gender = gender_example # String | filter by gender (optional) (default to all)

try: 
    # list of people
    api_response = api_instance.getPeoples(gender=gender)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PeopleApi->getPeoples: %s\n" % e)

Parameters

Query parameters
Name Description
gender

Responses

Status: 200 - List of people

Status: 400 - Invalid gender value


updatePeople

Updates a people with form data

update people by Id


/people/{peopleId}

Usage and SDK Samples

curl -X put "http://127.0.0.1:8080/api/v1/people/{peopleId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PeopleApi;

import java.io.File;
import java.util.*;

public class PeopleApiExample {

    public static void main(String[] args) {
        
        PeopleApi apiInstance = new PeopleApi();
        Long peopleId = 789; // Long | ID of people that needs to be updated
        People body = ; // People | People object that needs to be updated
        try {
            apiInstance.updatePeople(peopleId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#updatePeople");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PeopleApi;

public class PeopleApiExample {

    public static void main(String[] args) {
        PeopleApi apiInstance = new PeopleApi();
        Long peopleId = 789; // Long | ID of people that needs to be updated
        People body = ; // People | People object that needs to be updated
        try {
            apiInstance.updatePeople(peopleId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PeopleApi#updatePeople");
            e.printStackTrace();
        }
    }
}
Long *peopleId = 789; // ID of people that needs to be updated
People *body = ; // People object that needs to be updated

PeopleApi *apiInstance = [[PeopleApi alloc] init];

// Updates a people with form data
[apiInstance updatePeopleWith:peopleId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ManagementPeopleForAngular = require('management_people_for_angular');

var api = new ManagementPeopleForAngular.PeopleApi()

var peopleId = 789; // {Long} ID of people that needs to be updated

var body = ; // {People} People object that needs to be updated


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updatePeople(peopleId, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updatePeopleExample
    {
        public void main()
        {
            
            var apiInstance = new PeopleApi();
            var peopleId = 789;  // Long | ID of people that needs to be updated
            var body = new People(); // People | People object that needs to be updated

            try
            {
                // Updates a people with form data
                apiInstance.updatePeople(peopleId, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PeopleApi.updatePeople: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PeopleApi();
$peopleId = 789; // Long | ID of people that needs to be updated
$body = ; // People | People object that needs to be updated

try {
    $api_instance->updatePeople($peopleId, $body);
} catch (Exception $e) {
    echo 'Exception when calling PeopleApi->updatePeople: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PeopleApi;

my $api_instance = WWW::SwaggerClient::PeopleApi->new();
my $peopleId = 789; # Long | ID of people that needs to be updated
my $body = WWW::SwaggerClient::Object::People->new(); # People | People object that needs to be updated

eval { 
    $api_instance->updatePeople(peopleId => $peopleId, body => $body);
};
if ($@) {
    warn "Exception when calling PeopleApi->updatePeople: $@\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.PeopleApi()
peopleId = 789 # Long | ID of people that needs to be updated
body =  # People | People object that needs to be updated

try: 
    # Updates a people with form data
    api_instance.updatePeople(peopleId, body)
except ApiException as e:
    print("Exception when calling PeopleApi->updatePeople: %s\n" % e)

Parameters

Path parameters
Name Description
peopleId*
Body parameters
Name Description
body *

Responses

Status: 200 - People object updated

Status: 400 - Invalid people supplied

Status: 404 - People not found

Status: 405 - Invalid input


Generated 2017-04-05T13:02:26.691Z