FrankR_ENTA author 6/2/2020 | |
Ok, I will start.
|
FrankR_ENTA author 6/2/2020 | |
And here is a simple Python script to illustrate accessing that data:
|
FrankR_ENTA author 6/2/2020 | |
Now I added Authentication to these endpoints.
|
T
|
Tim 6/4/2020 |
Hey Frank, |
FrankR_ENTA author 6/4/2020 | |
Hey Frank, I am excited for the possibilities of REST API also. I have created several views via GET for testing and it's going well. Though, it does take a bit to work out each providers particulars of their implementation. The one thing I have in production so for is to provide an endpoint to our public website to query our internal DB for available time slots (it's a scheduling app) and to write back when a slot is taken. This couldn't have been any easier. In ASPR I just turned on REST API via the button on the Misc page, and then used this blog post to work out the endpoints I needed to use. The next thing I want to figure out is how to call REST API endpoints from standard DB table events. For example, when I add a record to a table in my DB, I want to also insert data into an external system. So either in the Before or After record added event, make a call to the external endpoint. Or maybe it will be easier to add the record to the external system via the REST connection and use that event to execute the SQL to insert into my table. Anyway, that is what I'm going to work on next. Did you ever figure out how to change the API credentials based on the current user (the question you asked in your other post)? That seems like a good thing to be able to do. Tim
|