Sha256: 9784a78a6136a47afdbc97820826d585c0d8728a7a90a61f42f51c5255951ff4

Contents?: true

Size: 792 Bytes

Versions: 1

Compression:

Stored size: 792 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

1 entries across 1 versions & 1 rubygems

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