Skip to content

Instantly share code, notes, and snippets.

@DracoBlue
Last active August 29, 2015 14:19
Show Gist options
  • Save DracoBlue/32b2e006dbb32e6faf3f to your computer and use it in GitHub Desktop.
Save DracoBlue/32b2e006dbb32e6faf3f to your computer and use it in GitHub Desktop.

Revisions

  1. DracoBlue revised this gist Apr 17, 2015. 1 changed file with 22 additions and 0 deletions.
    22 changes: 22 additions & 0 deletions 4_editors_collection.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    {
    "_links": {
    "first": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors?offset=0&limit=20"},
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors?offset=0&limit=20"},
    "up": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a"},
    "last": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors?offset=0&limit=20"},
    "https://hateoas-notes.herokuapp.com/rels/user": [{"href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1"}]
    },
    "_embedded": {
    "https://hateoas-notes.herokuapp.com/rels/user": [
    {
    "username": "test",
    "id": "61a4552c-d73e-4176-a912-adf404f5b6d1",
    "passwordHash": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1"},
    "up": {"href": "https://hateoas-notes.herokuapp.com/api/hal/users"}
    }
    }
    ]
    }
    }
  2. DracoBlue revised this gist Apr 17, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 3_note_with_extra_editor_entity.json
    Original file line number Diff line number Diff line change
    @@ -12,14 +12,14 @@
    "_embedded": {
    "https://hateoas-notes.herokuapp.com/rels/editors": [{
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors/61a4552c-d73e-4176-a912-adf404f5b6d1"}
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors/61a4552c-d73e-4176-a912-adf404f5b6d1"},
    "https://hateoas-notes.herokuapp.com/rels/user": {
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1"
    }
    }
    },{
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors/ae86f7a8-8s7d-8s7d-8s7d-ae86f7a88s7d"}
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors/ae86f7a8-8s7d-8s7d-8s7d-ae86f7a88s7d"},
    "https://hateoas-notes.herokuapp.com/rels/user": {
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/ae86f7a8-8s7d-8s7d-8s7d-ae86f7a88s7d"
    }
  3. DracoBlue revised this gist Apr 17, 2015. 3 changed files with 46 additions and 1 deletion.
    1 change: 0 additions & 1 deletion 1_note_without_editors.json
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,6 @@
    "up": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes"},
    "https://hateoas-notes.herokuapp.com/rels/owner": {
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1",
    "title": null
    }
    }
    }
    17 changes: 17 additions & 0 deletions 2_note_with_inline_editors.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    {
    "title": "Apples",
    "tags": ["fruits"],
    "id": "4ec92e34-34fb-47c1-a2b9-139866eb431a",
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a"},
    "up": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes"},
    "https://hateoas-notes.herokuapp.com/rels/owner": {
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1"
    },
    "https://hateoas-notes.herokuapp.com/rels/editors": [{
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1"
    },{
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/ae86f7a8-8s7d-8s7d-8s7d-ae86f7a88s7d"
    }]
    }
    }
    29 changes: 29 additions & 0 deletions 3_note_with_extra_editor_entity.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    {
    "title": "Apples",
    "tags": ["fruits"],
    "id": "4ec92e34-34fb-47c1-a2b9-139866eb431a",
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a"},
    "up": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes"},
    "https://hateoas-notes.herokuapp.com/rels/owner": {
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1"
    },
    },
    "_embedded": {
    "https://hateoas-notes.herokuapp.com/rels/editors": [{
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors/61a4552c-d73e-4176-a912-adf404f5b6d1"}
    "https://hateoas-notes.herokuapp.com/rels/user": {
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1"
    }
    }
    },{
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a/editors/ae86f7a8-8s7d-8s7d-8s7d-ae86f7a88s7d"}
    "https://hateoas-notes.herokuapp.com/rels/user": {
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/ae86f7a8-8s7d-8s7d-8s7d-ae86f7a88s7d"
    }
    }
    }]
    }
    }
  4. DracoBlue renamed this gist Apr 17, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. DracoBlue revised this gist Apr 17, 2015. 1 changed file with 9 additions and 15 deletions.
    24 changes: 9 additions & 15 deletions note_without_editors.json
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,13 @@
    {
    title: "Apples",
    tags: [
    "fruits"
    ],
    id: "4ec92e34-34fb-47c1-a2b9-139866eb431a",
    _links: {
    self: {
    href: "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a"
    },
    up: {
    href: "https://hateoas-notes.herokuapp.com/api/hal/notes"
    },
    "title": "Apples",
    "tags": ["fruits"],
    "id": "4ec92e34-34fb-47c1-a2b9-139866eb431a",
    "_links": {
    "self": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a"},
    "up": {"href": "https://hateoas-notes.herokuapp.com/api/hal/notes"},
    "https://hateoas-notes.herokuapp.com/rels/owner": {
    href: "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1",
    title: null
    "href": "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1",
    "title": null
    }
    }
    }
    }
  6. DracoBlue created this gist Apr 17, 2015.
    19 changes: 19 additions & 0 deletions note_without_editors.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    {
    title: "Apples",
    tags: [
    "fruits"
    ],
    id: "4ec92e34-34fb-47c1-a2b9-139866eb431a",
    _links: {
    self: {
    href: "https://hateoas-notes.herokuapp.com/api/hal/notes/4ec92e34-34fb-47c1-a2b9-139866eb431a"
    },
    up: {
    href: "https://hateoas-notes.herokuapp.com/api/hal/notes"
    },
    "https://hateoas-notes.herokuapp.com/rels/owner": {
    href: "https://hateoas-notes.herokuapp.com/api/hal/users/61a4552c-d73e-4176-a912-adf404f5b6d1",
    title: null
    }
    }
    }