function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sumant KuchipudiSumant Kuchipudi 

How to allow rest api to outside with basic authentication

Hi,

I have below RestResourse and would like to give access to third party to gain access to this API through simple authentication, would it be possible? can I have an example on how to invoke this API from (Java/python)
@RestResource(urlMapping='/ELPData/*')
global with sharing class ELPRESTController {
	@httpPost
    global static String getFellowsData(List<ELPFellow> fellows){
        System.debug(' fellows '+fellows);
        return 'SUCCESS';
    }
    
    global class ELPFellow {

        global String FirstName { get; set; }
        global String LastName { get; set; }
        global String MiddleName { get; set; }
        global String Title { get; set; }
        global String Gender { get; set; }

    }
}