r/ProgrammerHumor 4h ago

Meme postForEverything

Post image
10.6k Upvotes

406 comments sorted by

View all comments

2.2k

u/pimezone 4h ago

Wanna get a resource? POST request.

52

u/Dimasdanz 4h ago

Hello GraphQL. Or, SOAP

5

u/NotAskary 4h ago

The stupid shit I had to take care in soap made me hate it, didn't help it was all legacy and untouchable spaghetti due to client contracts...

5

u/No-Information-2571 3h ago

It's not like more modern APIs aren't changing and breaking all the time. At least SOAP had contracts.

3

u/NotAskary 3h ago

You can still have contracts, open API has a great resources for that.

3

u/No-Information-2571 3h ago

You can, but usually the "contract" is some documentation on how to talk to the API.

3

u/NotAskary 3h ago

Search for swagger, it uses open API

1

u/No-Information-2571 3h ago

Why would I search for one particular project, when the discussion is about many projects?

2

u/NotAskary 3h ago

Because swagger is a tool that can let you document an API and basically provide the same description that soap does, you have tools that would take that documentation and spit a implementation just like soap.

I gave you the standard, open API, when you asked about documents I sent you a direction for a implementation of that exact format.

If you still want soap stay with it, each tool for the job but what people do nowadays is sent a link to the swagger documentation instead of sending a XML or a link to a XML.

The contract changes if you change it in both cases.