REST API

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

REST API

Post by utony » 2020-04-07 14:26

Anyone know how to use the AG system to create REST API??? I have an app interface that can accept JSON, however, I don't know how to do that :(

If anyone can help that would be awesome!!!! Right now all I need is to display the data. The AG system can still be the backend.

Tony

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1667
Joined: 2018-04-01 10:12

Re: REST API

Post by pbottcher » 2020-04-08 21:24

Hi,

if you use the forum search you may hit this entry. Give it a try.

viewtopic.php?t=3371
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

Re: REST API

Post by utony » 2020-04-09 00:16

Has anyone used this API? I followed the instructions and it does not work. Just wondering if anyone has been able to get it going.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1891
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: REST API

Post by jsetzer » 2020-04-09 08:55

Before spending too much time you should check if that interface really meets your specific requirements for an API concerning permissions etc..
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.14 Revision 1665 + all AppGini Helper tools

utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

Re: REST API

Post by utony » 2020-04-09 13:05

Any suggestion on how to check that? Based on description it seems to do it all, main function I’m looking for is get function to just display data.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1891
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: REST API

Post by jsetzer » 2020-04-09 13:24

Only Admin users can use this API.
Hi,

it says in the description (and I have asked the developer) that this HTTP-interface will always connect as admin user. This means your REST call will always have admin privileges on serverside. This means you will have to implement restrictions by yourself if you want to show only records, which the currently logged in user is permitted to see. You will have to implement your own queries. If you don't do this, I'm afraid the JSON response will always return all records to the client. Even if there are group- or user-permissions.

This may be OK for many scenarios or even useful in certain situations. But for me it is important to know about this and to notify you and others. It is a small but very important detail from my perspective.

Best,
Jan
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.14 Revision 1665 + all AppGini Helper tools

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1667
Joined: 2018-04-01 10:12

Re: REST API

Post by pbottcher » 2020-04-10 10:32

Hi,

as usual, it helps if you describe what you try to do and what issues you face currently.

The API itself works and has of course some limitations, but you can also easily enhance it to your needs.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

utony
Veteran Member
Posts: 113
Joined: 2020-04-03 18:37

Re: REST API

Post by utony » 2020-10-12 12:57

I'm just looking to enter data into my AG front end and then display in my IOS app using the JSON get function. Just can't wrap my head around the steps to make this work. Any help would be great.

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 354
Joined: 2018-03-04 09:30
Location: David

Re: REST API

Post by D Oliveira » 2020-10-12 20:21

I agree with Jan, focus on developing a secure authentication method and then implement the API, vulnerability is the last thing you want associated to your app

User avatar
jmcgov
Veteran Member
Posts: 89
Joined: 2018-12-19 01:31
Location: Northern Ireland

Re: REST API

Post by jmcgov » 2024-11-22 19:10

I note comments above about permissions, and now see it is marked as deprecated on github. Are there other API options?

Post Reply