diff --git a/Frontend/src/assets/man/rest-mock/Body_section.png b/Frontend/src/assets/man/rest-mock/Body_section.png new file mode 100644 index 0000000..b2cdb84 Binary files /dev/null and b/Frontend/src/assets/man/rest-mock/Body_section.png differ diff --git a/Frontend/src/assets/man/rest-mock/Header_section.png b/Frontend/src/assets/man/rest-mock/Header_section.png new file mode 100644 index 0000000..68f3918 Binary files /dev/null and b/Frontend/src/assets/man/rest-mock/Header_section.png differ diff --git a/Frontend/src/assets/man/rest-mock/History.png b/Frontend/src/assets/man/rest-mock/History.png new file mode 100644 index 0000000..7e886a1 Binary files /dev/null and b/Frontend/src/assets/man/rest-mock/History.png differ diff --git a/Frontend/src/assets/man/rest-mock/Status_section.png b/Frontend/src/assets/man/rest-mock/Status_section.png new file mode 100644 index 0000000..3e3572a Binary files /dev/null and b/Frontend/src/assets/man/rest-mock/Status_section.png differ diff --git a/Frontend/src/assets/man/rest-mock/URL_section.png b/Frontend/src/assets/man/rest-mock/URL_section.png new file mode 100644 index 0000000..97242b9 Binary files /dev/null and b/Frontend/src/assets/man/rest-mock/URL_section.png differ diff --git a/Frontend/src/components/man/RestMockManComponent.vue b/Frontend/src/components/man/RestMockManComponent.vue index ce626dc..c38b925 100644 --- a/Frontend/src/components/man/RestMockManComponent.vue +++ b/Frontend/src/components/man/RestMockManComponent.vue @@ -7,7 +7,7 @@
-REST Mock is a tool allowing to create temporary REST endpoint called REST Mock, that allows to test REST clients.
Here you can set response body. This is sophisticated text editor with syntax-highlighting based on detected language. It works both with JSON and XML data.
This section contains three default and unremovable headers ("Connection", "Date", "Keep-Alive") as well as empty field used to adding custom header. Adding header with empty value is possible, but every header has to have a name. When adding new header is possible, the "Add" button becomes active.
+This section contains three default and unremovable headers ("Connection", "Date", "Keep-Alive") as well as empty field used to adding custom header. Adding header with empty value is possible, but every header has to have a name. When adding new header is possible, the "Add" button becomes active. New header is added after "Add" button is clicked.
This section allows to look into history of requests sent to current REST Mock. If request has body, "Show body" button appears in its entry. Also there is option to look into every request's headers by clicking "Show Headers" button. For now, History doesn't refresh automatically. To refresh it, click small refresh button on the right-hand side.
+This section allows to look into history of requests sent to current REST Mock. Entries are sorted by descending by date (newer are first). If request has body, "Show body" button appears in its entry. Also there is option to look into every request's headers by clicking "Show Headers" button. For now, History doesn't refresh automatically. To refresh it, click small refresh button on the right-hand side.
Let's say we want to create temporary endpoint that returns code 200 with body:
-{
+ {
"status": "completed",
"warnings": "none"
}
Additionally we want to set some headers:
- Name Value
+ Name Value
operation addition
priority urgent
- In this example we will focus on the left-hand side panel first as it contains most of the settings. On the top you see autogenerated URL link to your REST Mock service and the "Save" button that saves every setting on this page.
- Next, down from REST Mock URL are two text fields. One for content type of a response and second for the HTTP status of a response.
+ In this example we will focus on the left-hand side panel first as it contains most of the settings. On the top you see autogenerated URL link to your REST Mock service and the "Save" button that saves every setting on this page.
+
+
+
+
+ Next, down from REST Mock URL are two text fields. One for content type of a response and second for the HTTP status of a response.
+
+
+
+
These two fields are first things that we will set in this example. Out content type is JSON, so we will put "application/json" in "Response Content Type" field. The "Response HTTP Status" field we'll leave unchanged for now.
Next element of this tool is big "Response Body" text field. Here you can put data that you want your REST Mock to respond with. In this example we will put JSON from few lines above.
+
+
+
+
Last thing that we have to set are headers. Those we can set in Headers section.
+
+
+
+