postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

Add angular http call snippet in Generate Code Snippets

Open Ijaz-Tufail opened this issue 4 years ago • 13 comments

Hi, Please can u add an Angular HTTP call snippet in Generate Code Snippets, That will very help full. Thanks

Ijaz-Tufail avatar Sep 22 '20 11:09 Ijaz-Tufail

I can work on this.

Abhirup-99 avatar Sep 22 '20 15:09 Abhirup-99

@umeshp7 can I work on this?

Abhirup-99 avatar Sep 22 '20 23:09 Abhirup-99

Yes please

On Wed, Sep 23, 2020, 4:20 AM Abhirup Pal [email protected] wrote:

@umeshp7 https://github.com/umeshp7 can I work on this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/postmanlabs/postman-code-generators/issues/345#issuecomment-697032572, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAQ6MOHXALGW2GHUYZEPI3SHEWNJANCNFSM4RVU3JQA .

Ijaz-Tufail avatar Sep 23 '20 03:09 Ijaz-Tufail

I wanted to ask how to do I compile it down to js. It would require angular core and the package has to be imported in appmodule, that is the case in the framework. This can be done syntatically but it can't be tested. Further thoughts would be helpful. @umeshp7 @Ijaz-Tufail

Abhirup-99 avatar Sep 23 '20 18:09 Abhirup-99

You can do this just like JQuery/AJAX call syntax. You can write code to import the HttpClient module from "@angular/common/http" and write an Http call syntax angular has provided.

On Wed, Sep 23, 2020 at 11:14 PM Abhirup Pal [email protected] wrote:

I wanted to ask how to do I compile it down to js. It would require angular core and the package has to be imported in appmodule, that is the case in the framework. This can be done syntatically but it can't be tested. Further thoughts would be helpful. @umeshp7 https://github.com/umeshp7 @Ijaz-Tufail https://github.com/Ijaz-Tufail

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/postmanlabs/postman-code-generators/issues/345#issuecomment-697822678, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAQ6MPUE4NP7ZSD4BGQKS3SHI3J7ANCNFSM4RVU3JQA .

Ijaz-Tufail avatar Sep 23 '20 18:09 Ijaz-Tufail

The writing is not the problem, I am versed in angular. How to compile and run it, providing the syntax is not the issue. Adding tests and making sure it runs is the issue. @Ijaz-Tufail

Abhirup-99 avatar Sep 23 '20 18:09 Abhirup-99

@Abhirup-99 Hello, are you working on this issue? were you able to compile and run it?

sheikhimtiaz avatar Oct 06 '20 14:10 sheikhimtiaz

@Abhirup-99 Hello, are you working on this issue? were you able to compile and run it?

I couldn't compile it down. I can write the syntax down, but compiling it would require angular cli and the other stuff, which would be difficult to bring about.

Abhirup-99 avatar Oct 06 '20 14:10 Abhirup-99

No, I'm not working on it. You have to create an angular app to test it.

On Tue, Oct 6, 2020, 7:53 PM Abhirup Pal [email protected] wrote:

@Abhirup-99 https://github.com/Abhirup-99 Hello, are you working on this issue? were you able to compile and run it?

I couldn't compile it down. I can write the syntax down, but compiling it would require angular cli and the other stuff, which would be difficult to bring about.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/postmanlabs/postman-code-generators/issues/345#issuecomment-704324471, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARAQ6MLIZH3IS7SW2YEM6LDSJMVNZANCNFSM4RVU3JQA .

Ijaz-Tufail avatar Oct 07 '20 08:10 Ijaz-Tufail

Ok. I am working on it.

sheikhimtiaz avatar Oct 07 '20 12:10 sheikhimtiaz

Any updates on this feature?

ancgate avatar Sep 07 '21 18:09 ancgate

Any updates on this feature?

santidesimone avatar Apr 12 '22 03:04 santidesimone

Any updates on this feature ?

thiagoericson avatar Mar 24 '23 18:03 thiagoericson