TheSingularityWorkshop.FSM_Rest 0.1.0-alpha.2

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.2
                    
NuGet\Install-Package TheSingularityWorkshop.FSM_Rest -Version 0.1.0-alpha.2
                    
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.2" />
                    
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.2" />
                    
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.2
                    
#r "nuget: TheSingularityWorkshop.FSM_Rest, 0.1.0-alpha.2"
                    
#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.2
                    
#: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.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TheSingularityWorkshop.FSM_Rest&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Tool

TheSingularityWorkshop.FSM_REST

REST capability and transport substrate for the FSM ecosystem.

FSM_REST is intentionally not an implementation of a REST API, and it is not a container for every REST description format.

It provides the reusable forms from which REST capabilities can be composed:

REST MicroBundle / external description
            |
            v
        FSM_REST
            |
     +------+------+
     |             |
 capability     transport
 descriptors    boundary
     |             |
     +------+------+
            |
            v
     GUI / FSM / Experience

The important architectural rule is:

FSM_REST provides the composition surface. Domain and protocol-specific MicroBundles provide the things composed through it.

What belongs in FSM_REST

The package owns the protocol-neutral REST vocabulary needed by the hosting ecosystem:

  • RestApiDescriptor — a collection of REST operations.
  • RestOperationDescriptor — an operation that can become a capability.
  • RestParameterDescriptor — parameter metadata.
  • RestRequestBodyDescriptor — request-body metadata.
  • RestResponseDescriptor — response metadata.
  • RestRequest — an executable transport request.
  • RestResponse — an observed transport response.
  • IRestTransport — the transport boundary.
  • HttpClientRestTransport — the default .NET HTTP adapter.

These types deliberately do not require ASP.NET Core, OpenAPI, a GUI framework, or a particular domain.

What does not belong here

A description format is a participant in the ecosystem, not the ecosystem itself.

For example, OpenAPI is not a citizen of FSM_REST.

An OpenAPI MicroBundle can be supplied separately. That bundle can understand OpenAPI documents, expose an OpenAPI provider, and translate the OpenAPI-specific representation into the neutral REST capability forms supplied by FSM_REST.

Conceptually:

             MicroBundleDomain
                    |
                    v
             OpenAPI MicroBundle
                    |
             IProvider<OpenAPI>
                    |
                    v
                FSM_REST
                    |
          RestApiDescriptor
          RestOperationDescriptor
                    |
          +---------+---------+
          |                   |
        GUI                  FSM
          |                   |
          +---------+---------+
                    |
                Experience

The same pattern applies to other description formats or REST capability families. They should arrive as separately loadable MicroBundles rather than becoming permanent dependencies of the REST substrate.

REST MicroBundles

A concrete REST MicroBundle is where a particular capability belongs.

A bundle might provide:

  • a remote service;
  • a family of REST operations;
  • an API description adapter;
  • authentication behavior;
  • domain-specific request construction;
  • GUI manifestation providers.

The hosting environment loads the MicroBundle and supplies the composition/runtime infrastructure. FSM_REST supplies the REST-specific forms the bundle can use.

This keeps the dependency direction clean:

MicroBundle
    |
    +---- MicroBundleDomain
    +---- FSM_COS
    +---- FSM_REST
    |
    v
concrete REST capability

FSM_REST should never grow upward into a catalog of concrete REST services.

Transport boundary

The package provides a minimal executable boundary:

var request = new RestRequest(
    "POST",
    new Uri("https://example.test/users"),
    new Dictionary<string, string>
    {
        ["X-Trace"] = "trace-123"
    },
    "{\"name\":\"Ada\"}");

IRestTransport transport = new HttpClientRestTransport(httpClient);

RestResponse response = await transport.SendAsync(request);

IRestTransport is the important boundary. HttpClientRestTransport is merely one adapter.

That means a host can replace the HTTP implementation without changing the capability model.

The operational theater

The intended direction is larger than an API client:

external capability
        |
        v
MicroBundle / provider
        |
        v
   REST capability
        |
        +----------------+
        |                |
        v                v
      GUI              FSM behavior
        |                |
        +-------+--------+
                |
                v
           Experience

A REST operation might ultimately manifest as a button, form, table action, workflow node, FSM transition, automated behavior, or another composition primitive.

FSM_REST does not choose the manifestation.

Relationship to the ecosystem

Project Responsibility
FSM_API state-machine execution
MicroBundleDomain domain-side MicroBundle description
FSM_COS runtime MicroBundle composition
FSM_REST REST capability and transport substrate
FSM_Serialization serialized representation
GUI visual manifestation

Concrete protocol/domain packages remain separately owned and publishable.

Alpha 2 boundary

TheSingularityWorkshop.FSM_Rest 0.1.0-alpha.2

Alpha 2 establishes the protocol-neutral REST transport boundary and keeps description formats outside the core package.

The current package intentionally does not include:

  • OpenAPI parsing;
  • OpenAPI $ref resolution;
  • YAML parsing;
  • authentication implementations;
  • URL discovery;
  • GUI generation;
  • concrete REST services;
  • domain-specific MicroBundles.

Those are composition opportunities for separate packages.

Development

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
dotnet pack src/FSM_REST/FSM_REST.csproj --configuration Release --output ./artifacts

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

Alpha 2: REST capability descriptors plus a transport-neutral request/response boundary and HttpClient adapter. Protocol description formats remain external composition bundles.