HTTPS request for endpoint

The sugarCRM is hosted on http along with that custom API is expose.
And when we are trying to access the exposed endpoint from different application which is hosted in https.
Does it create a problem ?

Parents
  • it should not give a problem, I would recommend to put your Sugar Instance behind a firewall if you still want to leave your instance without an SSL.

    Rodrigo Manara

    Sr. Developer

  • Hi

    The problem is stock API's are working fine. These problem is only for custom API.

  • can you post it an example of your request here plus URI ?

    Rodrigo Manara

    Sr. Developer

  • Hi

    Below is my URI and and request structure

    URI : http://{{URL}}/sugarcrm/rest/v10/Ord_Orders/UpdateOrderMethod

    JSON Request :

    Fullscreen
    1
    2
    3
    4
    {
    "o_id": "53",
    "custAccount": "C59"
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Register API Function :

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    public function registerApiRest()
    {
    return array(
    'MyGetEndpoint' => array(
    //request type
    'reqType' => 'PUT',
    //set authentication
    'noLoginRequired' => false,
    //endpoint path
    'path' => array('Ord_Orders','UpdateOrderMethod'),
    //endpoint variables
    'pathVars' => array('', ''),
    //method to call
    'method' => 'UpdateOrderMethod',
    //short help string to be displayed in the help documentation
    'shortHelp' => 'updating an order in SugarCRM',
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Reply
  • Hi

    Below is my URI and and request structure

    URI : http://{{URL}}/sugarcrm/rest/v10/Ord_Orders/UpdateOrderMethod

    JSON Request :

    Fullscreen
    1
    2
    3
    4
    {
    "o_id": "53",
    "custAccount": "C59"
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Register API Function :

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    public function registerApiRest()
    {
    return array(
    'MyGetEndpoint' => array(
    //request type
    'reqType' => 'PUT',
    //set authentication
    'noLoginRequired' => false,
    //endpoint path
    'path' => array('Ord_Orders','UpdateOrderMethod'),
    //endpoint variables
    'pathVars' => array('', ''),
    //method to call
    'method' => 'UpdateOrderMethod',
    //short help string to be displayed in the help documentation
    'shortHelp' => 'updating an order in SugarCRM',
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Children