Reading through the document, it really feels a lot like the work put into Simple.Web's linking mechanism (using the idea of HATEOS). If I understand this correctly, it would seem "the framework" would spit out the Hydra vocabulary to describe its resources when it spins up and clients can then use that to map out requests. Or, is it more like Simple.Web in that you get a set of resources back with your request? For example, I could create a resource for a person and making a request to /people/1 using "application/json" would yield something like: { FirstName: "John", LastName: "Smith", Links: [ { Rel: "delete", Title: "Delete this person", Href: "/person/1" }, { Rel: "children", Title: "Get this person's children", Href="/person/1/children" } ] }.
--
You received this message because you are subscribed to a topic in the Google Groups "F# Web Stack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web-stack-fs/4ws0UGSr3hc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web-stack-fs...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Wonderful ideas here Ryan and company ... I especially like your consideration of both Hopac and Hydra. I strongly suggest Markus Lanthaler's doctoral dissertation for a deep dive ... very approachable and highly rewarding! http://www.markus-lanthaler.com/research/third-generation-web-apis-bridging-the-gap-between-rest-and-linked-data.pdf
On Friday, July 11, 2014 8:19:46 PM UTC-4, James D'Angelo wrote:Ok, that's what it seemed like but I just wanted to clarify what the goal was for this group. I like the idea of being able to ask the server for the API definition--in that way I can totally see where having a type provider that is able to consume it and create a context would be awesome, especially when you spit out JavaScript through something like WebSharper. The picture is becoming a bit more clear now. =)
On Thursday, July 10, 2014 11:54:04 AM UTC-7, Ryan Riley wrote:On Friday, June 27, 2014 2:30:26 PM UTC-7, James D'Angelo wrote:Reading through the document, it really feels a lot like the work put into Simple.Web's linking mechanism (using the idea of HATEOS). If I understand this correctly, it would seem "the framework" would spit out the Hydra vocabulary to describe its resources when it spins up and clients can then use that to map out requests. Or, is it more like Simple.Web in that you get a set of resources back with your request? For example, I could create a resource for a person and making a request to /people/1 using "application/json" would yield something like: { FirstName: "John", LastName: "Smith", Links: [ { Rel: "delete", Title: "Delete this person", Href: "/person/1" }, { Rel: "children", Title: "Get this person's children", Href="/person/1/children" } ] }.I think it's a combination of both. As a client, you could request the ApiDocumentation and get an overview of everything. In each response, the result is mapped to an @context and includes properties such as operation that lists allowed operations against the requested URI (essentially embedding an OPTIONS response with every response).
Thanks Brad for CCing me. Since I don't really know yet what exactly you are trying to build in this group here, I don't have to add much at the moment. I just wanted to quickly reach out and let you know that I'm here to help if there are questions regarding JSON-LD [1] (which is already a W3C standard) or Hydra [2] (which is currently being developed in a W3C Community Group [3]).Cheers,Markus---@MarkusLanthaler
On Thursday, July 17, 2014 3:07:44 PM UTC+2, Brad Jones wrote:Wonderful ideas here Ryan and company ... I especially like your consideration of both Hopac and Hydra. I strongly suggest Markus Lanthaler's doctoral dissertation for a deep dive ... very approachable and highly rewarding! http://www.markus-lanthaler.com/research/third-generation-web-apis-bridging-the-gap-between-rest-and-linked-data.pdf
On Friday, July 11, 2014 8:19:46 PM UTC-4, James D'Angelo wrote:Ok, that's what it seemed like but I just wanted to clarify what the goal was for this group. I like the idea of being able to ask the server for the API definition--in that way I can totally see where having a type provider that is able to consume it and create a context would be awesome, especially when you spit out JavaScript through something like WebSharper. The picture is becoming a bit more clear now. =)
On Thursday, July 10, 2014 11:54:04 AM UTC-7, Ryan Riley wrote:On Friday, June 27, 2014 2:30:26 PM UTC-7, James D'Angelo wrote:Reading through the document, it really feels a lot like the work put into Simple.Web's linking mechanism (using the idea of HATEOS). If I understand this correctly, it would seem "the framework" would spit out the Hydra vocabulary to describe its resources when it spins up and clients can then use that to map out requests. Or, is it more like Simple.Web in that you get a set of resources back with your request? For example, I could create a resource for a person and making a request to /people/1 using "application/json" would yield something like: { FirstName: "John", LastName: "Smith", Links: [ { Rel: "delete", Title: "Delete this person", Href: "/person/1" }, { Rel: "children", Title: "Get this person's children", Href="/person/1/children" } ] }.I think it's a combination of both. As a client, you could request the ApiDocumentation and get an overview of everything. In each response, the result is mapped to an @context and includes properties such as operation that lists allowed operations against the requested URI (essentially embedding an OPTIONS response with every response).
--
You received this message because you are subscribed to a topic in the Google Groups "F# Web Stack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web-stack-fs/4ws0UGSr3hc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web-stack-fs...@googlegroups.com.
JsonSchemaTypeProvider I work on is a generative one.
I'll open-source it whenever I have enough time, though the implementation is rather modest. It only covers Json Schema draft 3 and uses Json.net 6.0.3 for schema parsing, validation and serialization.
Also, I do have basic RAML parser which can be used for some kind of framework generation. We use it to generate documentation. I am not convinced that it makes sense for functional style Web framework though.
You received this message because you are subscribed to a topic in the Google Groups "F# Web Stack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web-stack-fs/4ws0UGSr3hc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web-stack-fs...@googlegroups.com.