Very cool, it feels like WSDL for REST EDIT: spelling
RAML – RESTful API modeling language
11–20 of 59 posts
Re: RAML – RESTful API modeling language
#12Very cool, it feels like WSDL for REST EDIT: spelling
Re: RAML – RESTful API modeling language
#13There's also the swagger spec: http://swagger.io/
Re: RAML – RESTful API modeling language
#14Earlier quoted context omitted.
I have used swagger in multiple projects with great success.
Are any of those projects open source? I'm looking for an example Swagger YAML/JSON file that includes authentication.
PierOne is a Docker registry in Clojure with S3 backend and OAuth support. I wrote swagger1st[0] which is used there. Swagger supports authorization definitions via scopes. Besides that, you can only define required basic auth or API key usage for authentication but not for authorisation.
Swagger defines various places, where you can add own x-* attributes to fill in your own logic if swagger is not expressive enough.
Re: RAML – RESTful API modeling language
#15I wrote some RAML recently and found it very good for creating a machine-readable representation of an API. We also wanted to make it human-readable and use it as our API reference (with the API console). I found it to be mostly good, but had some trouble when explaining larger concepts that span several requests. Also, it's harder to point to the "important" parts of the API if it's sufficiently large than it was wi…
I haven't built anything with Swagger but I never clicked with it the way I instantly did with RAML. It's a pity - there seems to be a lot more industry and open source support behind Swagger than there is for RAML which is mostly backed by MuleSoft.
Re: RAML – RESTful API modeling language
#16Very cool, it feels like WSDL for REST EDIT: spelling
True REST shouldn't require a WSDL-like interface. The semantics of the graph it describes should be enough. This model, however, has yet to be fully realised; largely because of the large upfront cost in R&D. At my work, we are trying to develop in this area, but it's slow going.
Re: RAML – RESTful API modeling language
#17Very cool, it feels like WSDL for REST EDIT: spelling
Re: RAML – RESTful API modeling language
#18There's also the swagger spec: http://swagger.io/
Re: RAML – RESTful API modeling language
#19Earlier quoted context omitted.
Are any of those projects open source? I'm looking for an example Swagger YAML/JSON file that includes authentication.
https://github.com/zalando-stups/pierone/blob/master/resourc... PierOne is a Docker registry in Clojure with S3 backend and OAuth support. I wrote swagger1st[0] which is used there. Swagger supports authorization definitions via scopes. Besides that, you can only define required basic auth or API key usage for authentication but not for authorisation. Swagger defines various places, where you can add own x-* attribut…
Re: RAML – RESTful API modeling language
#20I wrote some RAML recently and found it very good for creating a machine-readable representation of an API. We also wanted to make it human-readable and use it as our API reference (with the API console). I found it to be mostly good, but had some trouble when explaining larger concepts that span several requests. Also, it's harder to point to the "important" parts of the API if it's sufficiently large than it was wi…
Ditto, used RAML on a previous project and everyone involved really enjoyed it. It manages to capture just enough about how thinks work without getting overbearing. I particularly like the fact that it allows for examples to be specified. I haven't built anything with Swagger but I never clicked with it the way I instantly did with RAML. It's a pity - there seems to be a lot more industry and open source support behi…