PHP Web Services Dilemma

I need to create a web service for my site, this web service will allow all registered users to access all their data stored in the system.

I have different data types such as documents (txt format), excel sheets (csv), etc.

Now I read a lot of articles on how to create a web service, and I found the following options:

  • Wsdl
  • REST
  • SOAP
  • HTTP based API

I saw that SOAP and WSDL are complex, but it used a lot, REST and HTTP are very simple, but fewer people use it.

Should my web service be simpler for the user? or developer? or should i design both?

+4
source share
2 answers

You just failed a few types of related methods.

In general, it all depends on your audience / software that accesses your content, which is important.

should my web service be simpler for the user? or developer? or should i design both?

Always easier for your users. Have you created a web service for users, not developers?

The only thing you should consider:

Is it worth it?

And the only one who can answer this is you yourself.

+6
source

There is no right or wrong. Just create the API you want to use.

Better yet, find out what your actual users prefer.

+4
source

Source: https://habr.com/ru/post/1387421/


All Articles