Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add authentication for an API to execute #512

Open
ghost opened this issue Feb 8, 2022 Discussed in #506 · 0 comments
Open

How to add authentication for an API to execute #512

ghost opened this issue Feb 8, 2022 Discussed in #506 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2022

Discussed in #506

Originally posted by Nihar1991 February 1, 2022
Hi Team,

i need to set an rest API which needs authentication. can anyone help me with sample code on how to give authentication of the API in yml file.
i refer the configuration document but did not get any idea on authentication.

REST API(POST): https://imservices-qa1-usch01.corporate.ingrammicro.com:9043/ea-api/v1/multiskupriceandstock
Req Body:

{
"servicerequest": {
"priceandstockrequest": {
"showwarehouseavailability": "True",
"extravailabilityflag": "Y",
"item": [
{
"globalskuid": "A300-9702ZT",
"quantity": 0,
"referenceid": "f8e2b66e-2df2-46db-9626-65be4e559ad7"
}
],
"includeallsystems": false,
"enableapigeecache": false
},
"requestpreamble": {
"customernumber": "40-555555",
"isocountrycode": "CA"
}
}
}

Basic Authentication: UserName: APPIMONLINE, Password: APPIMONLINE12345

Thanks
Nihar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants