Api de GLAP

Chat

chatMessageDeletePost

Retrieve & Delete

Searches the database according to the message ID, and deletes the message in question


/chat/MessageDelete

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/chat/MessageDelete?id_message="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

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

public class ChatApiExample {

    public static void main(String[] args) {
        
        ChatApi apiInstance = new ChatApi();
        String idMessage = idMessage_example; // String | ID of message
        try {
            apiInstance.chatMessageDeletePost(idMessage);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatMessageDeletePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        String idMessage = idMessage_example; // String | ID of message
        try {
            apiInstance.chatMessageDeletePost(idMessage);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatMessageDeletePost");
            e.printStackTrace();
        }
    }
}
String *idMessage = idMessage_example; // ID of message

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

// Retrieve & Delete
[apiInstance chatMessageDeletePostWith:idMessage
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ChatApi()

var idMessage = idMessage_example; // {String} ID of message


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

namespace Example
{
    public class chatMessageDeletePostExample
    {
        public void main()
        {
            
            var apiInstance = new ChatApi();
            var idMessage = idMessage_example;  // String | ID of message

            try
            {
                // Retrieve & Delete
                apiInstance.chatMessageDeletePost(idMessage);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.chatMessageDeletePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ChatApi();
$idMessage = idMessage_example; // String | ID of message

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

my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $idMessage = idMessage_example; # String | ID of message

eval { 
    $api_instance->chatMessageDeletePost(idMessage => $idMessage);
};
if ($@) {
    warn "Exception when calling ChatApi->chatMessageDeletePost: $@\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.ChatApi()
idMessage = idMessage_example # String | ID of message

try: 
    # Retrieve & Delete
    api_instance.chat_message_delete_post(idMessage)
except ApiException as e:
    print("Exception when calling ChatApi->chatMessageDeletePost: %s\n" % e)

Parameters

Query parameters
Name Description
id_message*
String
ID of message
Required

Responses

Status: 200 - Successful operation

Status: 401 - Message Create not return successfully


chatMessageListByIdPost

Retrieve & Read

Searches the database with the ID & Display the message


/chat/MessageListById

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/chat/MessageListById?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

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

public class ChatApiExample {

    public static void main(String[] args) {
        
        ChatApi apiInstance = new ChatApi();
        String id = id_example; // String | ID of Message
        try {
            apiInstance.chatMessageListByIdPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatMessageListByIdPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        String id = id_example; // String | ID of Message
        try {
            apiInstance.chatMessageListByIdPost(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatMessageListByIdPost");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of Message

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

// Retrieve & Read
[apiInstance chatMessageListByIdPostWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ChatApi()

var id = id_example; // {String} ID of Message


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

namespace Example
{
    public class chatMessageListByIdPostExample
    {
        public void main()
        {
            
            var apiInstance = new ChatApi();
            var id = id_example;  // String | ID of Message

            try
            {
                // Retrieve & Read
                apiInstance.chatMessageListByIdPost(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.chatMessageListByIdPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ChatApi();
$id = id_example; // String | ID of Message

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

my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $id = id_example; # String | ID of Message

eval { 
    $api_instance->chatMessageListByIdPost(id => $id);
};
if ($@) {
    warn "Exception when calling ChatApi->chatMessageListByIdPost: $@\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.ChatApi()
id = id_example # String | ID of Message

try: 
    # Retrieve & Read
    api_instance.chat_message_list_by_id_post(id)
except ApiException as e:
    print("Exception when calling ChatApi->chatMessageListByIdPost: %s\n" % e)

Parameters

Query parameters
Name Description
id*
String
ID of Message
Required

Responses

Status: 200 - Successful operation

Status: 401 - Message List ID not return successfully


chatMessageListPost

Retrieve & Read

Searches the database & Display all the message


/chat/MessageList

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/chat/MessageList"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

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

public class ChatApiExample {

    public static void main(String[] args) {
        
        ChatApi apiInstance = new ChatApi();
        try {
            apiInstance.chatMessageListPost();
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatMessageListPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        try {
            apiInstance.chatMessageListPost();
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatMessageListPost");
            e.printStackTrace();
        }
    }
}

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

// Retrieve & Read
[apiInstance chatMessageListPostWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ChatApi()

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

namespace Example
{
    public class chatMessageListPostExample
    {
        public void main()
        {
            
            var apiInstance = new ChatApi();

            try
            {
                // Retrieve & Read
                apiInstance.chatMessageListPost();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.chatMessageListPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ChatApi();

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

my $api_instance = WWW::SwaggerClient::ChatApi->new();

eval { 
    $api_instance->chatMessageListPost();
};
if ($@) {
    warn "Exception when calling ChatApi->chatMessageListPost: $@\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.ChatApi()

try: 
    # Retrieve & Read
    api_instance.chat_message_list_post()
except ApiException as e:
    print("Exception when calling ChatApi->chatMessageListPost: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation

Status: 401 - Message List not return successfully


chatPost

messaging system

interactive messaging system for our users


/chat

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/chat"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

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

public class ChatApiExample {

    public static void main(String[] args) {
        
        ChatApi apiInstance = new ChatApi();
        Messagerie body = ; // Messagerie | Open Front Chat
        try {
            apiInstance.chatPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        Messagerie body = ; // Messagerie | Open Front Chat
        try {
            apiInstance.chatPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#chatPost");
            e.printStackTrace();
        }
    }
}
Messagerie *body = ; // Open Front Chat

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

// messaging system
[apiInstance chatPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ChatApi()

var body = ; // {Messagerie} Open Front Chat


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

namespace Example
{
    public class chatPostExample
    {
        public void main()
        {
            
            var apiInstance = new ChatApi();
            var body = new Messagerie(); // Messagerie | Open Front Chat

            try
            {
                // messaging system
                apiInstance.chatPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.chatPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ChatApi();
$body = ; // Messagerie | Open Front Chat

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

my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $body = WWW::SwaggerClient::Object::Messagerie->new(); # Messagerie | Open Front Chat

eval { 
    $api_instance->chatPost(body => $body);
};
if ($@) {
    warn "Exception when calling ChatApi->chatPost: $@\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.ChatApi()
body =  # Messagerie | Open Front Chat

try: 
    # messaging system
    api_instance.chat_post(body)
except ApiException as e:
    print("Exception when calling ChatApi->chatPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


messageCreateInputs

Retrieve & Storage

Store in our database the message sent by the user via an input in the frontend


/chat/MessageCreate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/chat/MessageCreate?msg=&id_sender=&id_receiver="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

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

public class ChatApiExample {

    public static void main(String[] args) {
        
        ChatApi apiInstance = new ChatApi();
        String msg = msg_example; // String | Message of Users
        Integer idSender = 56; // Integer | ID of Sender
        Integer idReceiver = 56; // Integer | ID of Receiver
        try {
            apiInstance.messageCreateInputs(msg, idSender, idReceiver);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#messageCreateInputs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        String msg = msg_example; // String | Message of Users
        Integer idSender = 56; // Integer | ID of Sender
        Integer idReceiver = 56; // Integer | ID of Receiver
        try {
            apiInstance.messageCreateInputs(msg, idSender, idReceiver);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#messageCreateInputs");
            e.printStackTrace();
        }
    }
}
String *msg = msg_example; // Message of Users
Integer *idSender = 56; // ID of Sender
Integer *idReceiver = 56; // ID of Receiver

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

// Retrieve & Storage
[apiInstance messageCreateInputsWith:msg
    idSender:idSender
    idReceiver:idReceiver
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ChatApi()

var msg = msg_example; // {String} Message of Users

var idSender = 56; // {Integer} ID of Sender

var idReceiver = 56; // {Integer} ID of Receiver


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

namespace Example
{
    public class messageCreateInputsExample
    {
        public void main()
        {
            
            var apiInstance = new ChatApi();
            var msg = msg_example;  // String | Message of Users
            var idSender = 56;  // Integer | ID of Sender
            var idReceiver = 56;  // Integer | ID of Receiver

            try
            {
                // Retrieve & Storage
                apiInstance.messageCreateInputs(msg, idSender, idReceiver);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.messageCreateInputs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ChatApi();
$msg = msg_example; // String | Message of Users
$idSender = 56; // Integer | ID of Sender
$idReceiver = 56; // Integer | ID of Receiver

try {
    $api_instance->messageCreateInputs($msg, $idSender, $idReceiver);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->messageCreateInputs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;

my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $msg = msg_example; # String | Message of Users
my $idSender = 56; # Integer | ID of Sender
my $idReceiver = 56; # Integer | ID of Receiver

eval { 
    $api_instance->messageCreateInputs(msg => $msg, idSender => $idSender, idReceiver => $idReceiver);
};
if ($@) {
    warn "Exception when calling ChatApi->messageCreateInputs: $@\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.ChatApi()
msg = msg_example # String | Message of Users
idSender = 56 # Integer | ID of Sender
idReceiver = 56 # Integer | ID of Receiver

try: 
    # Retrieve & Storage
    api_instance.message_create_inputs(msg, idSender, idReceiver)
except ApiException as e:
    print("Exception when calling ChatApi->messageCreateInputs: %s\n" % e)

Parameters

Query parameters
Name Description
msg*
String
Message of Users
Required
id_sender*
Integer
ID of Sender
Required
id_receiver*
Integer
ID of Receiver
Required

Responses

Status: 200 - Successful operation

Status: 401 - Message Create not return successfully


messageUpdateInput

Retrieve & Update

Retrieves in the bdd the message according to the provided id, then updates the data


/chat/MessageUpdate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/chat/MessageUpdate?id=&msg=&id_sender=&id_receiver=&id_room=&date="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChatApi;

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

public class ChatApiExample {

    public static void main(String[] args) {
        
        ChatApi apiInstance = new ChatApi();
        String id = id_example; // String | ID of Message
        String msg = msg_example; // String | Message of Users
        Integer idSender = 56; // Integer | ID of Sender
        Integer idReceiver = 56; // Integer | ID of Receiver
        Integer idRoom = 56; // Integer | ID of Room
        String date = date_example; // String | Date & Hour of Message
        try {
            apiInstance.messageUpdateInput(id, msg, idSender, idReceiver, idRoom, date);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#messageUpdateInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChatApi;

public class ChatApiExample {

    public static void main(String[] args) {
        ChatApi apiInstance = new ChatApi();
        String id = id_example; // String | ID of Message
        String msg = msg_example; // String | Message of Users
        Integer idSender = 56; // Integer | ID of Sender
        Integer idReceiver = 56; // Integer | ID of Receiver
        Integer idRoom = 56; // Integer | ID of Room
        String date = date_example; // String | Date & Hour of Message
        try {
            apiInstance.messageUpdateInput(id, msg, idSender, idReceiver, idRoom, date);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChatApi#messageUpdateInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // ID of Message
String *msg = msg_example; // Message of Users
Integer *idSender = 56; // ID of Sender
Integer *idReceiver = 56; // ID of Receiver
Integer *idRoom = 56; // ID of Room
String *date = date_example; // Date & Hour of Message

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

// Retrieve & Update
[apiInstance messageUpdateInputWith:id
    msg:msg
    idSender:idSender
    idReceiver:idReceiver
    idRoom:idRoom
    date:date
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ChatApi()

var id = id_example; // {String} ID of Message

var msg = msg_example; // {String} Message of Users

var idSender = 56; // {Integer} ID of Sender

var idReceiver = 56; // {Integer} ID of Receiver

var idRoom = 56; // {Integer} ID of Room

var date = date_example; // {String} Date & Hour of Message


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.messageUpdateInput(id, msg, idSender, idReceiver, idRoom, date, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class messageUpdateInputExample
    {
        public void main()
        {
            
            var apiInstance = new ChatApi();
            var id = id_example;  // String | ID of Message
            var msg = msg_example;  // String | Message of Users
            var idSender = 56;  // Integer | ID of Sender
            var idReceiver = 56;  // Integer | ID of Receiver
            var idRoom = 56;  // Integer | ID of Room
            var date = date_example;  // String | Date & Hour of Message

            try
            {
                // Retrieve & Update
                apiInstance.messageUpdateInput(id, msg, idSender, idReceiver, idRoom, date);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChatApi.messageUpdateInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ChatApi();
$id = id_example; // String | ID of Message
$msg = msg_example; // String | Message of Users
$idSender = 56; // Integer | ID of Sender
$idReceiver = 56; // Integer | ID of Receiver
$idRoom = 56; // Integer | ID of Room
$date = date_example; // String | Date & Hour of Message

try {
    $api_instance->messageUpdateInput($id, $msg, $idSender, $idReceiver, $idRoom, $date);
} catch (Exception $e) {
    echo 'Exception when calling ChatApi->messageUpdateInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChatApi;

my $api_instance = WWW::SwaggerClient::ChatApi->new();
my $id = id_example; # String | ID of Message
my $msg = msg_example; # String | Message of Users
my $idSender = 56; # Integer | ID of Sender
my $idReceiver = 56; # Integer | ID of Receiver
my $idRoom = 56; # Integer | ID of Room
my $date = date_example; # String | Date & Hour of Message

eval { 
    $api_instance->messageUpdateInput(id => $id, msg => $msg, idSender => $idSender, idReceiver => $idReceiver, idRoom => $idRoom, date => $date);
};
if ($@) {
    warn "Exception when calling ChatApi->messageUpdateInput: $@\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.ChatApi()
id = id_example # String | ID of Message
msg = msg_example # String | Message of Users
idSender = 56 # Integer | ID of Sender
idReceiver = 56 # Integer | ID of Receiver
idRoom = 56 # Integer | ID of Room
date = date_example # String | Date & Hour of Message

try: 
    # Retrieve & Update
    api_instance.message_update_input(id, msg, idSender, idReceiver, idRoom, date)
except ApiException as e:
    print("Exception when calling ChatApi->messageUpdateInput: %s\n" % e)

Parameters

Query parameters
Name Description
id*
String
ID of Message
Required
msg*
String
Message of Users
Required
id_sender*
Integer
ID of Sender
Required
id_receiver*
Integer
ID of Receiver
Required
id_room*
Integer
ID of Room
Required
date*
String
Date & Hour of Message
Required

Responses

Status: 200 - Successful operation

Status: 401 - Message Create not return successfully


Doctor

doctorCreate

add doctor


/doctor/doctorCreate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/doctor/doctorCreate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DoctorApi;

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

public class DoctorApiExample {

    public static void main(String[] args) {
        
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | add doctor
        try {
            apiInstance.doctorCreate(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorCreate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DoctorApi;

public class DoctorApiExample {

    public static void main(String[] args) {
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | add doctor
        try {
            apiInstance.doctorCreate(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorCreate");
            e.printStackTrace();
        }
    }
}
array[doctor] *body = ; // add doctor

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

// add doctor
[apiInstance doctorCreateWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.DoctorApi()

var body = ; // {array[doctor]} add doctor


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

namespace Example
{
    public class doctorCreateExample
    {
        public void main()
        {
            
            var apiInstance = new DoctorApi();
            var body = new array[doctor](); // array[doctor] | add doctor

            try
            {
                // add doctor
                apiInstance.doctorCreate(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DoctorApi.doctorCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DoctorApi();
$body = ; // array[doctor] | add doctor

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

my $api_instance = WWW::SwaggerClient::DoctorApi->new();
my $body = [WWW::SwaggerClient::Object::array[doctor]->new()]; # array[doctor] | add doctor

eval { 
    $api_instance->doctorCreate(body => $body);
};
if ($@) {
    warn "Exception when calling DoctorApi->doctorCreate: $@\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.DoctorApi()
body =  # array[doctor] | add doctor

try: 
    # add doctor
    api_instance.doctor_create(body)
except ApiException as e:
    print("Exception when calling DoctorApi->doctorCreate: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


doctorDelete

add doctor


/doctor/docteurDelete

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/doctor/docteurDelete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DoctorApi;

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

public class DoctorApiExample {

    public static void main(String[] args) {
        
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | delete doctor
        try {
            apiInstance.doctorDelete(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DoctorApi;

public class DoctorApiExample {

    public static void main(String[] args) {
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | delete doctor
        try {
            apiInstance.doctorDelete(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorDelete");
            e.printStackTrace();
        }
    }
}
array[doctor] *body = ; // delete doctor

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

// add doctor
[apiInstance doctorDeleteWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.DoctorApi()

var body = ; // {array[doctor]} delete doctor


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

namespace Example
{
    public class doctorDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new DoctorApi();
            var body = new array[doctor](); // array[doctor] | delete doctor

            try
            {
                // add doctor
                apiInstance.doctorDelete(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DoctorApi.doctorDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DoctorApi();
$body = ; // array[doctor] | delete doctor

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

my $api_instance = WWW::SwaggerClient::DoctorApi->new();
my $body = [WWW::SwaggerClient::Object::array[doctor]->new()]; # array[doctor] | delete doctor

eval { 
    $api_instance->doctorDelete(body => $body);
};
if ($@) {
    warn "Exception when calling DoctorApi->doctorDelete: $@\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.DoctorApi()
body =  # array[doctor] | delete doctor

try: 
    # add doctor
    api_instance.doctor_delete(body)
except ApiException as e:
    print("Exception when calling DoctorApi->doctorDelete: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


doctorUpdate

update doctor


/doctor/docteurUpdate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/doctor/docteurUpdate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DoctorApi;

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

public class DoctorApiExample {

    public static void main(String[] args) {
        
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | list doctor
        try {
            apiInstance.doctorUpdate(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorUpdate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DoctorApi;

public class DoctorApiExample {

    public static void main(String[] args) {
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | list doctor
        try {
            apiInstance.doctorUpdate(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorUpdate");
            e.printStackTrace();
        }
    }
}
array[doctor] *body = ; // list doctor

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

// update doctor
[apiInstance doctorUpdateWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.DoctorApi()

var body = ; // {array[doctor]} list doctor


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

namespace Example
{
    public class doctorUpdateExample
    {
        public void main()
        {
            
            var apiInstance = new DoctorApi();
            var body = new array[doctor](); // array[doctor] | list doctor

            try
            {
                // update doctor
                apiInstance.doctorUpdate(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DoctorApi.doctorUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DoctorApi();
$body = ; // array[doctor] | list doctor

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

my $api_instance = WWW::SwaggerClient::DoctorApi->new();
my $body = [WWW::SwaggerClient::Object::array[doctor]->new()]; # array[doctor] | list doctor

eval { 
    $api_instance->doctorUpdate(body => $body);
};
if ($@) {
    warn "Exception when calling DoctorApi->doctorUpdate: $@\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.DoctorApi()
body =  # array[doctor] | list doctor

try: 
    # update doctor
    api_instance.doctor_update(body)
except ApiException as e:
    print("Exception when calling DoctorApi->doctorUpdate: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


doctorlList

list doctor


/doctor/doctorList

Usage and SDK Samples

curl -X GET "https://glap.fr/api/v1/doctor/doctorList"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DoctorApi;

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

public class DoctorApiExample {

    public static void main(String[] args) {
        
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | list doctor
        try {
            apiInstance.doctorlList(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorlList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DoctorApi;

public class DoctorApiExample {

    public static void main(String[] args) {
        DoctorApi apiInstance = new DoctorApi();
        array[doctor] body = ; // array[doctor] | list doctor
        try {
            apiInstance.doctorlList(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DoctorApi#doctorlList");
            e.printStackTrace();
        }
    }
}
array[doctor] *body = ; // list doctor

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

// list doctor
[apiInstance doctorlListWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.DoctorApi()

var body = ; // {array[doctor]} list doctor


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

namespace Example
{
    public class doctorlListExample
    {
        public void main()
        {
            
            var apiInstance = new DoctorApi();
            var body = new array[doctor](); // array[doctor] | list doctor

            try
            {
                // list doctor
                apiInstance.doctorlList(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DoctorApi.doctorlList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DoctorApi();
$body = ; // array[doctor] | list doctor

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

my $api_instance = WWW::SwaggerClient::DoctorApi->new();
my $body = [WWW::SwaggerClient::Object::array[doctor]->new()]; # array[doctor] | list doctor

eval { 
    $api_instance->doctorlList(body => $body);
};
if ($@) {
    warn "Exception when calling DoctorApi->doctorlList: $@\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.DoctorApi()
body =  # array[doctor] | list doctor

try: 
    # list doctor
    api_instance.doctorl_list(body)
except ApiException as e:
    print("Exception when calling DoctorApi->doctorlList: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


Hospital

hospitalHospitalListPost

Retrieve & Read

Searches the database & Display all the hospital register in our db


/hospital/hospitalList

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/hospital/hospitalList"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HospitalApi;

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

public class HospitalApiExample {

    public static void main(String[] args) {
        
        HospitalApi apiInstance = new HospitalApi();
        try {
            apiInstance.hospitalHospitalListPost();
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#hospitalHospitalListPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HospitalApi;

public class HospitalApiExample {

    public static void main(String[] args) {
        HospitalApi apiInstance = new HospitalApi();
        try {
            apiInstance.hospitalHospitalListPost();
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#hospitalHospitalListPost");
            e.printStackTrace();
        }
    }
}

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

// Retrieve & Read
[apiInstance hospitalHospitalListPostWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.HospitalApi()

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

namespace Example
{
    public class hospitalHospitalListPostExample
    {
        public void main()
        {
            
            var apiInstance = new HospitalApi();

            try
            {
                // Retrieve & Read
                apiInstance.hospitalHospitalListPost();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HospitalApi.hospitalHospitalListPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\HospitalApi();

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

my $api_instance = WWW::SwaggerClient::HospitalApi->new();

eval { 
    $api_instance->hospitalHospitalListPost();
};
if ($@) {
    warn "Exception when calling HospitalApi->hospitalHospitalListPost: $@\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.HospitalApi()

try: 
    # Retrieve & Read
    api_instance.hospital_hospital_list_post()
except ApiException as e:
    print("Exception when calling HospitalApi->hospitalHospitalListPost: %s\n" % e)

Parameters

Responses

Status: 200 - Successful operation / Return Json with data

Status: 401 - glap Hospital list not return successfully


hospitalPost

hospital information

All the data from our hospital partner


/hospital

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/hospital"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HospitalApi;

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

public class HospitalApiExample {

    public static void main(String[] args) {
        
        HospitalApi apiInstance = new HospitalApi();
        Hospital body = ; // Hospital | Hospital register
        try {
            apiInstance.hospitalPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#hospitalPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HospitalApi;

public class HospitalApiExample {

    public static void main(String[] args) {
        HospitalApi apiInstance = new HospitalApi();
        Hospital body = ; // Hospital | Hospital register
        try {
            apiInstance.hospitalPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#hospitalPost");
            e.printStackTrace();
        }
    }
}
Hospital *body = ; // Hospital register

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

// hospital information
[apiInstance hospitalPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.HospitalApi()

var body = ; // {Hospital} Hospital register


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

namespace Example
{
    public class hospitalPostExample
    {
        public void main()
        {
            
            var apiInstance = new HospitalApi();
            var body = new Hospital(); // Hospital | Hospital register

            try
            {
                // hospital information
                apiInstance.hospitalPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HospitalApi.hospitalPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\HospitalApi();
$body = ; // Hospital | Hospital register

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

my $api_instance = WWW::SwaggerClient::HospitalApi->new();
my $body = WWW::SwaggerClient::Object::Hospital->new(); # Hospital | Hospital register

eval { 
    $api_instance->hospitalPost(body => $body);
};
if ($@) {
    warn "Exception when calling HospitalApi->hospitalPost: $@\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.HospitalApi()
body =  # Hospital | Hospital register

try: 
    # hospital information
    api_instance.hospital_post(body)
except ApiException as e:
    print("Exception when calling HospitalApi->hospitalPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


messageCreateInput

Retrieve & Storage

Store in our database the data of the hospital partner


/service/serviceAdd

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/service/serviceAdd?_id=&Nom=&Type=&Service_NometEtage=&nb_chambre="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HospitalApi;

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

public class HospitalApiExample {

    public static void main(String[] args) {
        
        HospitalApi apiInstance = new HospitalApi();
        String id = id_example; // String | Id of the service
        String nom = nom_example; // String | name of the service
        String type = type_example; // String | type of the service
        String serviceNometEtage = serviceNometEtage_example; // String | flore of the service
        String nbChambre = nbChambre_example; // String | number of room in the service
        try {
            apiInstance.messageCreateInput(id, nom, type, serviceNometEtage, nbChambre);
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#messageCreateInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HospitalApi;

public class HospitalApiExample {

    public static void main(String[] args) {
        HospitalApi apiInstance = new HospitalApi();
        String id = id_example; // String | Id of the service
        String nom = nom_example; // String | name of the service
        String type = type_example; // String | type of the service
        String serviceNometEtage = serviceNometEtage_example; // String | flore of the service
        String nbChambre = nbChambre_example; // String | number of room in the service
        try {
            apiInstance.messageCreateInput(id, nom, type, serviceNometEtage, nbChambre);
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#messageCreateInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id of the service (optional) (default to true)
String *nom = nom_example; // name of the service (optional) (default to true)
String *type = type_example; // type of the service (optional) (default to true)
String *serviceNometEtage = serviceNometEtage_example; // flore of the service (optional) (default to true)
String *nbChambre = nbChambre_example; // number of room in the service (optional) (default to true)

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

// Retrieve & Storage
[apiInstance messageCreateInputWith:id
    nom:nom
    type:type
    serviceNometEtage:serviceNometEtage
    nbChambre:nbChambre
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.HospitalApi()

var opts = { 
  'id': id_example, // {String} Id of the service
  'nom': nom_example, // {String} name of the service
  'type': type_example, // {String} type of the service
  'serviceNometEtage': serviceNometEtage_example, // {String} flore of the service
  'nbChambre': nbChambre_example // {String} number of room in the service
};

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

namespace Example
{
    public class messageCreateInputExample
    {
        public void main()
        {
            
            var apiInstance = new HospitalApi();
            var id = id_example;  // String | Id of the service (optional)  (default to true)
            var nom = nom_example;  // String | name of the service (optional)  (default to true)
            var type = type_example;  // String | type of the service (optional)  (default to true)
            var serviceNometEtage = serviceNometEtage_example;  // String | flore of the service (optional)  (default to true)
            var nbChambre = nbChambre_example;  // String | number of room in the service (optional)  (default to true)

            try
            {
                // Retrieve & Storage
                apiInstance.messageCreateInput(id, nom, type, serviceNometEtage, nbChambre);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HospitalApi.messageCreateInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\HospitalApi();
$id = id_example; // String | Id of the service
$nom = nom_example; // String | name of the service
$type = type_example; // String | type of the service
$serviceNometEtage = serviceNometEtage_example; // String | flore of the service
$nbChambre = nbChambre_example; // String | number of room in the service

try {
    $api_instance->messageCreateInput($id, $nom, $type, $serviceNometEtage, $nbChambre);
} catch (Exception $e) {
    echo 'Exception when calling HospitalApi->messageCreateInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HospitalApi;

my $api_instance = WWW::SwaggerClient::HospitalApi->new();
my $id = id_example; # String | Id of the service
my $nom = nom_example; # String | name of the service
my $type = type_example; # String | type of the service
my $serviceNometEtage = serviceNometEtage_example; # String | flore of the service
my $nbChambre = nbChambre_example; # String | number of room in the service

eval { 
    $api_instance->messageCreateInput(id => $id, nom => $nom, type => $type, serviceNometEtage => $serviceNometEtage, nbChambre => $nbChambre);
};
if ($@) {
    warn "Exception when calling HospitalApi->messageCreateInput: $@\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.HospitalApi()
id = id_example # String | Id of the service (optional) (default to true)
nom = nom_example # String | name of the service (optional) (default to true)
type = type_example # String | type of the service (optional) (default to true)
serviceNometEtage = serviceNometEtage_example # String | flore of the service (optional) (default to true)
nbChambre = nbChambre_example # String | number of room in the service (optional) (default to true)

try: 
    # Retrieve & Storage
    api_instance.message_create_input(id=id, nom=nom, type=type, serviceNometEtage=serviceNometEtage, nbChambre=nbChambre)
except ApiException as e:
    print("Exception when calling HospitalApi->messageCreateInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id
String
Id of the service
Nom
String
name of the service
Type
String
type of the service
Service_NometEtage
String
flore of the service
nb_chambre
String
number of room in the service

Responses

Status: 200 - Return Json data

Status: 401 - glap Service not add successfully


retrievedata

Retrieve & Storage

Store in our database the data of the hospital partner


/hospital/hospitalCreate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/hospital/hospitalCreate?_id=&Name=&Type=&Latitude=&Longitude=&address=&City=&State=&Country=&Phone=&Partner=&Free_Space=&Men=&Women=&Single=&Double=&Contagious=&Minor=&Violent="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.HospitalApi;

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

public class HospitalApiExample {

    public static void main(String[] args) {
        
        HospitalApi apiInstance = new HospitalApi();
        String id = id_example; // String | id hospital
        String name = name_example; // String | name of the hospital
        String type = type_example; // String | type of the hospital
        String latitude = latitude_example; // String | Latitude of the hospital
        String longitude = longitude_example; // String | Longitude of the hospital
        String address = address_example; // String | address of the hospital
        String city = city_example; // String | city of the hospital
        String state = state_example; // String | state of the hospital
        String country = country_example; // String | Country of the hospital
        String phone = phone_example; // String | Phone number of the hospital
        String partner = partner_example; // String | Partner of the hospital
        String freeSpace = freeSpace_example; // String | Free Space in the hospital
        String men = men_example; // String | Men in the hospital
        String women = women_example; // String | Women in the hospital
        String single = single_example; // String | State about the number
        String double = double_example; // String | State about the number
        String contagious = contagious_example; // String | State about the contagious
        String minor = minor_example; // String | State about the age
        String violent = violent_example; // String | State about the injure
        try {
            apiInstance.retrievedata(id, name, type, latitude, longitude, address, city, state, country, phone, partner, freeSpace, men, women, single, double, contagious, minor, violent);
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#retrievedata");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.HospitalApi;

public class HospitalApiExample {

    public static void main(String[] args) {
        HospitalApi apiInstance = new HospitalApi();
        String id = id_example; // String | id hospital
        String name = name_example; // String | name of the hospital
        String type = type_example; // String | type of the hospital
        String latitude = latitude_example; // String | Latitude of the hospital
        String longitude = longitude_example; // String | Longitude of the hospital
        String address = address_example; // String | address of the hospital
        String city = city_example; // String | city of the hospital
        String state = state_example; // String | state of the hospital
        String country = country_example; // String | Country of the hospital
        String phone = phone_example; // String | Phone number of the hospital
        String partner = partner_example; // String | Partner of the hospital
        String freeSpace = freeSpace_example; // String | Free Space in the hospital
        String men = men_example; // String | Men in the hospital
        String women = women_example; // String | Women in the hospital
        String single = single_example; // String | State about the number
        String double = double_example; // String | State about the number
        String contagious = contagious_example; // String | State about the contagious
        String minor = minor_example; // String | State about the age
        String violent = violent_example; // String | State about the injure
        try {
            apiInstance.retrievedata(id, name, type, latitude, longitude, address, city, state, country, phone, partner, freeSpace, men, women, single, double, contagious, minor, violent);
        } catch (ApiException e) {
            System.err.println("Exception when calling HospitalApi#retrievedata");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id hospital (optional) (default to true)
String *name = name_example; // name of the hospital (optional) (default to true)
String *type = type_example; // type of the hospital (optional) (default to true)
String *latitude = latitude_example; // Latitude of the hospital (optional) (default to true)
String *longitude = longitude_example; // Longitude of the hospital (optional) (default to true)
String *address = address_example; // address of the hospital (optional) (default to true)
String *city = city_example; // city of the hospital (optional) (default to true)
String *state = state_example; // state of the hospital (optional) (default to true)
String *country = country_example; // Country of the hospital (optional) (default to true)
String *phone = phone_example; // Phone number of the hospital (optional) (default to true)
String *partner = partner_example; // Partner of the hospital (optional) (default to true)
String *freeSpace = freeSpace_example; // Free Space in the hospital (optional) (default to true)
String *men = men_example; // Men in the hospital (optional) (default to true)
String *women = women_example; // Women in the hospital (optional) (default to true)
String *single = single_example; // State about the number (optional) (default to true)
String *double = double_example; // State about the number (optional) (default to true)
String *contagious = contagious_example; // State about the contagious (optional) (default to true)
String *minor = minor_example; // State about the age (optional) (default to true)
String *violent = violent_example; // State about the injure (optional) (default to true)

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

// Retrieve & Storage
[apiInstance retrievedataWith:id
    name:name
    type:type
    latitude:latitude
    longitude:longitude
    address:address
    city:city
    state:state
    country:country
    phone:phone
    partner:partner
    freeSpace:freeSpace
    men:men
    women:women
    single:single
    double:double
    contagious:contagious
    minor:minor
    violent:violent
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.HospitalApi()

var opts = { 
  'id': id_example, // {String} id hospital
  'name': name_example, // {String} name of the hospital
  'type': type_example, // {String} type of the hospital
  'latitude': latitude_example, // {String} Latitude of the hospital
  'longitude': longitude_example, // {String} Longitude of the hospital
  'address': address_example, // {String} address of the hospital
  'city': city_example, // {String} city of the hospital
  'state': state_example, // {String} state of the hospital
  'country': country_example, // {String} Country of the hospital
  'phone': phone_example, // {String} Phone number of the hospital
  'partner': partner_example, // {String} Partner of the hospital
  'freeSpace': freeSpace_example, // {String} Free Space in the hospital
  'men': men_example, // {String} Men in the hospital
  'women': women_example, // {String} Women in the hospital
  'single': single_example, // {String} State about the number
  'double': double_example, // {String} State about the number
  'contagious': contagious_example, // {String} State about the contagious
  'minor': minor_example, // {String} State about the age
  'violent': violent_example // {String} State about the injure
};

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

namespace Example
{
    public class retrievedataExample
    {
        public void main()
        {
            
            var apiInstance = new HospitalApi();
            var id = id_example;  // String | id hospital (optional)  (default to true)
            var name = name_example;  // String | name of the hospital (optional)  (default to true)
            var type = type_example;  // String | type of the hospital (optional)  (default to true)
            var latitude = latitude_example;  // String | Latitude of the hospital (optional)  (default to true)
            var longitude = longitude_example;  // String | Longitude of the hospital (optional)  (default to true)
            var address = address_example;  // String | address of the hospital (optional)  (default to true)
            var city = city_example;  // String | city of the hospital (optional)  (default to true)
            var state = state_example;  // String | state of the hospital (optional)  (default to true)
            var country = country_example;  // String | Country of the hospital (optional)  (default to true)
            var phone = phone_example;  // String | Phone number of the hospital (optional)  (default to true)
            var partner = partner_example;  // String | Partner of the hospital (optional)  (default to true)
            var freeSpace = freeSpace_example;  // String | Free Space in the hospital (optional)  (default to true)
            var men = men_example;  // String | Men in the hospital (optional)  (default to true)
            var women = women_example;  // String | Women in the hospital (optional)  (default to true)
            var single = single_example;  // String | State about the number (optional)  (default to true)
            var double = double_example;  // String | State about the number (optional)  (default to true)
            var contagious = contagious_example;  // String | State about the contagious (optional)  (default to true)
            var minor = minor_example;  // String | State about the age (optional)  (default to true)
            var violent = violent_example;  // String | State about the injure (optional)  (default to true)

            try
            {
                // Retrieve & Storage
                apiInstance.retrievedata(id, name, type, latitude, longitude, address, city, state, country, phone, partner, freeSpace, men, women, single, double, contagious, minor, violent);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling HospitalApi.retrievedata: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\HospitalApi();
$id = id_example; // String | id hospital
$name = name_example; // String | name of the hospital
$type = type_example; // String | type of the hospital
$latitude = latitude_example; // String | Latitude of the hospital
$longitude = longitude_example; // String | Longitude of the hospital
$address = address_example; // String | address of the hospital
$city = city_example; // String | city of the hospital
$state = state_example; // String | state of the hospital
$country = country_example; // String | Country of the hospital
$phone = phone_example; // String | Phone number of the hospital
$partner = partner_example; // String | Partner of the hospital
$freeSpace = freeSpace_example; // String | Free Space in the hospital
$men = men_example; // String | Men in the hospital
$women = women_example; // String | Women in the hospital
$single = single_example; // String | State about the number
$double = double_example; // String | State about the number
$contagious = contagious_example; // String | State about the contagious
$minor = minor_example; // String | State about the age
$violent = violent_example; // String | State about the injure

try {
    $api_instance->retrievedata($id, $name, $type, $latitude, $longitude, $address, $city, $state, $country, $phone, $partner, $freeSpace, $men, $women, $single, $double, $contagious, $minor, $violent);
} catch (Exception $e) {
    echo 'Exception when calling HospitalApi->retrievedata: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::HospitalApi;

my $api_instance = WWW::SwaggerClient::HospitalApi->new();
my $id = id_example; # String | id hospital
my $name = name_example; # String | name of the hospital
my $type = type_example; # String | type of the hospital
my $latitude = latitude_example; # String | Latitude of the hospital
my $longitude = longitude_example; # String | Longitude of the hospital
my $address = address_example; # String | address of the hospital
my $city = city_example; # String | city of the hospital
my $state = state_example; # String | state of the hospital
my $country = country_example; # String | Country of the hospital
my $phone = phone_example; # String | Phone number of the hospital
my $partner = partner_example; # String | Partner of the hospital
my $freeSpace = freeSpace_example; # String | Free Space in the hospital
my $men = men_example; # String | Men in the hospital
my $women = women_example; # String | Women in the hospital
my $single = single_example; # String | State about the number
my $double = double_example; # String | State about the number
my $contagious = contagious_example; # String | State about the contagious
my $minor = minor_example; # String | State about the age
my $violent = violent_example; # String | State about the injure

eval { 
    $api_instance->retrievedata(id => $id, name => $name, type => $type, latitude => $latitude, longitude => $longitude, address => $address, city => $city, state => $state, country => $country, phone => $phone, partner => $partner, freeSpace => $freeSpace, men => $men, women => $women, single => $single, double => $double, contagious => $contagious, minor => $minor, violent => $violent);
};
if ($@) {
    warn "Exception when calling HospitalApi->retrievedata: $@\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.HospitalApi()
id = id_example # String | id hospital (optional) (default to true)
name = name_example # String | name of the hospital (optional) (default to true)
type = type_example # String | type of the hospital (optional) (default to true)
latitude = latitude_example # String | Latitude of the hospital (optional) (default to true)
longitude = longitude_example # String | Longitude of the hospital (optional) (default to true)
address = address_example # String | address of the hospital (optional) (default to true)
city = city_example # String | city of the hospital (optional) (default to true)
state = state_example # String | state of the hospital (optional) (default to true)
country = country_example # String | Country of the hospital (optional) (default to true)
phone = phone_example # String | Phone number of the hospital (optional) (default to true)
partner = partner_example # String | Partner of the hospital (optional) (default to true)
freeSpace = freeSpace_example # String | Free Space in the hospital (optional) (default to true)
men = men_example # String | Men in the hospital (optional) (default to true)
women = women_example # String | Women in the hospital (optional) (default to true)
single = single_example # String | State about the number (optional) (default to true)
double = double_example # String | State about the number (optional) (default to true)
contagious = contagious_example # String | State about the contagious (optional) (default to true)
minor = minor_example # String | State about the age (optional) (default to true)
violent = violent_example # String | State about the injure (optional) (default to true)

try: 
    # Retrieve & Storage
    api_instance.retrievedata(id=id, name=name, type=type, latitude=latitude, longitude=longitude, address=address, city=city, state=state, country=country, phone=phone, partner=partner, freeSpace=freeSpace, men=men, women=women, single=single, double=double, contagious=contagious, minor=minor, violent=violent)
except ApiException as e:
    print("Exception when calling HospitalApi->retrievedata: %s\n" % e)

Parameters

Query parameters
Name Description
_id
String
id hospital
Name
String
name of the hospital
Type
String
type of the hospital
Latitude
String
Latitude of the hospital
Longitude
String
Longitude of the hospital
address
String
address of the hospital
City
String
city of the hospital
State
String
state of the hospital
Country
String
Country of the hospital
Phone
String
Phone number of the hospital
Partner
String
Partner of the hospital
Free_Space
String
Free Space in the hospital
Men
String
Men in the hospital
Women
String
Women in the hospital
Single
String
State about the number
Double
String
State about the number
Contagious
String
State about the contagious
Minor
String
State about the age
Violent
String
State about the injure

Responses

Status: 200 - Return Json data

Status: 401 - glap Hospital Create not return successfully


Lits

createNewBed

Add a new bed


/beds/litAdd

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/beds/litAdd"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LitsApi;

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

public class LitsApiExample {

    public static void main(String[] args) {
        
        LitsApi apiInstance = new LitsApi();
        array[lits] body = ; // array[lits] | List of user object
        try {
            apiInstance.createNewBed(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LitsApi#createNewBed");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LitsApi;

public class LitsApiExample {

    public static void main(String[] args) {
        LitsApi apiInstance = new LitsApi();
        array[lits] body = ; // array[lits] | List of user object
        try {
            apiInstance.createNewBed(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LitsApi#createNewBed");
            e.printStackTrace();
        }
    }
}
array[lits] *body = ; // List of user object

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

// Add a new bed
[apiInstance createNewBedWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.LitsApi()

var body = ; // {array[lits]} List of user object


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

namespace Example
{
    public class createNewBedExample
    {
        public void main()
        {
            
            var apiInstance = new LitsApi();
            var body = new array[lits](); // array[lits] | List of user object

            try
            {
                // Add a new bed
                apiInstance.createNewBed(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LitsApi.createNewBed: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LitsApi();
$body = ; // array[lits] | List of user object

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

my $api_instance = WWW::SwaggerClient::LitsApi->new();
my $body = [WWW::SwaggerClient::Object::array[lits]->new()]; # array[lits] | List of user object

eval { 
    $api_instance->createNewBed(body => $body);
};
if ($@) {
    warn "Exception when calling LitsApi->createNewBed: $@\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.LitsApi()
body =  # array[lits] | List of user object

try: 
    # Add a new bed
    api_instance.create_new_bed(body)
except ApiException as e:
    print("Exception when calling LitsApi->createNewBed: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


deletebed

Delete a bed


/beds/litDell

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/beds/litDell"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LitsApi;

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

public class LitsApiExample {

    public static void main(String[] args) {
        
        LitsApi apiInstance = new LitsApi();
        array[lits] body = ; // array[lits] | List of user object
        try {
            apiInstance.deletebed(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LitsApi#deletebed");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LitsApi;

public class LitsApiExample {

    public static void main(String[] args) {
        LitsApi apiInstance = new LitsApi();
        array[lits] body = ; // array[lits] | List of user object
        try {
            apiInstance.deletebed(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LitsApi#deletebed");
            e.printStackTrace();
        }
    }
}
array[lits] *body = ; // List of user object

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

// Delete a bed
[apiInstance deletebedWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.LitsApi()

var body = ; // {array[lits]} List of user object


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

namespace Example
{
    public class deletebedExample
    {
        public void main()
        {
            
            var apiInstance = new LitsApi();
            var body = new array[lits](); // array[lits] | List of user object

            try
            {
                // Delete a bed
                apiInstance.deletebed(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LitsApi.deletebed: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LitsApi();
$body = ; // array[lits] | List of user object

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

my $api_instance = WWW::SwaggerClient::LitsApi->new();
my $body = [WWW::SwaggerClient::Object::array[lits]->new()]; # array[lits] | List of user object

eval { 
    $api_instance->deletebed(body => $body);
};
if ($@) {
    warn "Exception when calling LitsApi->deletebed: $@\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.LitsApi()
body =  # array[lits] | List of user object

try: 
    # Delete a bed
    api_instance.deletebed(body)
except ApiException as e:
    print("Exception when calling LitsApi->deletebed: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


returnBedList

Return a list of beds


/beds/lit

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/beds/lit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LitsApi;

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

public class LitsApiExample {

    public static void main(String[] args) {
        
        LitsApi apiInstance = new LitsApi();
        array[lits] body = ; // array[lits] | List of user object
        try {
            apiInstance.returnBedList(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LitsApi#returnBedList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LitsApi;

public class LitsApiExample {

    public static void main(String[] args) {
        LitsApi apiInstance = new LitsApi();
        array[lits] body = ; // array[lits] | List of user object
        try {
            apiInstance.returnBedList(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LitsApi#returnBedList");
            e.printStackTrace();
        }
    }
}
array[lits] *body = ; // List of user object

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

// Return a list of beds
[apiInstance returnBedListWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.LitsApi()

var body = ; // {array[lits]} List of user object


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

namespace Example
{
    public class returnBedListExample
    {
        public void main()
        {
            
            var apiInstance = new LitsApi();
            var body = new array[lits](); // array[lits] | List of user object

            try
            {
                // Return a list of beds
                apiInstance.returnBedList(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LitsApi.returnBedList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LitsApi();
$body = ; // array[lits] | List of user object

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

my $api_instance = WWW::SwaggerClient::LitsApi->new();
my $body = [WWW::SwaggerClient::Object::array[lits]->new()]; # array[lits] | List of user object

eval { 
    $api_instance->returnBedList(body => $body);
};
if ($@) {
    warn "Exception when calling LitsApi->returnBedList: $@\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.LitsApi()
body =  # array[lits] | List of user object

try: 
    # Return a list of beds
    api_instance.return_bed_list(body)
except ApiException as e:
    print("Exception when calling LitsApi->returnBedList: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


Patient

patientAddInput

Add New Patient

Store in our database the new patient register


/patient/patientAdd

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/patient/patientAdd?_id=&nom=&prenom=&sexe=&date_naissance=&phone_number=&mail=&postal_adress=&personne_a_prevenir=&commentaire=&ipp=&nda=&medical_fee=&contagious=&last_sejour=&medecin_traitant=&last_doctor_seen=&deceder=&etat="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String id = id_example; // String | id of the patient
        String nom = nom_example; // String | name of the patient
        String prenom = prenom_example; // String | firstname of the patient
        Boolean sexe = true; // Boolean | sexe of the patient
        String dateNaissance = dateNaissance_example; // String | birthdate of the patient
        Boolean phoneNumber = true; // Boolean | phone_number of the patient
        String mail = mail_example; // String | mail of the patient
        Boolean postalAdress = true; // Boolean | postal address of the patient
        String personneAPrevenir = personneAPrevenir_example; // String | urgency contact of the patient
        String commentaire = commentaire_example; // String | commentaire of the patient
        String ipp = ipp_example; // String | ipp of the patient
        String nda = nda_example; // String | nda of the patient
        BigDecimal medicalFee = 8.14; // BigDecimal | medical fee of the patient
        Boolean contagious = true; // Boolean | contagious of the patient
        Boolean lastSejour = true; // Boolean | last sejour of the patient
        Boolean medecinTraitant = true; // Boolean | medecin traitant of the patient
        String lastDoctorSeen = lastDoctorSeen_example; // String | last doctor seen by the patient
        Boolean deceder = true; // Boolean | status of the death
        String etat = etat_example; // String | state of the patient
        try {
            apiInstance.patientAddInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, lastSejour, medecinTraitant, lastDoctorSeen, deceder, etat);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientAddInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String id = id_example; // String | id of the patient
        String nom = nom_example; // String | name of the patient
        String prenom = prenom_example; // String | firstname of the patient
        Boolean sexe = true; // Boolean | sexe of the patient
        String dateNaissance = dateNaissance_example; // String | birthdate of the patient
        Boolean phoneNumber = true; // Boolean | phone_number of the patient
        String mail = mail_example; // String | mail of the patient
        Boolean postalAdress = true; // Boolean | postal address of the patient
        String personneAPrevenir = personneAPrevenir_example; // String | urgency contact of the patient
        String commentaire = commentaire_example; // String | commentaire of the patient
        String ipp = ipp_example; // String | ipp of the patient
        String nda = nda_example; // String | nda of the patient
        BigDecimal medicalFee = 8.14; // BigDecimal | medical fee of the patient
        Boolean contagious = true; // Boolean | contagious of the patient
        Boolean lastSejour = true; // Boolean | last sejour of the patient
        Boolean medecinTraitant = true; // Boolean | medecin traitant of the patient
        String lastDoctorSeen = lastDoctorSeen_example; // String | last doctor seen by the patient
        Boolean deceder = true; // Boolean | status of the death
        String etat = etat_example; // String | state of the patient
        try {
            apiInstance.patientAddInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, lastSejour, medecinTraitant, lastDoctorSeen, deceder, etat);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientAddInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the patient
String *nom = nom_example; // name of the patient
String *prenom = prenom_example; // firstname of the patient
Boolean *sexe = true; // sexe of the patient
String *dateNaissance = dateNaissance_example; // birthdate of the patient
Boolean *phoneNumber = true; // phone_number of the patient
String *mail = mail_example; // mail of the patient
Boolean *postalAdress = true; // postal address of the patient
String *personneAPrevenir = personneAPrevenir_example; // urgency contact of the patient
String *commentaire = commentaire_example; // commentaire of the patient
String *ipp = ipp_example; // ipp of the patient
String *nda = nda_example; // nda of the patient
BigDecimal *medicalFee = 8.14; // medical fee of the patient
Boolean *contagious = true; // contagious of the patient
Boolean *lastSejour = true; // last sejour of the patient
Boolean *medecinTraitant = true; // medecin traitant of the patient
String *lastDoctorSeen = lastDoctorSeen_example; // last doctor seen by the patient
Boolean *deceder = true; // status of the death
String *etat = etat_example; // state of the patient

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

// Add New Patient
[apiInstance patientAddInputWith:id
    nom:nom
    prenom:prenom
    sexe:sexe
    dateNaissance:dateNaissance
    phoneNumber:phoneNumber
    mail:mail
    postalAdress:postalAdress
    personneAPrevenir:personneAPrevenir
    commentaire:commentaire
    ipp:ipp
    nda:nda
    medicalFee:medicalFee
    contagious:contagious
    lastSejour:lastSejour
    medecinTraitant:medecinTraitant
    lastDoctorSeen:lastDoctorSeen
    deceder:deceder
    etat:etat
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.PatientApi()

var id = id_example; // {String} id of the patient

var nom = nom_example; // {String} name of the patient

var prenom = prenom_example; // {String} firstname of the patient

var sexe = true; // {Boolean} sexe of the patient

var dateNaissance = dateNaissance_example; // {String} birthdate of the patient

var phoneNumber = true; // {Boolean} phone_number of the patient

var mail = mail_example; // {String} mail of the patient

var postalAdress = true; // {Boolean} postal address of the patient

var personneAPrevenir = personneAPrevenir_example; // {String} urgency contact of the patient

var commentaire = commentaire_example; // {String} commentaire of the patient

var ipp = ipp_example; // {String} ipp of the patient

var nda = nda_example; // {String} nda of the patient

var medicalFee = 8.14; // {BigDecimal} medical fee of the patient

var contagious = true; // {Boolean} contagious of the patient

var lastSejour = true; // {Boolean} last sejour of the patient

var medecinTraitant = true; // {Boolean} medecin traitant of the patient

var lastDoctorSeen = lastDoctorSeen_example; // {String} last doctor seen by the patient

var deceder = true; // {Boolean} status of the death

var etat = etat_example; // {String} state of the patient


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.patientAddInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, lastSejour, medecinTraitant, lastDoctorSeen, deceder, etat, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class patientAddInputExample
    {
        public void main()
        {
            
            var apiInstance = new PatientApi();
            var id = id_example;  // String | id of the patient
            var nom = nom_example;  // String | name of the patient
            var prenom = prenom_example;  // String | firstname of the patient
            var sexe = true;  // Boolean | sexe of the patient
            var dateNaissance = dateNaissance_example;  // String | birthdate of the patient
            var phoneNumber = true;  // Boolean | phone_number of the patient
            var mail = mail_example;  // String | mail of the patient
            var postalAdress = true;  // Boolean | postal address of the patient
            var personneAPrevenir = personneAPrevenir_example;  // String | urgency contact of the patient
            var commentaire = commentaire_example;  // String | commentaire of the patient
            var ipp = ipp_example;  // String | ipp of the patient
            var nda = nda_example;  // String | nda of the patient
            var medicalFee = 8.14;  // BigDecimal | medical fee of the patient
            var contagious = true;  // Boolean | contagious of the patient
            var lastSejour = true;  // Boolean | last sejour of the patient
            var medecinTraitant = true;  // Boolean | medecin traitant of the patient
            var lastDoctorSeen = lastDoctorSeen_example;  // String | last doctor seen by the patient
            var deceder = true;  // Boolean | status of the death
            var etat = etat_example;  // String | state of the patient

            try
            {
                // Add New Patient
                apiInstance.patientAddInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, lastSejour, medecinTraitant, lastDoctorSeen, deceder, etat);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patientAddInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PatientApi();
$id = id_example; // String | id of the patient
$nom = nom_example; // String | name of the patient
$prenom = prenom_example; // String | firstname of the patient
$sexe = true; // Boolean | sexe of the patient
$dateNaissance = dateNaissance_example; // String | birthdate of the patient
$phoneNumber = true; // Boolean | phone_number of the patient
$mail = mail_example; // String | mail of the patient
$postalAdress = true; // Boolean | postal address of the patient
$personneAPrevenir = personneAPrevenir_example; // String | urgency contact of the patient
$commentaire = commentaire_example; // String | commentaire of the patient
$ipp = ipp_example; // String | ipp of the patient
$nda = nda_example; // String | nda of the patient
$medicalFee = 8.14; // BigDecimal | medical fee of the patient
$contagious = true; // Boolean | contagious of the patient
$lastSejour = true; // Boolean | last sejour of the patient
$medecinTraitant = true; // Boolean | medecin traitant of the patient
$lastDoctorSeen = lastDoctorSeen_example; // String | last doctor seen by the patient
$deceder = true; // Boolean | status of the death
$etat = etat_example; // String | state of the patient

try {
    $api_instance->patientAddInput($id, $nom, $prenom, $sexe, $dateNaissance, $phoneNumber, $mail, $postalAdress, $personneAPrevenir, $commentaire, $ipp, $nda, $medicalFee, $contagious, $lastSejour, $medecinTraitant, $lastDoctorSeen, $deceder, $etat);
} catch (Exception $e) {
    echo 'Exception when calling PatientApi->patientAddInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientApi;

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $id = id_example; # String | id of the patient
my $nom = nom_example; # String | name of the patient
my $prenom = prenom_example; # String | firstname of the patient
my $sexe = true; # Boolean | sexe of the patient
my $dateNaissance = dateNaissance_example; # String | birthdate of the patient
my $phoneNumber = true; # Boolean | phone_number of the patient
my $mail = mail_example; # String | mail of the patient
my $postalAdress = true; # Boolean | postal address of the patient
my $personneAPrevenir = personneAPrevenir_example; # String | urgency contact of the patient
my $commentaire = commentaire_example; # String | commentaire of the patient
my $ipp = ipp_example; # String | ipp of the patient
my $nda = nda_example; # String | nda of the patient
my $medicalFee = 8.14; # BigDecimal | medical fee of the patient
my $contagious = true; # Boolean | contagious of the patient
my $lastSejour = true; # Boolean | last sejour of the patient
my $medecinTraitant = true; # Boolean | medecin traitant of the patient
my $lastDoctorSeen = lastDoctorSeen_example; # String | last doctor seen by the patient
my $deceder = true; # Boolean | status of the death
my $etat = etat_example; # String | state of the patient

eval { 
    $api_instance->patientAddInput(id => $id, nom => $nom, prenom => $prenom, sexe => $sexe, dateNaissance => $dateNaissance, phoneNumber => $phoneNumber, mail => $mail, postalAdress => $postalAdress, personneAPrevenir => $personneAPrevenir, commentaire => $commentaire, ipp => $ipp, nda => $nda, medicalFee => $medicalFee, contagious => $contagious, lastSejour => $lastSejour, medecinTraitant => $medecinTraitant, lastDoctorSeen => $lastDoctorSeen, deceder => $deceder, etat => $etat);
};
if ($@) {
    warn "Exception when calling PatientApi->patientAddInput: $@\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.PatientApi()
id = id_example # String | id of the patient
nom = nom_example # String | name of the patient
prenom = prenom_example # String | firstname of the patient
sexe = true # Boolean | sexe of the patient
dateNaissance = dateNaissance_example # String | birthdate of the patient
phoneNumber = true # Boolean | phone_number of the patient
mail = mail_example # String | mail of the patient
postalAdress = true # Boolean | postal address of the patient
personneAPrevenir = personneAPrevenir_example # String | urgency contact of the patient
commentaire = commentaire_example # String | commentaire of the patient
ipp = ipp_example # String | ipp of the patient
nda = nda_example # String | nda of the patient
medicalFee = 8.14 # BigDecimal | medical fee of the patient
contagious = true # Boolean | contagious of the patient
lastSejour = true # Boolean | last sejour of the patient
medecinTraitant = true # Boolean | medecin traitant of the patient
lastDoctorSeen = lastDoctorSeen_example # String | last doctor seen by the patient
deceder = true # Boolean | status of the death
etat = etat_example # String | state of the patient

try: 
    # Add New Patient
    api_instance.patient_add_input(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, lastSejour, medecinTraitant, lastDoctorSeen, deceder, etat)
except ApiException as e:
    print("Exception when calling PatientApi->patientAddInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the patient
Required
nom*
String
name of the patient
Required
prenom*
String
firstname of the patient
Required
sexe*
Boolean
sexe of the patient
Required
date_naissance*
String
birthdate of the patient
Required
phone_number*
Boolean
phone_number of the patient
Required
mail*
String
mail of the patient
Required
postal_adress*
Boolean
postal address of the patient
Required
personne_a_prevenir*
String
urgency contact of the patient
Required
commentaire*
String
commentaire of the patient
Required
ipp*
String
ipp of the patient
Required
nda*
String
nda of the patient
Required
medical_fee*
BigDecimal
medical fee of the patient
Required
contagious*
Boolean
contagious of the patient
Required
last_sejour*
Boolean
last sejour of the patient
Required
medecin_traitant*
Boolean
medecin traitant of the patient
Required
last_doctor_seen*
String
last doctor seen by the patient
Required
deceder*
Boolean
status of the death
Required
etat*
String
state of the patient
Required

Responses

Status: 200 - Patient add

Status: 401 - Patient add failed


patientDeleteInput

Delete Patient

Change in our database the data of the patient register


/patient/patientDel

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/patient/patientDel?_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String id = id_example; // String | id of the patient
        try {
            apiInstance.patientDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientDeleteInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String id = id_example; // String | id of the patient
        try {
            apiInstance.patientDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientDeleteInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the patient

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

// Delete Patient
[apiInstance patientDeleteInputWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.PatientApi()

var id = id_example; // {String} id of the patient


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

namespace Example
{
    public class patientDeleteInputExample
    {
        public void main()
        {
            
            var apiInstance = new PatientApi();
            var id = id_example;  // String | id of the patient

            try
            {
                // Delete Patient
                apiInstance.patientDeleteInput(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patientDeleteInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PatientApi();
$id = id_example; // String | id of the patient

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

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $id = id_example; # String | id of the patient

eval { 
    $api_instance->patientDeleteInput(id => $id);
};
if ($@) {
    warn "Exception when calling PatientApi->patientDeleteInput: $@\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.PatientApi()
id = id_example # String | id of the patient

try: 
    # Delete Patient
    api_instance.patient_delete_input(id)
except ApiException as e:
    print("Exception when calling PatientApi->patientDeleteInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the patient
Required

Responses

Status: 200 - return Json state of the Patient

Status: 401 - Patient delete failed


patientListInput

List Patient

Return the data of the patient in fact of the id


/patient/patientList

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/patient/patientList"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        try {
            apiInstance.patientListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientListInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        try {
            apiInstance.patientListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientListInput");
            e.printStackTrace();
        }
    }
}

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

// List Patient
[apiInstance patientListInputWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.PatientApi()

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

namespace Example
{
    public class patientListInputExample
    {
        public void main()
        {
            
            var apiInstance = new PatientApi();

            try
            {
                // List Patient
                apiInstance.patientListInput();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patientListInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PatientApi();

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

my $api_instance = WWW::SwaggerClient::PatientApi->new();

eval { 
    $api_instance->patientListInput();
};
if ($@) {
    warn "Exception when calling PatientApi->patientListInput: $@\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.PatientApi()

try: 
    # List Patient
    api_instance.patient_list_input()
except ApiException as e:
    print("Exception when calling PatientApi->patientListInput: %s\n" % e)

Parameters

Responses

Status: 200 - return Json data of the Patient

Status: 401 - glap Service list not return successfully


patientPost

In-patient information

More information on patients staying in the hospital


/patient

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/patient"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        Patient body = ; // Patient | Information about the Patient
        try {
            apiInstance.patientPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        Patient body = ; // Patient | Information about the Patient
        try {
            apiInstance.patientPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientPost");
            e.printStackTrace();
        }
    }
}
Patient *body = ; // Information about the Patient

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

// In-patient information
[apiInstance patientPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.PatientApi()

var body = ; // {Patient} Information about the Patient


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

namespace Example
{
    public class patientPostExample
    {
        public void main()
        {
            
            var apiInstance = new PatientApi();
            var body = new Patient(); // Patient | Information about the Patient

            try
            {
                // In-patient information
                apiInstance.patientPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patientPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PatientApi();
$body = ; // Patient | Information about the Patient

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

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $body = WWW::SwaggerClient::Object::Patient->new(); # Patient | Information about the Patient

eval { 
    $api_instance->patientPost(body => $body);
};
if ($@) {
    warn "Exception when calling PatientApi->patientPost: $@\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.PatientApi()
body =  # Patient | Information about the Patient

try: 
    # In-patient information
    api_instance.patient_post(body)
except ApiException as e:
    print("Exception when calling PatientApi->patientPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


patientUpdateInput

Update Patient

Change in our database the data of the patient register


/patient/patientUpdate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/patient/patientUpdate?_id=&nom=&prenom=&sexe=&date_naissance=&phone_number=&mail=&postal_adress=&personne_a_prevenir=&commentaire=&ipp=&nda=&medical_fee=&contagious=&last_sejour=&medecin_traitant=&last_doctor_seen=&deceder=&etat="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PatientApi;

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

public class PatientApiExample {

    public static void main(String[] args) {
        
        PatientApi apiInstance = new PatientApi();
        String id = id_example; // String | id of the patient
        String nom = nom_example; // String | name of the patient
        String prenom = prenom_example; // String | firstname of the patient
        Boolean sexe = true; // Boolean | sexe of the patient
        String dateNaissance = dateNaissance_example; // String | birthdate of the patient
        Boolean phoneNumber = true; // Boolean | phone_number of the patient
        String mail = mail_example; // String | mail of the patient
        Boolean postalAdress = true; // Boolean | postal address of the patient
        String personneAPrevenir = personneAPrevenir_example; // String | urgency contact of the patient
        String commentaire = commentaire_example; // String | commentaire of the patient
        String ipp = ipp_example; // String | ipp of the patient
        String nda = nda_example; // String | nda of the patient
        BigDecimal medicalFee = 8.14; // BigDecimal | medical fee of the patient
        Boolean contagious = true; // Boolean | contagious of the patient
        Boolean deceder = true; // Boolean | status of the death
        String etat = etat_example; // String | state of the patient
        Boolean lastSejour = true; // Boolean | last sejour of the patient
        Boolean medecinTraitant = true; // Boolean | medecin traitant of the patient
        String lastDoctorSeen = lastDoctorSeen_example; // String | last doctor seen by the patient
        try {
            apiInstance.patientUpdateInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, deceder, etat, lastSejour, medecinTraitant, lastDoctorSeen);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientUpdateInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PatientApi;

public class PatientApiExample {

    public static void main(String[] args) {
        PatientApi apiInstance = new PatientApi();
        String id = id_example; // String | id of the patient
        String nom = nom_example; // String | name of the patient
        String prenom = prenom_example; // String | firstname of the patient
        Boolean sexe = true; // Boolean | sexe of the patient
        String dateNaissance = dateNaissance_example; // String | birthdate of the patient
        Boolean phoneNumber = true; // Boolean | phone_number of the patient
        String mail = mail_example; // String | mail of the patient
        Boolean postalAdress = true; // Boolean | postal address of the patient
        String personneAPrevenir = personneAPrevenir_example; // String | urgency contact of the patient
        String commentaire = commentaire_example; // String | commentaire of the patient
        String ipp = ipp_example; // String | ipp of the patient
        String nda = nda_example; // String | nda of the patient
        BigDecimal medicalFee = 8.14; // BigDecimal | medical fee of the patient
        Boolean contagious = true; // Boolean | contagious of the patient
        Boolean deceder = true; // Boolean | status of the death
        String etat = etat_example; // String | state of the patient
        Boolean lastSejour = true; // Boolean | last sejour of the patient
        Boolean medecinTraitant = true; // Boolean | medecin traitant of the patient
        String lastDoctorSeen = lastDoctorSeen_example; // String | last doctor seen by the patient
        try {
            apiInstance.patientUpdateInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, deceder, etat, lastSejour, medecinTraitant, lastDoctorSeen);
        } catch (ApiException e) {
            System.err.println("Exception when calling PatientApi#patientUpdateInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the patient
String *nom = nom_example; // name of the patient
String *prenom = prenom_example; // firstname of the patient
Boolean *sexe = true; // sexe of the patient
String *dateNaissance = dateNaissance_example; // birthdate of the patient
Boolean *phoneNumber = true; // phone_number of the patient
String *mail = mail_example; // mail of the patient
Boolean *postalAdress = true; // postal address of the patient
String *personneAPrevenir = personneAPrevenir_example; // urgency contact of the patient
String *commentaire = commentaire_example; // commentaire of the patient
String *ipp = ipp_example; // ipp of the patient
String *nda = nda_example; // nda of the patient
BigDecimal *medicalFee = 8.14; // medical fee of the patient
Boolean *contagious = true; // contagious of the patient
Boolean *deceder = true; // status of the death
String *etat = etat_example; // state of the patient
Boolean *lastSejour = true; // last sejour of the patient (optional)
Boolean *medecinTraitant = true; // medecin traitant of the patient (optional)
String *lastDoctorSeen = lastDoctorSeen_example; // last doctor seen by the patient (optional)

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

// Update Patient
[apiInstance patientUpdateInputWith:id
    nom:nom
    prenom:prenom
    sexe:sexe
    dateNaissance:dateNaissance
    phoneNumber:phoneNumber
    mail:mail
    postalAdress:postalAdress
    personneAPrevenir:personneAPrevenir
    commentaire:commentaire
    ipp:ipp
    nda:nda
    medicalFee:medicalFee
    contagious:contagious
    deceder:deceder
    etat:etat
    lastSejour:lastSejour
    medecinTraitant:medecinTraitant
    lastDoctorSeen:lastDoctorSeen
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.PatientApi()

var id = id_example; // {String} id of the patient

var nom = nom_example; // {String} name of the patient

var prenom = prenom_example; // {String} firstname of the patient

var sexe = true; // {Boolean} sexe of the patient

var dateNaissance = dateNaissance_example; // {String} birthdate of the patient

var phoneNumber = true; // {Boolean} phone_number of the patient

var mail = mail_example; // {String} mail of the patient

var postalAdress = true; // {Boolean} postal address of the patient

var personneAPrevenir = personneAPrevenir_example; // {String} urgency contact of the patient

var commentaire = commentaire_example; // {String} commentaire of the patient

var ipp = ipp_example; // {String} ipp of the patient

var nda = nda_example; // {String} nda of the patient

var medicalFee = 8.14; // {BigDecimal} medical fee of the patient

var contagious = true; // {Boolean} contagious of the patient

var deceder = true; // {Boolean} status of the death

var etat = etat_example; // {String} state of the patient

var opts = { 
  'lastSejour': true, // {Boolean} last sejour of the patient
  'medecinTraitant': true, // {Boolean} medecin traitant of the patient
  'lastDoctorSeen': lastDoctorSeen_example // {String} last doctor seen by the patient
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.patientUpdateInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, deceder, etat, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class patientUpdateInputExample
    {
        public void main()
        {
            
            var apiInstance = new PatientApi();
            var id = id_example;  // String | id of the patient
            var nom = nom_example;  // String | name of the patient
            var prenom = prenom_example;  // String | firstname of the patient
            var sexe = true;  // Boolean | sexe of the patient
            var dateNaissance = dateNaissance_example;  // String | birthdate of the patient
            var phoneNumber = true;  // Boolean | phone_number of the patient
            var mail = mail_example;  // String | mail of the patient
            var postalAdress = true;  // Boolean | postal address of the patient
            var personneAPrevenir = personneAPrevenir_example;  // String | urgency contact of the patient
            var commentaire = commentaire_example;  // String | commentaire of the patient
            var ipp = ipp_example;  // String | ipp of the patient
            var nda = nda_example;  // String | nda of the patient
            var medicalFee = 8.14;  // BigDecimal | medical fee of the patient
            var contagious = true;  // Boolean | contagious of the patient
            var deceder = true;  // Boolean | status of the death
            var etat = etat_example;  // String | state of the patient
            var lastSejour = true;  // Boolean | last sejour of the patient (optional) 
            var medecinTraitant = true;  // Boolean | medecin traitant of the patient (optional) 
            var lastDoctorSeen = lastDoctorSeen_example;  // String | last doctor seen by the patient (optional) 

            try
            {
                // Update Patient
                apiInstance.patientUpdateInput(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, deceder, etat, lastSejour, medecinTraitant, lastDoctorSeen);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PatientApi.patientUpdateInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PatientApi();
$id = id_example; // String | id of the patient
$nom = nom_example; // String | name of the patient
$prenom = prenom_example; // String | firstname of the patient
$sexe = true; // Boolean | sexe of the patient
$dateNaissance = dateNaissance_example; // String | birthdate of the patient
$phoneNumber = true; // Boolean | phone_number of the patient
$mail = mail_example; // String | mail of the patient
$postalAdress = true; // Boolean | postal address of the patient
$personneAPrevenir = personneAPrevenir_example; // String | urgency contact of the patient
$commentaire = commentaire_example; // String | commentaire of the patient
$ipp = ipp_example; // String | ipp of the patient
$nda = nda_example; // String | nda of the patient
$medicalFee = 8.14; // BigDecimal | medical fee of the patient
$contagious = true; // Boolean | contagious of the patient
$deceder = true; // Boolean | status of the death
$etat = etat_example; // String | state of the patient
$lastSejour = true; // Boolean | last sejour of the patient
$medecinTraitant = true; // Boolean | medecin traitant of the patient
$lastDoctorSeen = lastDoctorSeen_example; // String | last doctor seen by the patient

try {
    $api_instance->patientUpdateInput($id, $nom, $prenom, $sexe, $dateNaissance, $phoneNumber, $mail, $postalAdress, $personneAPrevenir, $commentaire, $ipp, $nda, $medicalFee, $contagious, $deceder, $etat, $lastSejour, $medecinTraitant, $lastDoctorSeen);
} catch (Exception $e) {
    echo 'Exception when calling PatientApi->patientUpdateInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PatientApi;

my $api_instance = WWW::SwaggerClient::PatientApi->new();
my $id = id_example; # String | id of the patient
my $nom = nom_example; # String | name of the patient
my $prenom = prenom_example; # String | firstname of the patient
my $sexe = true; # Boolean | sexe of the patient
my $dateNaissance = dateNaissance_example; # String | birthdate of the patient
my $phoneNumber = true; # Boolean | phone_number of the patient
my $mail = mail_example; # String | mail of the patient
my $postalAdress = true; # Boolean | postal address of the patient
my $personneAPrevenir = personneAPrevenir_example; # String | urgency contact of the patient
my $commentaire = commentaire_example; # String | commentaire of the patient
my $ipp = ipp_example; # String | ipp of the patient
my $nda = nda_example; # String | nda of the patient
my $medicalFee = 8.14; # BigDecimal | medical fee of the patient
my $contagious = true; # Boolean | contagious of the patient
my $deceder = true; # Boolean | status of the death
my $etat = etat_example; # String | state of the patient
my $lastSejour = true; # Boolean | last sejour of the patient
my $medecinTraitant = true; # Boolean | medecin traitant of the patient
my $lastDoctorSeen = lastDoctorSeen_example; # String | last doctor seen by the patient

eval { 
    $api_instance->patientUpdateInput(id => $id, nom => $nom, prenom => $prenom, sexe => $sexe, dateNaissance => $dateNaissance, phoneNumber => $phoneNumber, mail => $mail, postalAdress => $postalAdress, personneAPrevenir => $personneAPrevenir, commentaire => $commentaire, ipp => $ipp, nda => $nda, medicalFee => $medicalFee, contagious => $contagious, deceder => $deceder, etat => $etat, lastSejour => $lastSejour, medecinTraitant => $medecinTraitant, lastDoctorSeen => $lastDoctorSeen);
};
if ($@) {
    warn "Exception when calling PatientApi->patientUpdateInput: $@\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.PatientApi()
id = id_example # String | id of the patient
nom = nom_example # String | name of the patient
prenom = prenom_example # String | firstname of the patient
sexe = true # Boolean | sexe of the patient
dateNaissance = dateNaissance_example # String | birthdate of the patient
phoneNumber = true # Boolean | phone_number of the patient
mail = mail_example # String | mail of the patient
postalAdress = true # Boolean | postal address of the patient
personneAPrevenir = personneAPrevenir_example # String | urgency contact of the patient
commentaire = commentaire_example # String | commentaire of the patient
ipp = ipp_example # String | ipp of the patient
nda = nda_example # String | nda of the patient
medicalFee = 8.14 # BigDecimal | medical fee of the patient
contagious = true # Boolean | contagious of the patient
deceder = true # Boolean | status of the death
etat = etat_example # String | state of the patient
lastSejour = true # Boolean | last sejour of the patient (optional)
medecinTraitant = true # Boolean | medecin traitant of the patient (optional)
lastDoctorSeen = lastDoctorSeen_example # String | last doctor seen by the patient (optional)

try: 
    # Update Patient
    api_instance.patient_update_input(id, nom, prenom, sexe, dateNaissance, phoneNumber, mail, postalAdress, personneAPrevenir, commentaire, ipp, nda, medicalFee, contagious, deceder, etat, lastSejour=lastSejour, medecinTraitant=medecinTraitant, lastDoctorSeen=lastDoctorSeen)
except ApiException as e:
    print("Exception when calling PatientApi->patientUpdateInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the patient
Required
nom*
String
name of the patient
Required
prenom*
String
firstname of the patient
Required
sexe*
Boolean
sexe of the patient
Required
date_naissance*
String
birthdate of the patient
Required
phone_number*
Boolean
phone_number of the patient
Required
mail*
String
mail of the patient
Required
postal_adress*
Boolean
postal address of the patient
Required
personne_a_prevenir*
String
urgency contact of the patient
Required
commentaire*
String
commentaire of the patient
Required
ipp*
String
ipp of the patient
Required
nda*
String
nda of the patient
Required
medical_fee*
BigDecimal
medical fee of the patient
Required
contagious*
Boolean
contagious of the patient
Required
last_sejour
Boolean
last sejour of the patient
medecin_traitant
Boolean
medecin traitant of the patient
last_doctor_seen
String
last doctor seen by the patient
deceder*
Boolean
status of the death
Required
etat*
String
state of the patient
Required

Responses

Status: 200 - Patient update successfuly

Status: 401 - Patient update failed


Rdv

rdvAddInput

Add rdv

Add information of the rdv for patient in the hospital


/rdv/rdvCreate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/rdv/rdvCreate?_id=&Date=&cancel=&docteur_id=&patient_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RdvApi;

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

public class RdvApiExample {

    public static void main(String[] args) {
        
        RdvApi apiInstance = new RdvApi();
        String id = id_example; // String | id of the rdv
        String date = date_example; // String | date for the rdv
        Boolean cancel = true; // Boolean | boolean for know if the rdv is cancel
        String docteurId = docteurId_example; // String | doctor id
        String patientId = patientId_example; // String | patient id
        try {
            apiInstance.rdvAddInput(id, date, cancel, docteurId, patientId);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvAddInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RdvApi;

public class RdvApiExample {

    public static void main(String[] args) {
        RdvApi apiInstance = new RdvApi();
        String id = id_example; // String | id of the rdv
        String date = date_example; // String | date for the rdv
        Boolean cancel = true; // Boolean | boolean for know if the rdv is cancel
        String docteurId = docteurId_example; // String | doctor id
        String patientId = patientId_example; // String | patient id
        try {
            apiInstance.rdvAddInput(id, date, cancel, docteurId, patientId);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvAddInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the rdv
String *date = date_example; // date for the rdv (optional) (default to true)
Boolean *cancel = true; // boolean for know if the rdv is cancel (optional) (default to true)
String *docteurId = docteurId_example; // doctor id (optional) (default to true)
String *patientId = patientId_example; // patient id (optional) (default to false)

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

// Add rdv
[apiInstance rdvAddInputWith:id
    date:date
    cancel:cancel
    docteurId:docteurId
    patientId:patientId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.RdvApi()

var id = id_example; // {String} id of the rdv

var opts = { 
  'date': date_example, // {String} date for the rdv
  'cancel': true, // {Boolean} boolean for know if the rdv is cancel
  'docteurId': docteurId_example, // {String} doctor id
  'patientId': patientId_example // {String} patient id
};

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

namespace Example
{
    public class rdvAddInputExample
    {
        public void main()
        {
            
            var apiInstance = new RdvApi();
            var id = id_example;  // String | id of the rdv
            var date = date_example;  // String | date for the rdv (optional)  (default to true)
            var cancel = true;  // Boolean | boolean for know if the rdv is cancel (optional)  (default to true)
            var docteurId = docteurId_example;  // String | doctor id (optional)  (default to true)
            var patientId = patientId_example;  // String | patient id (optional)  (default to false)

            try
            {
                // Add rdv
                apiInstance.rdvAddInput(id, date, cancel, docteurId, patientId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RdvApi.rdvAddInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RdvApi();
$id = id_example; // String | id of the rdv
$date = date_example; // String | date for the rdv
$cancel = true; // Boolean | boolean for know if the rdv is cancel
$docteurId = docteurId_example; // String | doctor id
$patientId = patientId_example; // String | patient id

try {
    $api_instance->rdvAddInput($id, $date, $cancel, $docteurId, $patientId);
} catch (Exception $e) {
    echo 'Exception when calling RdvApi->rdvAddInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RdvApi;

my $api_instance = WWW::SwaggerClient::RdvApi->new();
my $id = id_example; # String | id of the rdv
my $date = date_example; # String | date for the rdv
my $cancel = true; # Boolean | boolean for know if the rdv is cancel
my $docteurId = docteurId_example; # String | doctor id
my $patientId = patientId_example; # String | patient id

eval { 
    $api_instance->rdvAddInput(id => $id, date => $date, cancel => $cancel, docteurId => $docteurId, patientId => $patientId);
};
if ($@) {
    warn "Exception when calling RdvApi->rdvAddInput: $@\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.RdvApi()
id = id_example # String | id of the rdv
date = date_example # String | date for the rdv (optional) (default to true)
cancel = true # Boolean | boolean for know if the rdv is cancel (optional) (default to true)
docteurId = docteurId_example # String | doctor id (optional) (default to true)
patientId = patientId_example # String | patient id (optional) (default to false)

try: 
    # Add rdv
    api_instance.rdv_add_input(id, date=date, cancel=cancel, docteurId=docteurId, patientId=patientId)
except ApiException as e:
    print("Exception when calling RdvApi->rdvAddInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the rdv
Required
Date
String
date for the rdv
cancel
Boolean
boolean for know if the rdv is cancel
docteur_id
String
doctor id
patient_id
String
patient id

Responses

Status: 200 - return Json data of the rdv

Status: 401 - glap Rdv not add successfully


rdvListInput

List rdv

return the list of the rdv


/rdv/rdvlist

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/rdv/rdvlist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RdvApi;

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

public class RdvApiExample {

    public static void main(String[] args) {
        
        RdvApi apiInstance = new RdvApi();
        try {
            apiInstance.rdvListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvListInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RdvApi;

public class RdvApiExample {

    public static void main(String[] args) {
        RdvApi apiInstance = new RdvApi();
        try {
            apiInstance.rdvListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvListInput");
            e.printStackTrace();
        }
    }
}

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

// List rdv
[apiInstance rdvListInputWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.RdvApi()

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

namespace Example
{
    public class rdvListInputExample
    {
        public void main()
        {
            
            var apiInstance = new RdvApi();

            try
            {
                // List rdv
                apiInstance.rdvListInput();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RdvApi.rdvListInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RdvApi();

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

my $api_instance = WWW::SwaggerClient::RdvApi->new();

eval { 
    $api_instance->rdvListInput();
};
if ($@) {
    warn "Exception when calling RdvApi->rdvListInput: $@\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.RdvApi()

try: 
    # List rdv
    api_instance.rdv_list_input()
except ApiException as e:
    print("Exception when calling RdvApi->rdvListInput: %s\n" % e)

Parameters

Responses

Status: 200 - return Json data of the rdv

Status: 401 - glap rdv list not return successfully


rdvPost

Informations Rdv

Information on rdv of our application


/rdv

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/rdv"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RdvApi;

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

public class RdvApiExample {

    public static void main(String[] args) {
        
        RdvApi apiInstance = new RdvApi();
        Rdv body = ; // Rdv | Information on rdv of our application
        try {
            apiInstance.rdvPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RdvApi;

public class RdvApiExample {

    public static void main(String[] args) {
        RdvApi apiInstance = new RdvApi();
        Rdv body = ; // Rdv | Information on rdv of our application
        try {
            apiInstance.rdvPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvPost");
            e.printStackTrace();
        }
    }
}
Rdv *body = ; // Information on rdv of our application

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

// Informations Rdv
[apiInstance rdvPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.RdvApi()

var body = ; // {Rdv} Information on rdv of our application


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

namespace Example
{
    public class rdvPostExample
    {
        public void main()
        {
            
            var apiInstance = new RdvApi();
            var body = new Rdv(); // Rdv | Information on rdv of our application

            try
            {
                // Informations Rdv
                apiInstance.rdvPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RdvApi.rdvPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RdvApi();
$body = ; // Rdv | Information on rdv of our application

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

my $api_instance = WWW::SwaggerClient::RdvApi->new();
my $body = WWW::SwaggerClient::Object::Rdv->new(); # Rdv | Information on rdv of our application

eval { 
    $api_instance->rdvPost(body => $body);
};
if ($@) {
    warn "Exception when calling RdvApi->rdvPost: $@\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.RdvApi()
body =  # Rdv | Information on rdv of our application

try: 
    # Informations Rdv
    api_instance.rdv_post(body)
except ApiException as e:
    print("Exception when calling RdvApi->rdvPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


rdvUpdateInput

Update rdv

Update information of the rdv who use our application


/rdv/rdvUpdate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/rdv/rdvUpdate?_id=&Date=&cancel=&docteur_id=&patient_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RdvApi;

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

public class RdvApiExample {

    public static void main(String[] args) {
        
        RdvApi apiInstance = new RdvApi();
        String id = id_example; // String | id of the rdv
        String date = date_example; // String | date for the rdv
        Boolean cancel = true; // Boolean | boolean for know if the rdv is cancel
        String docteurId = docteurId_example; // String | doctor id
        String patientId = patientId_example; // String | patient id
        try {
            apiInstance.rdvUpdateInput(id, date, cancel, docteurId, patientId);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvUpdateInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RdvApi;

public class RdvApiExample {

    public static void main(String[] args) {
        RdvApi apiInstance = new RdvApi();
        String id = id_example; // String | id of the rdv
        String date = date_example; // String | date for the rdv
        Boolean cancel = true; // Boolean | boolean for know if the rdv is cancel
        String docteurId = docteurId_example; // String | doctor id
        String patientId = patientId_example; // String | patient id
        try {
            apiInstance.rdvUpdateInput(id, date, cancel, docteurId, patientId);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvApi#rdvUpdateInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the rdv
String *date = date_example; // date for the rdv (optional) (default to true)
Boolean *cancel = true; // boolean for know if the rdv is cancel (optional) (default to true)
String *docteurId = docteurId_example; // doctor id (optional) (default to true)
String *patientId = patientId_example; // patient id (optional) (default to false)

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

// Update rdv
[apiInstance rdvUpdateInputWith:id
    date:date
    cancel:cancel
    docteurId:docteurId
    patientId:patientId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.RdvApi()

var id = id_example; // {String} id of the rdv

var opts = { 
  'date': date_example, // {String} date for the rdv
  'cancel': true, // {Boolean} boolean for know if the rdv is cancel
  'docteurId': docteurId_example, // {String} doctor id
  'patientId': patientId_example // {String} patient id
};

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

namespace Example
{
    public class rdvUpdateInputExample
    {
        public void main()
        {
            
            var apiInstance = new RdvApi();
            var id = id_example;  // String | id of the rdv
            var date = date_example;  // String | date for the rdv (optional)  (default to true)
            var cancel = true;  // Boolean | boolean for know if the rdv is cancel (optional)  (default to true)
            var docteurId = docteurId_example;  // String | doctor id (optional)  (default to true)
            var patientId = patientId_example;  // String | patient id (optional)  (default to false)

            try
            {
                // Update rdv
                apiInstance.rdvUpdateInput(id, date, cancel, docteurId, patientId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RdvApi.rdvUpdateInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RdvApi();
$id = id_example; // String | id of the rdv
$date = date_example; // String | date for the rdv
$cancel = true; // Boolean | boolean for know if the rdv is cancel
$docteurId = docteurId_example; // String | doctor id
$patientId = patientId_example; // String | patient id

try {
    $api_instance->rdvUpdateInput($id, $date, $cancel, $docteurId, $patientId);
} catch (Exception $e) {
    echo 'Exception when calling RdvApi->rdvUpdateInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RdvApi;

my $api_instance = WWW::SwaggerClient::RdvApi->new();
my $id = id_example; # String | id of the rdv
my $date = date_example; # String | date for the rdv
my $cancel = true; # Boolean | boolean for know if the rdv is cancel
my $docteurId = docteurId_example; # String | doctor id
my $patientId = patientId_example; # String | patient id

eval { 
    $api_instance->rdvUpdateInput(id => $id, date => $date, cancel => $cancel, docteurId => $docteurId, patientId => $patientId);
};
if ($@) {
    warn "Exception when calling RdvApi->rdvUpdateInput: $@\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.RdvApi()
id = id_example # String | id of the rdv
date = date_example # String | date for the rdv (optional) (default to true)
cancel = true # Boolean | boolean for know if the rdv is cancel (optional) (default to true)
docteurId = docteurId_example # String | doctor id (optional) (default to true)
patientId = patientId_example # String | patient id (optional) (default to false)

try: 
    # Update rdv
    api_instance.rdv_update_input(id, date=date, cancel=cancel, docteurId=docteurId, patientId=patientId)
except ApiException as e:
    print("Exception when calling RdvApi->rdvUpdateInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the rdv
Required
Date
String
date for the rdv
cancel
Boolean
boolean for know if the rdv is cancel
docteur_id
String
doctor id
patient_id
String
patient id

Responses

Status: 200 - return Json data of the rdv

Status: 401 - glap rdv not udpate successfully


Rdvuser

rdvDeleteInput

Delete rdv

Delete the rdv in our database


/rdv/rdvDelete

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/rdv/rdvDelete?_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RdvuserApi;

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

public class RdvuserApiExample {

    public static void main(String[] args) {
        
        RdvuserApi apiInstance = new RdvuserApi();
        String id = id_example; // String | id of the rdv
        try {
            apiInstance.rdvDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvuserApi#rdvDeleteInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RdvuserApi;

public class RdvuserApiExample {

    public static void main(String[] args) {
        RdvuserApi apiInstance = new RdvuserApi();
        String id = id_example; // String | id of the rdv
        try {
            apiInstance.rdvDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RdvuserApi#rdvDeleteInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the rdv

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

// Delete rdv
[apiInstance rdvDeleteInputWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.RdvuserApi()

var id = id_example; // {String} id of the rdv


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

namespace Example
{
    public class rdvDeleteInputExample
    {
        public void main()
        {
            
            var apiInstance = new RdvuserApi();
            var id = id_example;  // String | id of the rdv

            try
            {
                // Delete rdv
                apiInstance.rdvDeleteInput(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RdvuserApi.rdvDeleteInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\RdvuserApi();
$id = id_example; // String | id of the rdv

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

my $api_instance = WWW::SwaggerClient::RdvuserApi->new();
my $id = id_example; # String | id of the rdv

eval { 
    $api_instance->rdvDeleteInput(id => $id);
};
if ($@) {
    warn "Exception when calling RdvuserApi->rdvDeleteInput: $@\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.RdvuserApi()
id = id_example # String | id of the rdv

try: 
    # Delete rdv
    api_instance.rdv_delete_input(id)
except ApiException as e:
    print("Exception when calling RdvuserApi->rdvDeleteInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the rdv
Required

Responses

Status: 200 - return Json state of the rdv

Status: 401 - glap rdv delete failed


Sejour

sejourAddInput

Add sejour

Add inforation of the patient stay in the hospital


/sejour/sejourAdd

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/sejour/sejourAdd?_id=&bed_id=&id_patient=&heure_arrivee=&depart_prevu=&transfert=&commantaire=&doctor_name=&present="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SejourApi;

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

public class SejourApiExample {

    public static void main(String[] args) {
        
        SejourApi apiInstance = new SejourApi();
        String id = id_example; // String | id of the stay
        String bedId = bedId_example; // String | bed id of the patient staying in our hospital
        String idPatient = idPatient_example; // String | id of the patient staying in our hospital
        String heureArrivee = heureArrivee_example; // String | arrival time of the patient staying in our hospital
        String departPrevu = departPrevu_example; // String | departure time of the patient staying in our hospital
        String doctorName = doctorName_example; // String | the doctor who registered the patient
        Boolean transfert = true; // Boolean | transfert of the patient staying in our hospital
        String commantaire = commantaire_example; // String | comment entered by the doctor
        String present = present_example; // String | prescence
        try {
            apiInstance.sejourAddInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName, transfert, commantaire, present);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourAddInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SejourApi;

public class SejourApiExample {

    public static void main(String[] args) {
        SejourApi apiInstance = new SejourApi();
        String id = id_example; // String | id of the stay
        String bedId = bedId_example; // String | bed id of the patient staying in our hospital
        String idPatient = idPatient_example; // String | id of the patient staying in our hospital
        String heureArrivee = heureArrivee_example; // String | arrival time of the patient staying in our hospital
        String departPrevu = departPrevu_example; // String | departure time of the patient staying in our hospital
        String doctorName = doctorName_example; // String | the doctor who registered the patient
        Boolean transfert = true; // Boolean | transfert of the patient staying in our hospital
        String commantaire = commantaire_example; // String | comment entered by the doctor
        String present = present_example; // String | prescence
        try {
            apiInstance.sejourAddInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName, transfert, commantaire, present);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourAddInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the stay
String *bedId = bedId_example; // bed id of the patient staying in our hospital
String *idPatient = idPatient_example; // id of the patient staying in our hospital
String *heureArrivee = heureArrivee_example; // arrival time of the patient staying in our hospital
String *departPrevu = departPrevu_example; // departure time of the patient staying in our hospital
String *doctorName = doctorName_example; // the doctor who registered the patient
Boolean *transfert = true; // transfert of the patient staying in our hospital (optional) (default to false)
String *commantaire = commantaire_example; // comment entered by the doctor (optional)
String *present = present_example; // prescence (optional)

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

// Add sejour
[apiInstance sejourAddInputWith:id
    bedId:bedId
    idPatient:idPatient
    heureArrivee:heureArrivee
    departPrevu:departPrevu
    doctorName:doctorName
    transfert:transfert
    commantaire:commantaire
    present:present
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.SejourApi()

var id = id_example; // {String} id of the stay

var bedId = bedId_example; // {String} bed id of the patient staying in our hospital

var idPatient = idPatient_example; // {String} id of the patient staying in our hospital

var heureArrivee = heureArrivee_example; // {String} arrival time of the patient staying in our hospital

var departPrevu = departPrevu_example; // {String} departure time of the patient staying in our hospital

var doctorName = doctorName_example; // {String} the doctor who registered the patient

var opts = { 
  'transfert': true, // {Boolean} transfert of the patient staying in our hospital
  'commantaire': commantaire_example, // {String} comment entered by the doctor
  'present': present_example // {String} prescence
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.sejourAddInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class sejourAddInputExample
    {
        public void main()
        {
            
            var apiInstance = new SejourApi();
            var id = id_example;  // String | id of the stay
            var bedId = bedId_example;  // String | bed id of the patient staying in our hospital
            var idPatient = idPatient_example;  // String | id of the patient staying in our hospital
            var heureArrivee = heureArrivee_example;  // String | arrival time of the patient staying in our hospital
            var departPrevu = departPrevu_example;  // String | departure time of the patient staying in our hospital
            var doctorName = doctorName_example;  // String | the doctor who registered the patient
            var transfert = true;  // Boolean | transfert of the patient staying in our hospital (optional)  (default to false)
            var commantaire = commantaire_example;  // String | comment entered by the doctor (optional) 
            var present = present_example;  // String | prescence (optional) 

            try
            {
                // Add sejour
                apiInstance.sejourAddInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName, transfert, commantaire, present);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SejourApi.sejourAddInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SejourApi();
$id = id_example; // String | id of the stay
$bedId = bedId_example; // String | bed id of the patient staying in our hospital
$idPatient = idPatient_example; // String | id of the patient staying in our hospital
$heureArrivee = heureArrivee_example; // String | arrival time of the patient staying in our hospital
$departPrevu = departPrevu_example; // String | departure time of the patient staying in our hospital
$doctorName = doctorName_example; // String | the doctor who registered the patient
$transfert = true; // Boolean | transfert of the patient staying in our hospital
$commantaire = commantaire_example; // String | comment entered by the doctor
$present = present_example; // String | prescence

try {
    $api_instance->sejourAddInput($id, $bedId, $idPatient, $heureArrivee, $departPrevu, $doctorName, $transfert, $commantaire, $present);
} catch (Exception $e) {
    echo 'Exception when calling SejourApi->sejourAddInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SejourApi;

my $api_instance = WWW::SwaggerClient::SejourApi->new();
my $id = id_example; # String | id of the stay
my $bedId = bedId_example; # String | bed id of the patient staying in our hospital
my $idPatient = idPatient_example; # String | id of the patient staying in our hospital
my $heureArrivee = heureArrivee_example; # String | arrival time of the patient staying in our hospital
my $departPrevu = departPrevu_example; # String | departure time of the patient staying in our hospital
my $doctorName = doctorName_example; # String | the doctor who registered the patient
my $transfert = true; # Boolean | transfert of the patient staying in our hospital
my $commantaire = commantaire_example; # String | comment entered by the doctor
my $present = present_example; # String | prescence

eval { 
    $api_instance->sejourAddInput(id => $id, bedId => $bedId, idPatient => $idPatient, heureArrivee => $heureArrivee, departPrevu => $departPrevu, doctorName => $doctorName, transfert => $transfert, commantaire => $commantaire, present => $present);
};
if ($@) {
    warn "Exception when calling SejourApi->sejourAddInput: $@\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.SejourApi()
id = id_example # String | id of the stay
bedId = bedId_example # String | bed id of the patient staying in our hospital
idPatient = idPatient_example # String | id of the patient staying in our hospital
heureArrivee = heureArrivee_example # String | arrival time of the patient staying in our hospital
departPrevu = departPrevu_example # String | departure time of the patient staying in our hospital
doctorName = doctorName_example # String | the doctor who registered the patient
transfert = true # Boolean | transfert of the patient staying in our hospital (optional) (default to false)
commantaire = commantaire_example # String | comment entered by the doctor (optional)
present = present_example # String | prescence (optional)

try: 
    # Add sejour
    api_instance.sejour_add_input(id, bedId, idPatient, heureArrivee, departPrevu, doctorName, transfert=transfert, commantaire=commantaire, present=present)
except ApiException as e:
    print("Exception when calling SejourApi->sejourAddInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the stay
Required
bed_id*
String
bed id of the patient staying in our hospital
Required
id_patient*
String
id of the patient staying in our hospital
Required
heure_arrivee*
String
arrival time of the patient staying in our hospital
Required
depart_prevu*
String
departure time of the patient staying in our hospital
Required
transfert
Boolean
transfert of the patient staying in our hospital
commantaire
String
comment entered by the doctor
doctor_name*
String
the doctor who registered the patient
Required
present
String
prescence

Responses

Status: 200 - return Json data of the sejour

Status: 401 - glap Service list not return successfully


sejourDeleteInput

Delete sejour

Delete in our database the data of the sejour


/sejour/sejourDel

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/sejour/sejourDel?_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SejourApi;

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

public class SejourApiExample {

    public static void main(String[] args) {
        
        SejourApi apiInstance = new SejourApi();
        Integer id = 56; // Integer | id of the sejour
        try {
            apiInstance.sejourDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourDeleteInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SejourApi;

public class SejourApiExample {

    public static void main(String[] args) {
        SejourApi apiInstance = new SejourApi();
        Integer id = 56; // Integer | id of the sejour
        try {
            apiInstance.sejourDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourDeleteInput");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // id of the sejour

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

// Delete sejour
[apiInstance sejourDeleteInputWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.SejourApi()

var id = 56; // {Integer} id of the sejour


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

namespace Example
{
    public class sejourDeleteInputExample
    {
        public void main()
        {
            
            var apiInstance = new SejourApi();
            var id = 56;  // Integer | id of the sejour

            try
            {
                // Delete sejour
                apiInstance.sejourDeleteInput(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SejourApi.sejourDeleteInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SejourApi();
$id = 56; // Integer | id of the sejour

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

my $api_instance = WWW::SwaggerClient::SejourApi->new();
my $id = 56; # Integer | id of the sejour

eval { 
    $api_instance->sejourDeleteInput(id => $id);
};
if ($@) {
    warn "Exception when calling SejourApi->sejourDeleteInput: $@\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.SejourApi()
id = 56 # Integer | id of the sejour

try: 
    # Delete sejour
    api_instance.sejour_delete_input(id)
except ApiException as e:
    print("Exception when calling SejourApi->sejourDeleteInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
Integer
id of the sejour
Required

Responses

Status: 200 - return Json state of the Patient

Status: 401 - glap sejour not removed successfully


sejourListInput

List sejour

Return the data of the sejour


/sejour/sejourList

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/sejour/sejourList"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SejourApi;

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

public class SejourApiExample {

    public static void main(String[] args) {
        
        SejourApi apiInstance = new SejourApi();
        try {
            apiInstance.sejourListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourListInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SejourApi;

public class SejourApiExample {

    public static void main(String[] args) {
        SejourApi apiInstance = new SejourApi();
        try {
            apiInstance.sejourListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourListInput");
            e.printStackTrace();
        }
    }
}

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

// List sejour
[apiInstance sejourListInputWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.SejourApi()

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

namespace Example
{
    public class sejourListInputExample
    {
        public void main()
        {
            
            var apiInstance = new SejourApi();

            try
            {
                // List sejour
                apiInstance.sejourListInput();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SejourApi.sejourListInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SejourApi();

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

my $api_instance = WWW::SwaggerClient::SejourApi->new();

eval { 
    $api_instance->sejourListInput();
};
if ($@) {
    warn "Exception when calling SejourApi->sejourListInput: $@\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.SejourApi()

try: 
    # List sejour
    api_instance.sejour_list_input()
except ApiException as e:
    print("Exception when calling SejourApi->sejourListInput: %s\n" % e)

Parameters

Responses

Status: 200 - return Json data of the Sejour

Status: 401 - glap sejour list not return successfully


sejourUpdateInput

Update sejour

Update inforation of the patient stay in the hospital


/sejour/sejourUpdate

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/sejour/sejourUpdate?_id=&bed_id=&id_patient=&heure_arrivee=&depart_prevu=&doctor_name="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SejourApi;

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

public class SejourApiExample {

    public static void main(String[] args) {
        
        SejourApi apiInstance = new SejourApi();
        String id = id_example; // String | id of the stay
        String bedId = bedId_example; // String | bed id of the patient staying in our hospital
        String idPatient = idPatient_example; // String | id of the patient staying in our hospital
        String heureArrivee = heureArrivee_example; // String | arrival time of the patient staying in our hospital
        String departPrevu = departPrevu_example; // String | departure time of the patient staying in our hospital
        String doctorName = doctorName_example; // String | the doctor who registered the patient
        try {
            apiInstance.sejourUpdateInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourUpdateInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SejourApi;

public class SejourApiExample {

    public static void main(String[] args) {
        SejourApi apiInstance = new SejourApi();
        String id = id_example; // String | id of the stay
        String bedId = bedId_example; // String | bed id of the patient staying in our hospital
        String idPatient = idPatient_example; // String | id of the patient staying in our hospital
        String heureArrivee = heureArrivee_example; // String | arrival time of the patient staying in our hospital
        String departPrevu = departPrevu_example; // String | departure time of the patient staying in our hospital
        String doctorName = doctorName_example; // String | the doctor who registered the patient
        try {
            apiInstance.sejourUpdateInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejourApi#sejourUpdateInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the stay
String *bedId = bedId_example; // bed id of the patient staying in our hospital
String *idPatient = idPatient_example; // id of the patient staying in our hospital
String *heureArrivee = heureArrivee_example; // arrival time of the patient staying in our hospital
String *departPrevu = departPrevu_example; // departure time of the patient staying in our hospital
String *doctorName = doctorName_example; // the doctor who registered the patient

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

// Update sejour
[apiInstance sejourUpdateInputWith:id
    bedId:bedId
    idPatient:idPatient
    heureArrivee:heureArrivee
    departPrevu:departPrevu
    doctorName:doctorName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.SejourApi()

var id = id_example; // {String} id of the stay

var bedId = bedId_example; // {String} bed id of the patient staying in our hospital

var idPatient = idPatient_example; // {String} id of the patient staying in our hospital

var heureArrivee = heureArrivee_example; // {String} arrival time of the patient staying in our hospital

var departPrevu = departPrevu_example; // {String} departure time of the patient staying in our hospital

var doctorName = doctorName_example; // {String} the doctor who registered the patient


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.sejourUpdateInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class sejourUpdateInputExample
    {
        public void main()
        {
            
            var apiInstance = new SejourApi();
            var id = id_example;  // String | id of the stay
            var bedId = bedId_example;  // String | bed id of the patient staying in our hospital
            var idPatient = idPatient_example;  // String | id of the patient staying in our hospital
            var heureArrivee = heureArrivee_example;  // String | arrival time of the patient staying in our hospital
            var departPrevu = departPrevu_example;  // String | departure time of the patient staying in our hospital
            var doctorName = doctorName_example;  // String | the doctor who registered the patient

            try
            {
                // Update sejour
                apiInstance.sejourUpdateInput(id, bedId, idPatient, heureArrivee, departPrevu, doctorName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SejourApi.sejourUpdateInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SejourApi();
$id = id_example; // String | id of the stay
$bedId = bedId_example; // String | bed id of the patient staying in our hospital
$idPatient = idPatient_example; // String | id of the patient staying in our hospital
$heureArrivee = heureArrivee_example; // String | arrival time of the patient staying in our hospital
$departPrevu = departPrevu_example; // String | departure time of the patient staying in our hospital
$doctorName = doctorName_example; // String | the doctor who registered the patient

try {
    $api_instance->sejourUpdateInput($id, $bedId, $idPatient, $heureArrivee, $departPrevu, $doctorName);
} catch (Exception $e) {
    echo 'Exception when calling SejourApi->sejourUpdateInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SejourApi;

my $api_instance = WWW::SwaggerClient::SejourApi->new();
my $id = id_example; # String | id of the stay
my $bedId = bedId_example; # String | bed id of the patient staying in our hospital
my $idPatient = idPatient_example; # String | id of the patient staying in our hospital
my $heureArrivee = heureArrivee_example; # String | arrival time of the patient staying in our hospital
my $departPrevu = departPrevu_example; # String | departure time of the patient staying in our hospital
my $doctorName = doctorName_example; # String | the doctor who registered the patient

eval { 
    $api_instance->sejourUpdateInput(id => $id, bedId => $bedId, idPatient => $idPatient, heureArrivee => $heureArrivee, departPrevu => $departPrevu, doctorName => $doctorName);
};
if ($@) {
    warn "Exception when calling SejourApi->sejourUpdateInput: $@\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.SejourApi()
id = id_example # String | id of the stay
bedId = bedId_example # String | bed id of the patient staying in our hospital
idPatient = idPatient_example # String | id of the patient staying in our hospital
heureArrivee = heureArrivee_example # String | arrival time of the patient staying in our hospital
departPrevu = departPrevu_example # String | departure time of the patient staying in our hospital
doctorName = doctorName_example # String | the doctor who registered the patient

try: 
    # Update sejour
    api_instance.sejour_update_input(id, bedId, idPatient, heureArrivee, departPrevu, doctorName)
except ApiException as e:
    print("Exception when calling SejourApi->sejourUpdateInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the stay
Required
bed_id*
String
bed id of the patient staying in our hospital
Required
id_patient*
String
id of the patient staying in our hospital
Required
heure_arrivee*
String
arrival time of the patient staying in our hospital
Required
depart_prevu*
String
departure time of the patient staying in our hospital
Required
doctor_name*
String
the doctor who registered the patient
Required

Responses

Status: 200 - return Json data of the sejour update

Status: 401 - glap Service list not return successfully


Sejours

sejoursPost

Information on hospital-related trips

Information on patient stays related to hospital & services


/sejours

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/sejours"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SejoursApi;

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

public class SejoursApiExample {

    public static void main(String[] args) {
        
        SejoursApi apiInstance = new SejoursApi();
        Sejour body = ; // Sejour | Information about the Patient stays
        try {
            apiInstance.sejoursPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejoursApi#sejoursPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SejoursApi;

public class SejoursApiExample {

    public static void main(String[] args) {
        SejoursApi apiInstance = new SejoursApi();
        Sejour body = ; // Sejour | Information about the Patient stays
        try {
            apiInstance.sejoursPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling SejoursApi#sejoursPost");
            e.printStackTrace();
        }
    }
}
Sejour *body = ; // Information about the Patient stays

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

// Information on hospital-related trips
[apiInstance sejoursPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.SejoursApi()

var body = ; // {Sejour} Information about the Patient stays


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

namespace Example
{
    public class sejoursPostExample
    {
        public void main()
        {
            
            var apiInstance = new SejoursApi();
            var body = new Sejour(); // Sejour | Information about the Patient stays

            try
            {
                // Information on hospital-related trips
                apiInstance.sejoursPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SejoursApi.sejoursPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\SejoursApi();
$body = ; // Sejour | Information about the Patient stays

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

my $api_instance = WWW::SwaggerClient::SejoursApi->new();
my $body = WWW::SwaggerClient::Object::Sejour->new(); # Sejour | Information about the Patient stays

eval { 
    $api_instance->sejoursPost(body => $body);
};
if ($@) {
    warn "Exception when calling SejoursApi->sejoursPost: $@\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.SejoursApi()
body =  # Sejour | Information about the Patient stays

try: 
    # Information on hospital-related trips
    api_instance.sejours_post(body)
except ApiException as e:
    print("Exception when calling SejoursApi->sejoursPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


Service

serviceDeleteInput

Delete service

Delete in our database the data of the service


/service/serviceDel

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/service/serviceDel?_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceApi;

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

public class ServiceApiExample {

    public static void main(String[] args) {
        
        ServiceApi apiInstance = new ServiceApi();
        String id = id_example; // String | id of the service
        try {
            apiInstance.serviceDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceApi#serviceDeleteInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceApi;

public class ServiceApiExample {

    public static void main(String[] args) {
        ServiceApi apiInstance = new ServiceApi();
        String id = id_example; // String | id of the service
        try {
            apiInstance.serviceDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceApi#serviceDeleteInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the service

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

// Delete service
[apiInstance serviceDeleteInputWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ServiceApi()

var id = id_example; // {String} id of the service


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

namespace Example
{
    public class serviceDeleteInputExample
    {
        public void main()
        {
            
            var apiInstance = new ServiceApi();
            var id = id_example;  // String | id of the service

            try
            {
                // Delete service
                apiInstance.serviceDeleteInput(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceApi.serviceDeleteInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ServiceApi();
$id = id_example; // String | id of the service

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

my $api_instance = WWW::SwaggerClient::ServiceApi->new();
my $id = id_example; # String | id of the service

eval { 
    $api_instance->serviceDeleteInput(id => $id);
};
if ($@) {
    warn "Exception when calling ServiceApi->serviceDeleteInput: $@\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.ServiceApi()
id = id_example # String | id of the service

try: 
    # Delete service
    api_instance.service_delete_input(id)
except ApiException as e:
    print("Exception when calling ServiceApi->serviceDeleteInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the service
Required

Responses

Status: 200 - return Json state of the Service

Status: 401 - glap Service not removed successfully


servicePost

service information

All the data from our service in the hospital partner


/service

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/service"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceApi;

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

public class ServiceApiExample {

    public static void main(String[] args) {
        
        ServiceApi apiInstance = new ServiceApi();
        Service body = ; // Service | Service register
        try {
            apiInstance.servicePost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceApi#servicePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceApi;

public class ServiceApiExample {

    public static void main(String[] args) {
        ServiceApi apiInstance = new ServiceApi();
        Service body = ; // Service | Service register
        try {
            apiInstance.servicePost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceApi#servicePost");
            e.printStackTrace();
        }
    }
}
Service *body = ; // Service register

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

// service information
[apiInstance servicePostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ServiceApi()

var body = ; // {Service} Service register


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

namespace Example
{
    public class servicePostExample
    {
        public void main()
        {
            
            var apiInstance = new ServiceApi();
            var body = new Service(); // Service | Service register

            try
            {
                // service information
                apiInstance.servicePost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceApi.servicePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ServiceApi();
$body = ; // Service | Service register

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

my $api_instance = WWW::SwaggerClient::ServiceApi->new();
my $body = WWW::SwaggerClient::Object::Service->new(); # Service | Service register

eval { 
    $api_instance->servicePost(body => $body);
};
if ($@) {
    warn "Exception when calling ServiceApi->servicePost: $@\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.ServiceApi()
body =  # Service | Service register

try: 
    # service information
    api_instance.service_post(body)
except ApiException as e:
    print("Exception when calling ServiceApi->servicePost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


serviceServiceListPost

Retrieve & Read

Searches the database & Display all the service register in our db


/service/serviceList

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/service/serviceList"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceApi;

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

public class ServiceApiExample {

    public static void main(String[] args) {
        
        ServiceApi apiInstance = new ServiceApi();
        try {
            apiInstance.serviceServiceListPost();
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceApi#serviceServiceListPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceApi;

public class ServiceApiExample {

    public static void main(String[] args) {
        ServiceApi apiInstance = new ServiceApi();
        try {
            apiInstance.serviceServiceListPost();
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceApi#serviceServiceListPost");
            e.printStackTrace();
        }
    }
}

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

// Retrieve & Read
[apiInstance serviceServiceListPostWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.ServiceApi()

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

namespace Example
{
    public class serviceServiceListPostExample
    {
        public void main()
        {
            
            var apiInstance = new ServiceApi();

            try
            {
                // Retrieve & Read
                apiInstance.serviceServiceListPost();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceApi.serviceServiceListPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ServiceApi();

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

my $api_instance = WWW::SwaggerClient::ServiceApi->new();

eval { 
    $api_instance->serviceServiceListPost();
};
if ($@) {
    warn "Exception when calling ServiceApi->serviceServiceListPost: $@\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.ServiceApi()

try: 
    # Retrieve & Read
    api_instance.service_service_list_post()
except ApiException as e:
    print("Exception when calling ServiceApi->serviceServiceListPost: %s\n" % e)

Parameters

Responses

Status: 200 - Return Json with data

Status: 401 - glap Service list not return successfully


User

userAddInput

Add user

Add information of the user who use our application


/user/CreateUser

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/user/CreateUser?_id=&username=&email=&password=&tokken=&droits="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        String id = id_example; // String | id of the user
        String username = username_example; // String | username for the user
        String email = email_example; // String | email for the user
        String password = password_example; // String | password for the user
        String tokken = tokken_example; // String | tokken connection
        String droits = droits_example; // String | rights for the user
        try {
            apiInstance.userAddInput(id, username, email, password, tokken, droits);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userAddInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String id = id_example; // String | id of the user
        String username = username_example; // String | username for the user
        String email = email_example; // String | email for the user
        String password = password_example; // String | password for the user
        String tokken = tokken_example; // String | tokken connection
        String droits = droits_example; // String | rights for the user
        try {
            apiInstance.userAddInput(id, username, email, password, tokken, droits);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userAddInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the user
String *username = username_example; // username for the user (optional) (default to true)
String *email = email_example; // email for the user (optional) (default to true)
String *password = password_example; // password for the user (optional) (default to true)
String *tokken = tokken_example; // tokken connection (optional) (default to false)
String *droits = droits_example; // rights for the user (optional) (default to false)

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

// Add user
[apiInstance userAddInputWith:id
    username:username
    email:email
    password:password
    tokken:tokken
    droits:droits
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.UserApi()

var id = id_example; // {String} id of the user

var opts = { 
  'username': username_example, // {String} username for the user
  'email': email_example, // {String} email for the user
  'password': password_example, // {String} password for the user
  'tokken': tokken_example, // {String} tokken connection
  'droits': droits_example // {String} rights for the user
};

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

namespace Example
{
    public class userAddInputExample
    {
        public void main()
        {
            
            var apiInstance = new UserApi();
            var id = id_example;  // String | id of the user
            var username = username_example;  // String | username for the user (optional)  (default to true)
            var email = email_example;  // String | email for the user (optional)  (default to true)
            var password = password_example;  // String | password for the user (optional)  (default to true)
            var tokken = tokken_example;  // String | tokken connection (optional)  (default to false)
            var droits = droits_example;  // String | rights for the user (optional)  (default to false)

            try
            {
                // Add user
                apiInstance.userAddInput(id, username, email, password, tokken, droits);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userAddInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserApi();
$id = id_example; // String | id of the user
$username = username_example; // String | username for the user
$email = email_example; // String | email for the user
$password = password_example; // String | password for the user
$tokken = tokken_example; // String | tokken connection
$droits = droits_example; // String | rights for the user

try {
    $api_instance->userAddInput($id, $username, $email, $password, $tokken, $droits);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->userAddInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $id = id_example; # String | id of the user
my $username = username_example; # String | username for the user
my $email = email_example; # String | email for the user
my $password = password_example; # String | password for the user
my $tokken = tokken_example; # String | tokken connection
my $droits = droits_example; # String | rights for the user

eval { 
    $api_instance->userAddInput(id => $id, username => $username, email => $email, password => $password, tokken => $tokken, droits => $droits);
};
if ($@) {
    warn "Exception when calling UserApi->userAddInput: $@\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.UserApi()
id = id_example # String | id of the user
username = username_example # String | username for the user (optional) (default to true)
email = email_example # String | email for the user (optional) (default to true)
password = password_example # String | password for the user (optional) (default to true)
tokken = tokken_example # String | tokken connection (optional) (default to false)
droits = droits_example # String | rights for the user (optional) (default to false)

try: 
    # Add user
    api_instance.user_add_input(id, username=username, email=email, password=password, tokken=tokken, droits=droits)
except ApiException as e:
    print("Exception when calling UserApi->userAddInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the user
Required
username
String
username for the user
email
String
email for the user
password
String
password for the user
tokken
String
tokken connection
droits
String
rights for the user

Responses

Status: 200 - return Json data of the user

Status: 401 - glap User not add successfully


userDeleteInput

Delete User

Delete the user in our database


/user/DeleteUser

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/user/DeleteUser?_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        String id = id_example; // String | id of the user
        try {
            apiInstance.userDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userDeleteInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String id = id_example; // String | id of the user
        try {
            apiInstance.userDeleteInput(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userDeleteInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the user

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

// Delete User
[apiInstance userDeleteInputWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.UserApi()

var id = id_example; // {String} id of the user


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

namespace Example
{
    public class userDeleteInputExample
    {
        public void main()
        {
            
            var apiInstance = new UserApi();
            var id = id_example;  // String | id of the user

            try
            {
                // Delete User
                apiInstance.userDeleteInput(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userDeleteInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserApi();
$id = id_example; // String | id of the user

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $id = id_example; # String | id of the user

eval { 
    $api_instance->userDeleteInput(id => $id);
};
if ($@) {
    warn "Exception when calling UserApi->userDeleteInput: $@\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.UserApi()
id = id_example # String | id of the user

try: 
    # Delete User
    api_instance.user_delete_input(id)
except ApiException as e:
    print("Exception when calling UserApi->userDeleteInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the user
Required

Responses

Status: 200 - return Json state of the user

Status: 401 - glap user delete failed


userListInput

List user

return the list of the user


/user/listUser

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/user/listUser"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        try {
            apiInstance.userListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userListInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        try {
            apiInstance.userListInput();
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userListInput");
            e.printStackTrace();
        }
    }
}

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

// List user
[apiInstance userListInputWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.UserApi()

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

namespace Example
{
    public class userListInputExample
    {
        public void main()
        {
            
            var apiInstance = new UserApi();

            try
            {
                // List user
                apiInstance.userListInput();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userListInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserApi();

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

my $api_instance = WWW::SwaggerClient::UserApi->new();

eval { 
    $api_instance->userListInput();
};
if ($@) {
    warn "Exception when calling UserApi->userListInput: $@\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.UserApi()

try: 
    # List user
    api_instance.user_list_input()
except ApiException as e:
    print("Exception when calling UserApi->userListInput: %s\n" % e)

Parameters

Responses

Status: 200 - return Json data of the user

Status: 401 - glap User list not return successfully


userPost

Informations Users

Information on users of our application


/user

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        Utilisateur body = ; // Utilisateur | Information on users of our application
        try {
            apiInstance.userPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        Utilisateur body = ; // Utilisateur | Information on users of our application
        try {
            apiInstance.userPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userPost");
            e.printStackTrace();
        }
    }
}
Utilisateur *body = ; // Information on users of our application

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

// Informations Users
[apiInstance userPostWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.UserApi()

var body = ; // {Utilisateur} Information on users of our application


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

namespace Example
{
    public class userPostExample
    {
        public void main()
        {
            
            var apiInstance = new UserApi();
            var body = new Utilisateur(); // Utilisateur | Information on users of our application

            try
            {
                // Informations Users
                apiInstance.userPost(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserApi();
$body = ; // Utilisateur | Information on users of our application

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::Utilisateur->new(); # Utilisateur | Information on users of our application

eval { 
    $api_instance->userPost(body => $body);
};
if ($@) {
    warn "Exception when calling UserApi->userPost: $@\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.UserApi()
body =  # Utilisateur | Information on users of our application

try: 
    # Informations Users
    api_instance.user_post(body)
except ApiException as e:
    print("Exception when calling UserApi->userPost: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: default - successful operation


userUpdateInput

Update user

Update information of the user who use our application


/user/UpdateUser

Usage and SDK Samples

curl -X POST "https://glap.fr/api/v1/user/UpdateUser?_id=&username=&email=&password=&tokken=&droits="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

    public static void main(String[] args) {
        
        UserApi apiInstance = new UserApi();
        String id = id_example; // String | id of the user
        String username = username_example; // String | username for the user
        String email = email_example; // String | email for the user
        String password = password_example; // String | password for the user
        String tokken = tokken_example; // String | tokken connection
        String droits = droits_example; // String | rights for the user
        try {
            apiInstance.userUpdateInput(id, username, email, password, tokken, droits);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userUpdateInput");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        String id = id_example; // String | id of the user
        String username = username_example; // String | username for the user
        String email = email_example; // String | email for the user
        String password = password_example; // String | password for the user
        String tokken = tokken_example; // String | tokken connection
        String droits = droits_example; // String | rights for the user
        try {
            apiInstance.userUpdateInput(id, username, email, password, tokken, droits);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#userUpdateInput");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // id of the user
String *username = username_example; // username for the user (optional) (default to true)
String *email = email_example; // email for the user (optional) (default to true)
String *password = password_example; // password for the user (optional) (default to true)
String *tokken = tokken_example; // tokken connection (optional) (default to false)
String *droits = droits_example; // rights for the user (optional) (default to false)

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

// Update user
[apiInstance userUpdateInputWith:id
    username:username
    email:email
    password:password
    tokken:tokken
    droits:droits
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiDeGlap = require('api_de_glap');

var api = new ApiDeGlap.UserApi()

var id = id_example; // {String} id of the user

var opts = { 
  'username': username_example, // {String} username for the user
  'email': email_example, // {String} email for the user
  'password': password_example, // {String} password for the user
  'tokken': tokken_example, // {String} tokken connection
  'droits': droits_example // {String} rights for the user
};

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

namespace Example
{
    public class userUpdateInputExample
    {
        public void main()
        {
            
            var apiInstance = new UserApi();
            var id = id_example;  // String | id of the user
            var username = username_example;  // String | username for the user (optional)  (default to true)
            var email = email_example;  // String | email for the user (optional)  (default to true)
            var password = password_example;  // String | password for the user (optional)  (default to true)
            var tokken = tokken_example;  // String | tokken connection (optional)  (default to false)
            var droits = droits_example;  // String | rights for the user (optional)  (default to false)

            try
            {
                // Update user
                apiInstance.userUpdateInput(id, username, email, password, tokken, droits);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.userUpdateInput: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserApi();
$id = id_example; // String | id of the user
$username = username_example; // String | username for the user
$email = email_example; // String | email for the user
$password = password_example; // String | password for the user
$tokken = tokken_example; // String | tokken connection
$droits = droits_example; // String | rights for the user

try {
    $api_instance->userUpdateInput($id, $username, $email, $password, $tokken, $droits);
} catch (Exception $e) {
    echo 'Exception when calling UserApi->userUpdateInput: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserApi;

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $id = id_example; # String | id of the user
my $username = username_example; # String | username for the user
my $email = email_example; # String | email for the user
my $password = password_example; # String | password for the user
my $tokken = tokken_example; # String | tokken connection
my $droits = droits_example; # String | rights for the user

eval { 
    $api_instance->userUpdateInput(id => $id, username => $username, email => $email, password => $password, tokken => $tokken, droits => $droits);
};
if ($@) {
    warn "Exception when calling UserApi->userUpdateInput: $@\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.UserApi()
id = id_example # String | id of the user
username = username_example # String | username for the user (optional) (default to true)
email = email_example # String | email for the user (optional) (default to true)
password = password_example # String | password for the user (optional) (default to true)
tokken = tokken_example # String | tokken connection (optional) (default to false)
droits = droits_example # String | rights for the user (optional) (default to false)

try: 
    # Update user
    api_instance.user_update_input(id, username=username, email=email, password=password, tokken=tokken, droits=droits)
except ApiException as e:
    print("Exception when calling UserApi->userUpdateInput: %s\n" % e)

Parameters

Query parameters
Name Description
_id*
String
id of the user
Required
username
String
username for the user
email
String
email for the user
password
String
password for the user
tokken
String
tokken connection
droits
String
rights for the user

Responses

Status: 200 - return Json data of the user

Status: 401 - glap User not udpate successfully