Community discussions

MikroTik App
 
aboshhab
just joined
Topic Author
Posts: 18
Joined: Tue Nov 20, 2018 9:00 am

anyone explain advantages of rest api over old api?

Wed Aug 31, 2022 4:40 am

hello everyone
may i ask what the advantages of new rest api?

i use standard api with php
is rest api better ? and what difference bt them?
 
User avatar
vecernik87
Forum Veteran
Forum Veteran
Posts: 891
Joined: Fri Nov 10, 2017 8:19 am

Re: anyone explain advantages of rest api over old api?

Wed Aug 31, 2022 6:05 am

The new REST API is easier to implement than the old one - if follows common RESTful approach instead of reinventing wheel with proprietary, binary based communication. If you already have implementation already done, you won't gain much if you decide to use the new one.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1711
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: anyone explain advantages of rest api over old api?  [SOLVED]

Wed Aug 31, 2022 8:24 am

Just be aware that https (ssl) might be quite slow on many devices.
 
aboshhab
just joined
Topic Author
Posts: 18
Joined: Tue Nov 20, 2018 9:00 am

Re: anyone explain advantages of rest api over old api?

Wed Aug 31, 2022 10:29 am

The new REST API is easier to implement than the old one - if follows common RESTful approach instead of reinventing wheel with proprietary, binary based communication. If you already have implementation already done, you won't gain much if you decide to use the new one.
in general do you advise me to use rest-api instead of old one?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12693
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: anyone explain advantages of rest api over old api?

Wed Aug 31, 2022 1:47 pm

If you start from 0, yes...

If you already have implemented something, you can continue.
 
aboshhab
just joined
Topic Author
Posts: 18
Joined: Tue Nov 20, 2018 9:00 am

Re: anyone explain advantages of rest api over old api?

Wed Aug 31, 2022 11:50 pm

If you start from 0, yes...

If you already have implemented something, you can continue.
ok
but what advantages of rest api over old api ?