Sha256: e357eca9c2e6914afbfa1cc934002b64a1509a27804b581712cb996ba789f1d7

Contents?: true

Size: 844 Bytes

Versions: 2

Compression:

Stored size: 844 Bytes

Contents

%h1= page_title(resource_class: resource_class.model_name.human)

%h2 JSON-LD Context:
%p
  Link:
  %code= link_to(collection_url(format: :jsonld))
%pre
  JSON:
  %code= JSON.pretty_generate resource_serializer.jsonld

%h2 Resources:
%ul
  - if controller.respond_to?(:index)
    %li
      %code GET #{collection_path(format: :json)}
  - if controller.respond_to?(:create)
    %li
      %code POST #{collection_path(format: :json)}
  - if controller.respond_to?(:show)
    %li
      %code GET #{resource_path(':id', format: :json)}
  - if controller.respond_to?(:update)
    %li
      %code PUT #{resource_path(':id', format: :json)}
  - if controller.respond_to?(:update)
    %li
      %code PATCH #{resource_path(':id', format: :json)}
  - if controller.respond_to?(:destroy)
    %li
      %code DELETE #{resource_path(':id', format: :json)}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aepic-0.0.4 app/views/application/api.html.haml
aepic-0.0.2 app/views/application/api.html.haml