FSharp.JsonApi
2.0.0-alpha-02
Use F# to create and consume flexible, strongly typed web APIs following the JSON-API specification.
See the version list below for details.
Install-Package FSharp.JsonApi -Version 2.0.0-alpha-02
dotnet add package FSharp.JsonApi --version 2.0.0-alpha-02
<PackageReference Include="FSharp.JsonApi" Version="2.0.0-alpha-02" />
paket add FSharp.JsonApi --version 2.0.0-alpha-02
Release Notes
- Breaking: Removed SimpleResource and related methods/extensions on JsonApiContext. Use Resource.attributesOrDefault and Resource.relationshipsOrDefault instead to get a (possibly default) attribute/relationship instance from a resource.
- Breaking: Added RequestDocumentError.UnknownMainResourceType
- Breaking: JsonApiContext.GetResource and the JsonApiContext.Parse overload returning a resource discriminator now return errors if the resource type is unknown. The signature of the former method is changed; the latter is a behaviour change only.
- Breaking: Renamed Query to QueryParser, added static methods to create an instance with a query parameter map or HttpContext, and changed most methods to instance members that do not depend on a query parameter map or HttpContext
- Added Setter type with helper methods to chain and lift normal "immutable setter" functions to accept parsed, possibly optional arguments, combining any errors.
- Added JsonApiContext methods RequireResource, WithAllReadOnly, ToDiscriminator, and FromDiscriminator
- Added JsonApiContext overloads for ParseRequired, WithReadOnly, WithWriteOnly, and WithNotNull
Dependencies
-
.NETStandard 2.0
- FSharp.Core (>= 4.6.0)
- FSharp.JsonSkippable (>= 1.0.0)
- Microsoft.FSharpLu.Json (>= 0.11.5)
- Newtonsoft.Json (>= 12.0.1)
GitHub Usage
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated | ||
---|---|---|---|---|
2.1.0 | 110 | 11/8/2019 | ||
2.0.3 | 32 | 11/6/2019 | ||
2.0.2 | 31 | 11/6/2019 | ||
2.0.1 | 36 | 10/31/2019 | ||
2.0.0 | 36 | 10/30/2019 | ||
2.0.0-alpha-09 | 81 | 10/17/2019 | ||
2.0.0-alpha-08 | 44 | 10/14/2019 | ||
2.0.0-alpha-07 | 39 | 10/11/2019 | ||
2.0.0-alpha-06 | 52 | 10/9/2019 | ||
2.0.0-alpha-05 | 42 | 9/26/2019 | ||
2.0.0-alpha-04 | 41 | 9/26/2019 | ||
2.0.0-alpha-03 | 91 | 9/24/2019 | ||
2.0.0-alpha-02 | 41 | 9/23/2019 | ||
2.0.0-alpha-01 | 41 | 9/19/2019 | ||
1.4.1 | 47 | 9/26/2019 | ||
1.4.0 | 53 | 9/16/2019 | ||
1.3.0 | 61 | 9/12/2019 | ||
1.2.0 | 58 | 9/12/2019 | ||
1.1.0 | 59 | 9/11/2019 | ||
1.0.3 | 62 | 9/10/2019 |