Sha256: 34f0bd48a7c0edf82d648ecfab7dc1d5d2c04b4bd35af2859b02968263dd2392
Contents?: true
Size: 536 Bytes
Versions: 6
Compression:
Stored size: 536 Bytes
Contents
module Api class ApplicationController < ActionController::Base def index root = { collection: { version: "1.0", href: "/api", links: [ { href: "/api/posts", rel: "posts", name: "posts", prompt: "My posts" }, { href: "/assets/cat.gif", rel: "logo", render: "image" } ] } } render json: root end end end
Version data entries
6 entries across 6 versions & 1 rubygems