uaihebert / uaimockserver Goto Github PK
View Code? Open in Web Editor NEWuaiMockServer will create a Rest Server for you with only one command line.
License: Apache License 2.0
uaiMockServer will create a Rest Server for you with only one command line.
License: Apache License 2.0
Hi!
I didn't take a look at the code yet, but I was having this problem when trying to call the route. I was using the version 1.2.4.
I leave a slash in the end of my context:
"context": "/web-app/api/",
And also in the beginning of the path from a request:
"path": "/customer/1234"
I'll try to send a PR at home later on.
PS: I edited the JSON file manually (I didn't use the GUI)
Configure checkstyle to make the project more consistent.
Create a forward response that will response with a header containing the destination (URL) and a HTTP status like 307 by default
Create a Callback feature
Validate the body using a given xml
e.g. JC33
Validate the body using a given regex
E.g.: /^([\w-]+(?:.[\w-]+))@((?:[\w-]+.)\w[\w-]{0,66}).([a-z]{2,6}(?:.[a-z]{2})?)$/i
Accept values like:
/customer/{id}
Create support for file download
e.g. http://uaiMockserver/file.jpg will be linked by a full file path
Create a GUI where the user will fire a request and using the request data and the response data will create a new route.
Create a group route by Application
Adjust interface inputs
It would be nice to just print the server path in console when starting the server locally
also will be helpful to have a method getRootUrl() on the server instance when writing tests to get the configured route when starting/stopping the server, so we don't have to hardcode the path to the mock server in the tests.
A default route just in case if a request cannot be found, the default route will be displayed.
e.g.:
GET /uaiMockServer/doNotExists
response ---> 401 - blocked
Create a WAR build
Make the validation if a header/queryParam/body/cookie contains a given text
e.g. "A B C D" should be true if the given text is "B"
Adjust interface
For every update in the uaiMockServer.json a backup file is created.
To avoid the creation of a lot of files, other backup options should be allowed:
Create Cookie Validation for an Incoming request.
I find this utility very useful, so thanks for sharing it with the world!
Often times our software depends on 3rd party SOAP services and so we need to mock their responses and test the behaviour with BDD. For the purpose we currently create whole SOAP server in php and return the responses we expect to be returned.
I have tried using this tool to achieve that, but it does not have a parameter for receiving BODY in the POST requests. In SOAP you may have multiple calls on the very same endpoint, so having the BODY in there is essential.
Would you please consider adding SOAP support or POST request BODY support?
A route will have the following states:
Create a button that will add automatically the wild card inside the body/header/queryParam/cookie
Create the possibility of returning a header sent by the user.
If the user sent the header ABC it will be added in the response.
Validate a full JSON given by the user:
e.g.: "{'name': 'JC', 'age':33}"
Take a look at: http://jsonassert.skyscreamer.org/
Detail in the wiki and in the code what are the body validators
wee need to update the old FE and update all the URLs. and also fix a bug that it was not selecting the menu.
Adjust interface inputs
Create an input and a select to allow the user to choose which kind of validation he wants.
Adjust interface to display the regex in the input
Right now i am getting a backup file every time i add a request or delete one.
It would be nice if this is configurable when starting the server so that we can turn it on or off.
I am using git to manage the config and i don't need the backups. it just creates too much files.
Display full URL in the route list page
Make the server return cookies
Adjust the interface
Adjust interface
Create a configuration to hold a request for x time.
It should be something like:
request {
path = "/holdTheRequest"
method = "GET"
holdTheRequestInMilli = 500
}
Create body validation by text only.
E.g.: "THIS exactly TeXt"
Display required header and query param in the same box of the non required header/query
Allow a Response Body to be read from a file
Adjust interface
Adjust inputs to receive json path
Create a docker to be used with uaiMockServer
Validate if the given paths are present.
e.g.: person.name=JC
person.age=33
Create the body validation by xpath
e.g.: /bookstore/book[1]/title
Validate against a given full path file
e.g: /home/uaihebert/picture.png
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.