Skip to content
This repository was archived by the owner on Oct 31, 2021. It is now read-only.
This repository was archived by the owner on Oct 31, 2021. It is now read-only.

Enable 'type provider mode' using content negotiation #1

@TWolverson

Description

@TWolverson

I appreciate that this project is very new and probably a number of things haven't even been thought about yet (all in good time!) but at a glance I don't see any way that a REST service is supposed to 'know' that it should return results in the expected type provider format. Therefore I suggest that a way of doing this would be through HTTP content negotiation, wherein the REST type provider passes an Accept header containing some special content type to indicate to the server that it expects results in type provider format. This would therefore be easy to switch on using an OWIN middleware component on the server, for example, and wouldn't affect the usefulness of the service for doing whatever job it is meant to do independent of creating type providers. This would then make the type provider library a useful way of making services self-documenting, while not limiting them to being consumed from clients that understand F# type providers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions