Sha256: 274d914fe76dccb1c09115a6007688134a7f1bca1352fd24a0cc8174191bfbc0

Contents?: true

Size: 1010 Bytes

Versions: 11

Compression:

Stored size: 1010 Bytes

Contents

class MovieResource < MontageRails::ApplicationResource
  def self.schema_definition
    {
      name: "movies",
      fields: [
        {
          name: "studio_id",
          datatype: "text",
        },
        {
          name: "rank",
          datatype: "numeric",
          required: true,
        },
        {
          name: "rating",
          datatype: "numeric",
          required: true,
        },
        {
          name: "title",
          datatype: "text",
          required: true,
        },
        {
          name: "votes",
          datatype: "numeric",
          required: true,
        },
        {
          name: "year",
          datatype: "numeric",
          required: true,
        },
      ],
      links: {
        self: "http://testco.dev.montagehot.club/api/v1/schemas/movies/",
        query: "http://testco.dev.montagehot.club/api/v1/schemas/movies/query/",
        create_document: "http://testco.dev.montagehot.club/api/v1/schemas/movies/save/"
      }
    }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
montage_rails-1.0.0 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.7.4 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.7.3 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.7.2 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.7.1 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.7 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.6.4 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.6.3 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.6.2 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.6.1 test/dummy/test/montage_resources/movie_resource.rb
montage_rails-0.6.0 test/dummy/test/montage_resources/movie_resource.rb