mockoon / mockoon Goto Github PK
View Code? Open in Web Editor NEWMockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Home Page: https://mockoon.com
License: Other
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Home Page: https://mockoon.com
License: Other
Is it possible to add light UI colors (or some way to define colors)? It's difficult to read: it's too dark.
Describe the bug
Content-Type header is currently chosen from a drop down which makes it limited in options. If it is defined again in the headers section, give priority to the custom value over the pre-defined drop down option.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Content-Type header configured in the Headers section of response should be given priority.
Screenshots
NA - simple to reproduce
Desktop (please complete the following information):
It would be useful to have a log of API requests that have been received when debugging integrations.
Response time for a basic response sourcing the body from a file is at least 2 seconds! Which isn't great.
I've timed a bunch of requests:
1157ms
923ms
485ms
631ms
Server response time should be under 200ms
My payload:
[
{
"title": "Hello. Today is Thursday.",
"body": "Finally, it’s nearly the weekend - not quite yet. But we’re now over the hump-day, and have two more days to go! ",
"key": 1,
"submitData": "By Ozzie - Thursday, 26th of July, 2018."
},
{
"title": "Long title post components?",
"body": "This is a complex matter, I like the short and snappy title, but I will need longer titles to make it work. ",
"key": 2,
"submitData": "By Ozzie - Thursday, 26th of July, 2018."
},
{
"title": "This just keeps getting better",
"body": "Important posts tag. Yep, a new tag that will be sorted so that they are at the top of the page, they will be more obvious, and will get a neat litle tag saying they're important",
"key": 3,
"submitData": "By Ozzie - Friday, 27th of July, 2018.",
"important": false,
"pinned": false
},
{
"title": "Wanted to end today on a high.",
"submitData": "By Ozzie, Sunday, 19th of July, 2018",
"body": "The implementation for sorting pinned posts away from standard ordinary posts is simple: Pull them out, delete their entry in the main object, create a new array, and then just add them onto the start once the main array has been populated. But it's a tad slow.. And I don't know why :(",
"pinned": true,
"important": false,
"key": 4
},
{
"title": "What's to come...",
"submitData": "By Ozzie, Sunday, 19th of July, 2018",
"body": "Syntax highlighting and markdown support (either that or a custom language), a rewrite of the post generation components and general tidying up of the code base. Also, while it doesn't necessarily matter, post generation is a bit slow. Not sure why, but yeah it's not as quick as it is supposed to be, though I think I can address that with the rewrite. ",
"pinned": false,
"important": false,
"key": 5
},
{
"title": "Hello World",
"submitData": "Not sure of the date, this is just a test",
"body": "Literally, this is just a test. I think the [There's More] button is broken",
"important": false,
"pinned": false,
"key": 7
},
{
"title": "Nearly finished the frontend!",
"submitData": "Thursday, 16th of August, 2018",
"body": "**This is just a test**\n Things that I need to complete:\n\n+ Post submit page \n\n+ The backend",
"important": false,
"pinned": false,
"key": 8
}
]
It's impossible to past any information on all field (like endpoint, body, etc..)
OS: Mac OSX (10.12.6 (16G29))
Builds:
Tests:
Publish:
Waiting for dependencies to be compatible
Describe the bug
The route path does not allow consecutive (more than 1) slashes. This leads to a 404 if the route is requested with consecutive slashes in it.
To Reproduce
Steps to reproduce the behavior:
foo//bar
foo/bar
(slash was removed)http://localhost:3000/foo//bar
Expected behavior
Either the server should allow routes with consecutive slashes or else transparently serve the route with the simplified path by removing consecutive slashes from incoming requests.
Desktop (please complete the following information):
I'd love to see an options request support.
Please add possibility to save your environment into JSON file(maby with other file type but with json structure inside, with that feature we can use "Open In..." select Mockoon by default to open environment file, it will be very-very-very useful feature), it will be a great feature if i want to save my environment in project repository and use it on other development machines
I really want to help you to improve this app, if you need some help, please write me😅 I can try to implement this functionality if you open sources for me or something like that
Hey,
if I want to send a ZIP file I get following error when I try to unzip it:
Error: invalid central directory file header signature: 0x80014
If I test it with unzip -tq Archive.zip
the output says:
error [Archive.zip]: missing 113 bytes in zipfile
(attempting to process anyway)
error [Archive.zip]: start of central directory not found;
zipfile corrupt.
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
Avoid CORS headers overriding custom headers, or merge them.
Especially this one:
Access-Control-Allow-Headers: Content-Type, Origin, Accept, Authorization, Content-Length, X-Requested-With
Hi,
I want to mock the URL with query parameter like
/wp-json/wp/v2/categories?per_page=50
its throwing error:
Cannot GET /wp-json/wp/v2/categories
When I save the URL without query parameter eg:
/wp-json/wp/v2/categories
then its working fine.
Pls, help to store URL with a query parameter.
Thnaks in advanced.
Describe the bug
After downloading the AppImage from the website and attempting to run the application; after the initial integration dialog, the following output appears in the console and the application fails to launch.
module.js:472
throw err;
^
Error: Cannot find module '/tmp/.mount_mockoodTGR9I/resources/electron.asar/browser/init.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:431:7)
at startup (bootstrap_node.js:155:9)
at bootstrap_node.js:551:3
NOTE: removing ~/.config/mockoon had no effect
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Application should launch providing mocky goodness for all
Screenshots
N/A
Desktop (please complete the following information):
Additional context
0.4.0 AppImage ran and continues to run fine.
We should be able to setup route to proxy to a real api.
ie:
In mockoon we setup GET: localhost:3000/get/url
will be proxied to GET: https://www.google.com/get/url
That way we can mock only SOME endpoints instead of an all or nothing aproach
Investigate how Postman (or other softwares) envs could be imported
Can I somehow opt out of the data collection through google analytics?
Builds:
Tests:
Publish:
Is your feature request related to a problem? Please describe.
Thank you for the logs tab feature. There is no way to export the request logs to a report/file.
Describe the solution you'd like
An option to export the request logs to a text/csv format.
Describe alternatives you've considered
Atleast a copy/paste option
Additional context
with context menu and/or copy paste shortcuts
Mockoon supports a "/*" route that will handle all requests that were not previously routed, which is awesome, however you have to put this route at the end. Otherwise it will prevents subsequent routes from getting considered. To help organize the routing strategy, it would nice if we could reorder routes by dragging them up or down.
Describe the bug
When editing somewhere in the url, the cursor automatically jumps to the end of the url. I had to reposition my cursor every time.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The cursor moves normally.
Screenshots
Desktop (please complete the following information):
The FAQ currently states
Yes, but only anonymous data through Google Analytics, with
some very basic metrics like: number of environments and routes
you have, actions done in the application (route select, server started, etc).
Suggest showing an example (of all possible collected data) in-line or directly linking to an example submission.
When talking about being tracked, both commercial and residential users must be wary of ambiguity.
Even when running the app in privileged mode , it will not allow you to specify ports less than 1024 as the listening port. Being able to use 443 or 80 are pretty important for us as we can't always easily change our clients to test on different ports.
Builds:
Tests:
Publish:
depends on #3
Please vote below with reactions (👍) for import / export formats you would like most to see in Mockoon. You can also comment to add other formats.
Please keep this issue clean by using emojis and avoiding commenting too much.
Maybe I'm doing it wrong, but I don't get how to have a route with GET URL parameters like http://localhost:3001/test?param=hello
. Is this not supported?
Having a sync feature similar to Postman would be nice. Two approaches:
It would be wonderful if I can configure a url, and proxify all calls from a mockoon server to that other server.
Then the mockoon server would replay what it recorded as pairs of requests/responses, like mountebank.
Use case?
Maybe mockoon could provide its own certificate or let the user provide them ?
Is your feature request related to a problem? Please describe.
I may create different responses based on the input parameter from previous POST. E.g, I make a request like this: '\tag\ {id} \audience'. Then I want to create different response for each 'id'.
Describe the solution you'd like
A dynamic response template like this:
// switch({id})
'1': {audience:100},
'2': {audience:150},
'3': {audience:120}
/ switch
Describe alternatives you've considered
A random number generator is also workable. Just like this:
{
audience: // random (number:3) /random
}
It returns a random number between 100-999.
Additional context
No.
i'm trying to make mockoon answer to an URL which contains an array in the header:
url?date=2018-05-06&actors=RIRI&actors=FIFI&actors=LOULOU
this might already be possible but i can't seem to find how in the doc or make it work myself
This is a very coonvenient app, great job by the way
The dynamic body templating is already pretty awesome, but it would be even better if you could add support for 'oneOf' and 'someOf'.
The 'someOf' picks one or more items from any given array, with optional parameters defining the minimum and maximum amount of items to be picked, returning an array with the picked items.
"type": "{{someOf ["apple", "banana", "cherry", "orange"] 1 3}}"
The 'oneOf' picks one single item from an array and returns the item.
"type": "{{oneOf ["small", "medium", "large"]}}"
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.