TheSingularityWorkshop.FSM_Rest 0.1.0-alpha.1

This is a prerelease version of TheSingularityWorkshop.FSM_Rest.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package TheSingularityWorkshop.FSM_Rest --version 0.1.0-alpha.1
                    
NuGet\Install-Package TheSingularityWorkshop.FSM_Rest -Version 0.1.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TheSingularityWorkshop.FSM_Rest" Version="0.1.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TheSingularityWorkshop.FSM_Rest" Version="0.1.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="TheSingularityWorkshop.FSM_Rest" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TheSingularityWorkshop.FSM_Rest --version 0.1.0-alpha.1
                    
#r "nuget: TheSingularityWorkshop.FSM_Rest, 0.1.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TheSingularityWorkshop.FSM_Rest@0.1.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TheSingularityWorkshop.FSM_Rest&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TheSingularityWorkshop.FSM_Rest&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Tool

TheSingularityWorkshop.FSM_REST

REST reflection and transport boundary for the FSM ecosystem.

FSM_REST is the layer that lets a REST API become something the Singularity Workshop can reason about, reflect, and eventually manifest through the GUI.

The important distinction is:

External REST API
        |
        v
 API description / discovery
        |
        v
     FSM_REST
        |
        v
 capability descriptors
        |
        v
       GUI
        |
        v
 behavior assignment
        |
        v
     Experience

The first alpha establishes the reusable reflection model. The ASP.NET Core application in this repository remains a thin experimental host for transport work.

The core idea

A REST API already exposes a vocabulary of capabilities:

  • resources;
  • operations;
  • paths;
  • parameters;
  • request bodies;
  • response contracts;
  • authentication requirements.

FSM_REST should make that vocabulary available as structured data without requiring the GUI to understand OpenAPI, ASP.NET Core, or the implementation details of the remote service.

That is the beginning of the REST → reflection → GUI pipeline.

Alpha package

The initial package is TheSingularityWorkshop.FSM_Rest 0.1.0-alpha.1.

The package is framework-agnostic .NET and contains the reflection descriptors and OpenAPI reflector.

Core types

  • RestApiDescriptor — the reflected API as a whole.
  • RestOperationDescriptor — an HTTP operation that can become a GUI capability.
  • RestParameterDescriptor — path, query, header, or cookie input metadata.
  • RestRequestBodyDescriptor — request-body media types and basic schema metadata.
  • OpenApiRestReflector — converts an OpenAPI 3.x JSON description into the descriptor model.

The core library does not execute HTTP requests and does not depend on ASP.NET Core.

The Postman-like direction

The long-term experience is intentionally dynamic:

                    REST API URL
                         |
                         v
                discover description
                         |
                         v
                  reflect API surface
                         |
                         v
                +------------------+
                |   GUI PALETTE    |
                |                  |
                | GET  /users      |
                | POST /users      |
                | GET  /users/{id} |
                | DELETE /users/id |
                +------------------+
                         |
                         v
                 configure inputs
                         |
                         v
                  assign behavior
                         |
                         v
                  compose GUI
                         |
                         v
                     execute

The critical architectural move is that reflection produces capabilities; GUI produces manifestation.

That means the same REST operation could eventually become a button, form, card, table action, workflow node, FSM transition, or another GUI primitive.

The REST API does not need to know which one.

Why OpenAPI first?

OpenAPI already describes the structural information needed for the first reflection layer: paths, operations, parameters, request bodies, responses, and related metadata. OpenAPI also defines operation identifiers for tooling to identify operations.

FSM_REST therefore starts with OpenAPI rather than trying to infer an entire API by blindly probing arbitrary URLs.

A future discovery layer can accept a URL, locate an API description, retrieve it, validate it, and pass the resulting document to OpenApiRestReflector.

Discovery, reflection, execution, and GUI manifestation remain separate stages.

Architecture

src/FSM_REST
    |
    +-- REST descriptors
    +-- OpenAPI reflection
    |
    v
TheSingularityWorkshop.FSM_REST
    |
    +-- reusable package
    |
    +-- no ASP.NET dependency

TheSingularityWorkshop.FSM_REST.csproj
    |
    v
ASP.NET Core experimental host

This separation matters because a desktop application, WebPage, Unity integration, or another host should be able to consume the reflection model without becoming an ASP.NET application.

Relationship to the ecosystem

Project Responsibility
FSM_API state-machine execution
FSM_REST REST reflection and transport boundary
FSM_Serialization serialized representation
FSM_COS runtime composition
GUI visual manifestation and interaction
MicroBundleDomain domain capabilities and composition

FSM_REST should not absorb the responsibilities of these projects.

Alpha limitations

  • OpenAPI 3.x JSON is supported.
  • OpenAPI YAML is not yet parsed.
  • $ref resolution is not yet implemented.
  • Response schemas are not yet fully reflected.
  • Authentication discovery/configuration is not yet modeled.
  • URL discovery is not yet implemented.
  • HTTP execution is not yet part of the core package.
  • GUI generation is intentionally downstream.

These limitations define the next increments rather than hidden requirements.

Documentation

  • REST reflection model: docs/REFLECTION.md
  • Transport theory: docs/THEORY.md

Development

Build and test the complete solution:

dotnet restore TheSingularityWorkshop.FSM_REST.slnx
dotnet build TheSingularityWorkshop.FSM_REST.slnx --configuration Release
dotnet test tests/FSM_REST.Tests/FSM_REST.Tests.csproj --configuration Release

Pack the alpha package:

dotnet pack src/FSM_REST/FSM_REST.csproj --configuration Release --output ./artifacts

The GitHub verification workflow is manual-only while the ecosystem is being stabilized.

License

MIT. See LICENSE.txt.


🔗 Resources & Support

📦 Get FSM_API

💖 Support The Singularity Workshop

<p align="center"> <a href="https://github.com/TrentBest/FSM_API"> <img src="https://raw.githubusercontent.com/TrentBest/FSM_API/master/Documentation/Branding/TheSingularityWorkshop.png" alt="The Singularity Workshop" height="200"> </a> </p>

<p align="center"> <em>The Singularity Workshop — Tools for the curious, the bold, and the systemically inclined.</em><br> <strong>Because state shouldn't be a mess.</strong> </p>

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.4 1,567 10/1/2026
0.1.0-alpha.3 689 9/29/2026
0.1.0-alpha.2 81 9/28/2026
0.1.0-alpha.1 73 9/28/2026

Initial alpha: REST descriptors and OpenAPI 3.x JSON reflection foundation for dynamic GUI integration.