Comments (19)
@nickpalenchar Really new to contributing. Can you rope me in while working on this issue? I'd really like to learn.
from hoppscotch.
Hi @saphal1998 I just emailed you, happy to work with you on this!
from hoppscotch.
Awesome @sblasa! I’ll be emailing you in a few hours 🙏
from hoppscotch.
Okay in that case, I'll open a new issue in place of #139 and #196 about some kind of scripting language and we can close this PR in favor of working on #147 collectively (it doesn't really make sense to have two sets of people working on the exact same feature).
from hoppscotch.
I like this idea, but I think it can be broken into a few features.
First step is adding a way to interpolate variables into the request (which would actually make them dynamic)
While there could be a few built-in variables, it would make sense to have a "pre-request" script that sets additional variables.
The example OP gives implies chaining requests, with subsequent ones having access to bindings for data returned from the previous request. This would be really cool and convenient, but is a larger feature to build out for sure.
I'll start by looking into an option for pre-request script/adding variables in requests.
from hoppscotch.
Hi @nickpalenchar and @saphal1998 ! Just wondering if I could assist with this issue? I wasn't sure if @saphal1998 was working on it based on the status. Thanks!
from hoppscotch.
Great! Please collaborate and discuss! 🎉
from hoppscotch.
Thanks, @liyasthomas -- oh forgot to ask if you could also assign this to me.
from hoppscotch.
You can go on as in your previous plans. Only one might be able to merge. Just shared another branch to see his implementation.
from hoppscotch.
@sblasa you want to work on this feature? Shall I assign this to you.
from hoppscotch.
@liyasthomas , yes, I would like to work on this feature, but I'd like to work with @nickpalenchar 's implementation of the features he mentioned to help me get started.
from hoppscotch.
oops, @sblasa, I see you don't have a public email; go ahead and send me one instead (email address on my github profile). Talk soon!
from hoppscotch.
Environment variables feature branch is in WIP here: https://github.com/terranblake/postwoman/tree/terranblake/basic-environment
from hoppscotch.
uh oh.. this is also being worked on here: https://github.com/liyasthomas/postwoman/tree/feature/dynamic-headers
Not sure how to proceed.
from hoppscotch.
This could also be merged with #139 potentially #196 and this use case of #147 was specifically mentioned here: #147 (comment)
from hoppscotch.
#147 (introducing environment variables) will most probably solve all these. @terranblake is working on it, and will make PR within few days.
from hoppscotch.
Okay. Thats fine. Lets hear from @nickpalenchar about latest updates.
from hoppscotch.
The work I've been doing with feature/dynamic-headers probably satisfies #139 more accurately, since its incorporating something similar to Postman's Pre-Request Scripts. This work could be moved to the new issue @NBTX plans to open in place of #139 and #196 , and I can continue there. It's been a very busy few weeks for me so my work's been slow to progress, but I'm hoping I'll be able to push this weekend and have it completed. When done, it can probably used in conjunction with #147
Additionally, @sblasa is looking at some syntax highlighting for pre-request scripts (potentially other places too); we might want to make that a separate issue for that as well
from hoppscotch.
Closing due to inactivity
from hoppscotch.
Related Issues (20)
- [feature]: support pre-request-scripts for collections but each request HOT 1
- [feature]: HTML Entity Encoding
- [bug]: Error when connecting to local WebSocket endpoint HOT 5
- [bug]: Desktop app TLS cert errors: Unacceptable TLS certificate - Linux AppImage 2023.12.6
- [bug]: double click to maximize window on mac doesn't work
- [bug]: can't import curl command with `data-urlencode` HOT 2
- [feature]: access original request (headers, body, etc.) in pre-request scripts and test scripts HOT 2
- [bug]: Missing `Sec-WebSocket-Protocol` header in websocket request when App reopend
- [bug]: Prettify Big Number Loss of accuracy
- [bug]: Lose "Test" and "Pre-request script" after import collection from Postman to Hoppscotch HOT 3
- [feature]: Improve lense performance
- [bug]: experimental feature "expand navigation" doesn't work HOT 4
- [bug]: Backend Server | Error: ENOENT: no such file or directory, open '/usr/src/app/packages/hoppscotch-backend/dist/mailer/templates/user-invitation.hbs' HOT 2
- [bug]: Latest update broke bearer tokens HOT 1
- [bug]: Large images on the main (landing) website HOT 2
- [bug]: Cookies are not being sent with GraphQL request. HOT 1
- [feature]: Improve REST collections searching HOT 5
- [bug]: The URL text input didn't make words wrap which made it hard to edit when URL is long. HOT 1
- [bug]: Cannot specify both `apiKey` on `Authorization` tab and jwt bearer token on the header. HOT 3
- [bug]: Generate Oauth2 Token on Collection does not store token 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 hoppscotch.