Comments (6)
Forgot to mention, I love Mockoon, thank you for this glorious thing!
from mockoon.
so what about:
- define a route /test/xxxx
- request it with /test////xxxx
- app convert it to /test/xxxx so you get the declared route with defined status without any redirection?
from mockoon.
ok, it's done, it will be released in v1.0.0 in the coming weeks (before end of August), thanks for your help 👍
from mockoon.
Thanks, I love that you love Mockoon 😄
Concerning the // I will rewrite the url to match the input mask that remove consecutive slashes.
What do you think, should I silently serve the route (the URL still shows multiple slashes) or redirect with a 301?
from mockoon.
I have seen all variations, since it's up to the server or sometimes application, but I believe silently serving the route is most common. In my experience I would rank them like this in order from most common to least common:
200
302
404
301
maybe, but I'm honestly not sure I have seen this.
I would be happy with a 200, or with allowing consecutive slashes so one could replicate any behavior.
from mockoon.
That makes perfect sense and would solve the issue I had.
from mockoon.
Related Issues (20)
- State purge admin endpoint HOT 3
- Data buckets as response rule target HOT 8
- Allow data buckets to be reset to their original state via signal (CLI) or endpoint request HOT 2
- Using mockoon via a tunneling agent HOT 1
- March 2024 release - v8.0.0
- Manipulating global env variables via the CLI or admin API HOT 6
- No logs written in docker container HOT 2
- Regression: option to stop via mockoon-cli has been removed HOT 1
- Callback PATCH doesn't work HOT 3
- Json validation on beautify HOT 1
- Sync server reconnect with old token after switching to free account HOT 1
- Desktop app: replace context-menu by dropdowns
- Add option to disable admin API in CLI and serverless HOT 1
- Admin API: environment variables add/edit endpoint HOT 1
- Admin API: data buckets regeneration specific endpoint HOT 1
- Enable templating in TLS fields HOT 1
- April v8.1.0
- Files cannot be opened in macos (v8.1.0) HOT 1
- April v8.1.1
- Since v8.1.0 multi open allow to open duplicated environments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockoon.