Sha256: 8e5b6f4faf8479b4f834f495884c99d0dec45e7703c1fecd823b3ecae9aed881

Contents?: true

Size: 422 Bytes

Versions: 4

Compression:

Stored size: 422 Bytes

Contents

module Endpoints
  class <%= plural_class_name %> < Base
    namespace "<%= url_path %>" do
      before do
        content_type :json, charset: 'utf-8'
      end

      get do
        "[]"
      end

      post do
        status 201
        "{}"
      end

      get "/:id" do
        "{}"
      end

      patch "/:id" do |id|
        "{}"
      end

      delete "/:id" do |id|
        "{}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pliny-0.2.1 lib/pliny/templates/endpoint.erb
pliny-0.2.0 lib/pliny/templates/endpoint.erb
pliny-0.1.0 lib/pliny/templates/endpoint.erb
pliny-0.0.4 lib/pliny/templates/endpoint.erb