Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+2
person also asked this
people also asked this
Replies
22 replies
Answers
1 answer
Subscribers
9 subscribers
Views
20679 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Web API with POST Method
erick258
over 7 years ago
Hi, I'm trying to create a query datastore WEB API with a POST HTTP Method. Is there a way to test request through Appian as I can't seem to find the field to edit the request body? Thanks
OriginalPostID-251548
Discussion posts and replies are publicly visible
0
aloks0189
Certified Lead Developer
over 7 years ago
@erick258 is the user belongs to Non-appian Environment who is accessing your Web API
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@erick258 if Yes, then how is he getting Third Party Credentials for accessing Web API, as per my Understanding Web API is meant for Exposing Appian Data Outside of World
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 7 years ago
@aloks176, right.. It seems erick258 is using web api to connect to another REST api. And that other REST api needs username/password which he is trying to send to web api.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@chetany even i too think so, it's better if erick258 explain what exactly he is trying to achieve (Whether he is trying to access Web-API from Non-Appian environment, or is he trying to connect to some other REST service using Appian Web API, in this case is the user from Appian or Non-Appian Environment, if Non-Appian Environment, then how did he expose the Third Party Credentials to Non-Appian Env user etc...), so that Appian Practionor directly can come to some conclusion
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
erick258
over 7 years ago
@aloks176 @chetany My test case is as follow, A third party is accessing an client access database in Appian which consist of username, password, and client id through API in which when the parameter username and password passed correctly, the API will return the client ID. In which the client ID will later be used when accessing another data.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
erick258
over 7 years ago
@aloks176 It is a Non-Appian environment accessing Web-API
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@erick258 can you please also say that in which environment are you trying to access Web API like java, .Net etc...
so that we can look forward to access this, and also please let us know how does the client knows the Credential details of Exposed Web API
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
client mean A Third part (Non Appian User)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
party*
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@erick258 however if the Third Party is from Java Environment then we can use Jersey Client implementation as attached in screenshot,
here employeeId is the Parameter which is required to fetch the Employee Details from DB, and name contains the Third Party Credentials for UserName, password contains the Third part Credentials Password, url contains the Web-API Url having required parameter that is employeeId, so after Execution i am successfully able to get the Data in JSON Format from the WebAPI i.e. from Appian Environment to Non-Appian Environment
Here username and passwords are not part of Web-API Parameters, it's just the authentication details for accessing the Web-API similar as a!scsField() inside a!httpQuery()
Hope this will Help You
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<
>