summaryrefslogtreecommitdiff
path: root/views/index.jade
blob: 3cbf438080d1cc62075dbab7a0f7e0752fbedabf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
extends layout

block content
  h1= title

  form(action='/render', class='well')
    div(class='row')
      div(class='span10')
        input(type='text', name='url', size='100', placeholder='Enter URL to explore...', class='span10')
    // TODO: Fix
    div(class='row')
      div(class='span12')
         
    div(class='row')
      div(class='offset4 span2')
        button(type='submit', class='btn') Explore

  p This is a simple/dumb explorer for the 
    a(href='http://amundsen.com/media-types/collection/') Collection+JSON Hypermedia
    | .

  h2 Examples

  p From the 
    a(href='http://' + host + '/render?url=http%3A%2F%2Fexample-collection-json-db.herokuapp.com') Example Collection+JSON
    |  application. Drill down in an employee data set.

  p From the specification: 
    - var examples = [ "minimal", "collection", "item", "queries", "template", "error" ]
      each example, i in examples
        - var u='http://' + host + '/render?url=' + encodeURIComponent('http://' + host + '/examples/from-spec/' + example + '.collection+json')
          if i > 0
            | , 
          a(href='#{u}') #{example}