vinceburn / doubleagent Goto Github PK
View Code? Open in Web Editor NEWMock Server Written in Swift
License: MIT License
Mock Server Written in Swift
License: MIT License
Document the Repo Structure in the README
Complete the toDoubleAgent documentation
The response part of the Call Info doesn't need to be searchable, would it be better to use "group" instead?
Currently the lookup body must be a String. It can be a String representing a JSON, but it must be a string, which leads to a lot of escaping.
Make it in a way that it could be passes as a String or as a JSON Object, like for the response.body.
The current use of a String is due to some equality problem when using the Codability.AnyCodable wrapper to store the information.
Current Development setup requires user to do some manual configuration and generate an Xcode project from the swift package manager.
Then they need to setup a custom working directory in the scheme.
Add a terminal app that can process a folder of input file and send them to a running Double Agent.
Currently when a non existing command line argument is use (e.g. --Map instead of --map) the toDoubleAgent tool act as if the argument was not present. Which is reasonable, but the user will believe that the commend worked as he expected.
Solution: Report an error when an invalid argument is used, it is most likely an error the user would like to know about to avoid lost of time debugging.
Currently the toDoubleAgent --help command will create and modify the __precessed folder.
The help
command should have no side effects.
When the toDoubleAgent app upload the files to the mock server it prints out the request status code in the form "Response: 400".
Would be nice to update that message so it standout when the response is not a 200.
Maybe: "โ Response: 400"
Give more flexibility on use case sharing by allowing macOS filas alias to be use for the mapping file
Double Agent use an API to update / change its mapping while running. Document it in the Help API.
Rewrite the toDoubleAgent tool using TDD for fun
Especially when running the server from Docker the response time is slower than expected.
Currently it is not that bad as it allow to fully appreciate the loading visual of a screen, so priority to fix will not be high.
Might relate to #8
Double Agent use an API to update / change its mapping while running. Document it in the README file.
Some POST API differ only by their body information. Add functionality to have different response for different body.
Different Mock Use Case can use a shared common data set.
To avoid duplicating the files in every data set macOS Alias could be use.
Currently Alias are not supported.
__processed
folderURL(resolvingAliasFileAt: $0)
The get all API currently returns both part of all call (call matching info and response data), which can make the response very big and slow.
Remove the response data from the response.
Large data set will cause resetAll to take longer than expected.
ex. 16 call with 3/4 of the input files being over 300k and 2 being around 800k
Check to improve record removal from the data base.
Currently when the mock server find a matching call, a header is added to the response to indicate the ID of the call info that was returned.
Would it be interesting to add, path, method and lookup info to the returned headers?
Improve the multiple match error to include useful information to help identify what is the problem with the used data set
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.