How to run a Module as a Web API?

Welcome Forums General PowerShell Q&A How to run a Module as a Web API?

This topic contains 1 reply, has 2 voices, and was last updated by

2 years, 3 months ago.

  • Author
  • #60387

    Points: 0
    Rank: Member

    I'm working on a Slack integration and want a co-workers bot to talk to my PowerShell module. I've found a HttpListener module written that'll use .Net but I can only get it to run locally. My co-worker says great things about Node.JS so I'm curious about going that route. Basically I don't know what the best solution would be.


  • #60583

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Well, PowerShell isn't a Web scripting language. Nor is it a Web server. You're going to need to have a Web server for your code to live on, and I'd suggest using something that works well under a Web server. Node.js, sure. ASP.NET. Whatever floats yer boat. But probably not PowerShell.

The topic ‘How to run a Module as a Web API?’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort