I'm creating a CRUD style API using PHP Tonic that uses the same URL (for instance /somepath/person) to which you can do POST, GET, PUT and DELETE requests. But I've run into a problem with testing the API. It's obviously easy to test GET (just visit the URL with a browser) but how can I test the remaining 3 request methods?
I'm imagining a desktop CRUD client where I get a simple text box in which to put query parameters, an URL box and a send button.
Does an application like this already exist, or will I have to make one?
Alternative question, can I use CURL for this? In which case, how?
CRUD refers to the four basic operations a software application should be able to perform – Create, Read, Update, and Delete. In such apps, users must be able to create data, have access to the data in the UI by reading the data, update or edit the data, and delete the data.
Most applications on the internet are actually CRUD applications. For instance, let's take Facebook as one of the common examples – it's just a CRUD application where users can create, delete, change information about themselves, and read information about other people.
In computer programming, create, read, update, and delete (CRUD) are the four basic operations of persistent storage. CRUD is also sometimes used to describe user interface conventions that facilitate viewing, searching, and changing information using computer-based forms and reports.
In its base form, CRUD is a way of manipulating information, describing the function of an application. REST is controlling data through HTTP commands. It is a way of creating, modifying, and deleting information for the user. CRUD functions can exist in a REST API, but REST APIs are not limited to CRUD functions.
I've used the plugin "Advanced REST Client Application" for Chrome and it work perfectly and is easy to use.
Well , Very good question! The following Chrome extensions can get the job done
Second answer, yes curl can do the job for you - here's an example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With