Sha256: 9138d00a17a199ff86cb187da72bbfc71e8be3a8eb59a2dd870b3abecde8a126
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
class Wco::Publisher include Mongoid::Document include Mongoid::Timestamps store_in collection: 'wco_publishers' field :name KIND_ARTICLE = 'article' KIND_IMAGE = 'image' field :kind, type: :string belongs_to :to_site, class_name: 'Wco::Site' field :context_eval field :post_body_tmpl end =begin curl --include \ --request POST \ --user admin:<>, \ --header 'Content-type: application/hal+json' \ http://pi.local/node?_format=hal_json \ --data-binary '{ "_links": { "type":{"href":"http://pi.local/rest/type/node/article"} }, "title":[{"value":"Node +++ 123 bac +++" }], "body":[{"value": "<b>hello, wor</b>ld!", "format": "full_html" }], "type":[{"target_id":"article"}], "status": [{"value": 1}], "_embedded": { "http://pi.local/rest/relation/node/article/field_issue": [ { "uuid": [{ "value": "56229a95-d675-43e1-99b1-f9e11b5579c5" }] } ], "http://pi.local/rest/relation/node/article/field_tags": [ { "uuid": [{ "value": "45646a7d-1a16-42e8-b758-f6e1c8d976f7" }] }, { "uuid": [{ "value": "834e34e2-05ae-498d-b876-453798872ce1" }] } ] } }' =end
Version data entries
7 entries across 7 versions & 1 rubygems