# Simple OpenApi to Powershell module creator

**URL:** <https://forums.powershell.org/t/simple-openapi-to-powershell-module-creator/24648>\
**Category:** Open Discussions\
**Created:** [August 28, 2024, 8:00am UTC](https://forums.powershell.org/t/simple-openapi-to-powershell-module-creator/24648 "2024-08-28T08:00:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZaMotH](https://avatars.discourse-cdn.com/v4/letter/z/258eb7/32.png) [@ZaMotH](https://forums.powershell.org/u/ZaMotH)\
**Post date:** [August 28, 2024, 8:00am UTC](https://forums.powershell.org/t/simple-openapi-to-powershell-module-creator/24648/1 "2024-08-28T08:00:15Z")

</div>

Hello,

I created a simple powershell module creator published here [GitHub - tfarray/OpenApi-To-PowerShell: Human readable OpenApi to PowerShell Module Code Generator](https://github.com/tfarray/OpenApi-To-PowerShell)

I would like to know if some of you were willing to give it a try.

Why did I build this code ?

- I couldn’t find a simple-light weight creator
- I wanted the generated code to be as simple as possible

Key features :

- Creates 2 modules
  - a .ps1m which you will modify the code to make it work, but that will only contain 2 functions :
    - One to initialize the tool (required to specify which credentials will be used for all the commands)
    - One command called Invoke-ModuleName which will run ALL transactions with the API

  - a .ps1 file that you won’t touch, but that will contain ALL the commands of the API

- All the code is human readable

Things I would like to add :

- A help file self generated relative to the information in the OpenApi

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [September 27, 2024, 8:00am UTC](https://forums.powershell.org/t/simple-openapi-to-powershell-module-creator/24648/2 "2024-09-27T08:00:16Z")

</div>

Closed on September 27, 2024, 8:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
