Skip to content

Does this work with fsharp? #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NullVoxPopuli opened this issue Mar 24, 2018 · 3 comments
Closed

Does this work with fsharp? #244

NullVoxPopuli opened this issue Mar 24, 2018 · 3 comments
Labels

Comments

@NullVoxPopuli
Copy link
Contributor

NullVoxPopuli commented Mar 24, 2018

just wondering, wanting to build a json:api api with fsharp, and this library seems the most feature-complete.

I guess, alternatively, is there a way to just use the (de)serialization parts? cause then I could just use whatever web server

@jaredcnance
Copy link
Contributor

jaredcnance commented Mar 24, 2018

Regarding F#, I'm not sure. I've honestly never tried it, but there's no obvious reason (to me) why it shouldn't work. I'd be happy to work with you on it if you need any support. Although, it was not designed with a functional programming use case in mind, so it may be awkward. That is purely conjecture since I have no experience using this in an F# application.

Regarding just serialization, that's a very small part of this library and while it is part of our roadmap to make that possible, there is one blocker at the moment.

@NullVoxPopuli
Copy link
Contributor Author

NullVoxPopuli commented Mar 25, 2018

Sounds good, yeah, I'll give it a go. F# has objects and stuff, cause all of dotnet is compatible with all dotnet-languages. F# doesn't have all the OO features that C# does, but that's fine. (F# is OO in the same way python is / isn't)

I guess, re: just (de)serialization, I'm mostly wanting to have the functionality provided by http://jsonapi-rb.org
which is:

  • (de)serialization of POROs / AR objects (equiv: POJOs / EF Entities)
  • still being able to use include and sparse fieldsets
  • choosing to, by default, not render the relationship data if the relationship is not 'inpcluded' (useful for has many relationships, because for my purposes, a list of id/types isn't meaningful, and I'd like to save the db accesses. :-)
  • build error objects

I'm still pretty new to F#/dotnet web dev, and so far, it seems that this library has all the features I'd want (even if it has more, and I'd be using a subset).

speaking of which, are there any guides for using JsonApiDotNetCore with the entity framework? (or any other ORM?)

The reason why I don't really want to use a jsonapi only web framework is just in case I need an endpoint with non-jsonapi format.

As for web frameworks, I've been looking at
https://github.com/SaturnFramework/Saturn, which is Giraffe-based -- so I was hoping to use jsonapidotnetcore with that :-)

anywho, I'll start playing with this in F#, and see what happens

@maurei
Copy link
Member

maurei commented Oct 10, 2019

Interested to know what you learned from this. Closing as no further action required.

@maurei maurei closed this as completed Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants