Besides being an HTTP stub and having a REST API to configure the stubs, HttPlaceholder also has a user interface to manage HttPlaceholder. This user interface talks to the REST API.
How to get there
When you run the stub, you can just go to
http://placeholder/ph-ui. If you've secured the API with basic authentication, you need to log in first.
On the requests page you can see all requests made to HttPlaceholder. It will show which URL was called and if a valid stub was found for the requests. You can also open a specific request and view the details of this request.
You can also delete all requests here and filter all requests by a search term or tenant (category).
On the stubs page you can see all stubs configured in HttPlaceholder. When you click on a stub, you'll see the stub configuration in YAML.
You can add stubs in one of three ways: either by filling in the stub YAML, by filling in a form or by uploading a YAML file from your PC.
Adding stubs as YAML
Click on the "Add stubs (through yaml)" button in the sidebar.
You can add a single stub here or you can provide multiple stubs in YAML format.
You can also click on "Click here to add request or response value" so you can see what kind of values you can use in your request conditions and response definitions and insert them.
Click on the "Upload stubs" button in the sidebar.
You can select one or multiple .yaml files from your PC. The stubs will then be added to HttPlaceholder.