Sha256: a76525f0755366e160f7806dde4e07ba4fd8521ff8e04130cd3fd268846bf062

Contents?: true

Size: 1.66 KB

Versions: 1

Compression:

Stored size: 1.66 KB

Contents

# root

data: {},
links: {},
meta: {},
errors*: []


# singular

data: {
  atr1:
  atr2:
  nested: {

  }
},
links: {
  self: "self-url"
}


# multiple

data: [

]
},
links: {
  self: "self-url"
}

# http://localhost:3000/sample/book/1?include=[publisher,authors]&render=compact
data: {
  title: 'Book 1',
  body: 'Book 1 Body',
  year: 1999,
  publisher: {
    data: {
      name: 'Manning Publisher',
    },
    _links: {
      self: {
        href: "http://localhost:3000/sample/publisher/1",
      }
    },
    _meta: { type: "book" }                              
  },
  authors: {
    data: [
      # author1,
      # author2
    ],
    _links: {},
    _meta: {}
  }
},
_links: {
  self: {
    href: "http://localhost:3000/sample/books/1",
  },
  authors: {
    href: "http://localhost:3000/sample/book/1/authors",
  },
  publisher: {
    href: "http://localhost:3000/sample/book/1/publisher",
  },
},
_meta: { type: "book" }                              


data: {
  title: 'Book 1',
  body: 'Book 1 Body',
  year: 1999,
  _relations: {
    publisher: {
      data: {
        name: 'Manning Publisher',
      },
      _links: {
        self: {
          href: "http://localhost:3000/sample/publisher/1",
        }
      },
      _meta: { type: "book" }                              
    },
    authors: {
      data: [
        # author1,
        # author2
      ],
      _links: {},
      _meta: {}
    }
},
_links: {
  self: {
    href: "http://localhost:3000/sample/books/1",
  },
  authors: {
    href: "http://localhost:3000/sample/book/1/authors",
  },
  publisher: {
    href: "http://localhost:3000/sample/book/1/publisher",
  },
},
_meta: { type: "book" }                              

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_navigator-0.0.1 spec/fixtures/sample.json