I am going to use this mock rest server for use in our testing and would like the ability to check which endpoints have been called. I have added a very basic endpoint which can be used to check all the calls that have been made against the server to give behaviour assertions against the calls on the server.
The following points I was unsure about when creating the server and would appreciate feedback:
Should calls be recorded per mocked request or globally as implemented?
Should the reset endpoint also reset the record of calls?
Feedback very welcome and requirement for edits expected.
I am going to use this mock rest server for use in our testing and would like the ability to check which endpoints have been called. I have added a very basic endpoint which can be used to check all the calls that have been made against the server to give behaviour assertions against the calls on the server.
The following points I was unsure about when creating the server and would appreciate feedback:
Feedback very welcome and requirement for edits expected.