Sha256: b224b4744003b740dd34a2fcb8891391c5d4964fdb6fb2a285fefcf9340d90ca

Contents?: true

Size: 900 Bytes

Versions: 2

Compression:

Stored size: 900 Bytes

Contents

json.name 'Annotator Store API'
json.version '2.0.0'
json.links do
  json.annotation do
    json.create do
      json.url annotator_store.annotations_url
      json.method 'POST'
      json.description 'Create or add new annotations.'
    end
    json.read do
      json.url annotator_store.annotation_url(':id')
      json.method 'GET'
      json.description 'Read, retrieve or view existing annotation.'
    end
    json.update do
      json.url annotator_store.annotation_url(':id')
      json.method 'PUT/PATCH'
      json.description 'Update or edit existing annotation.'
    end
    json.delete do
      json.url annotator_store.annotation_url(':id')
      json.method 'DELETE'
      json.description 'Delete or deactivate existing annotation.'
    end
  end
  json.search do
    json.url annotator_store.search_url
    json.method 'GET'
    json.description 'Search for annotations'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
annotator_store-1.0.0 app/views/annotator_store/pages/index.json.jbuilder
annotator_store-1.0.0.pre app/views/annotator_store/pages/index.json.jbuilder