Sha256: 576211515b017c892d914f6cc3888b8add4ad1e9fc30555bd50fb25db77e834a
Contents?: true
Size: 1022 Bytes
Versions: 1
Compression:
Stored size: 1022 Bytes
Contents
@api Feature: Templates API Scenario: List all templates Given 3 templates When I GET "/api/templates" Then the response status should be 200 And the response should contain 3 "templates" Scenario: Create a new template When I POST "/api/templates": """ { "template": { "name": "A template name!", "description": "A beautiful template", "body": "<div>body</div>", "thumbnail_url": "http://foo/bar.jpg" } } """ Then the response should be 201 "Created" And the JSON at "template/name" should be "A template name!" When I follow the "Location" header Then the JSON at "template/name" should be "A template name!" Scenario: Update a template Given a template When I PATCH "/api/templates/{{@template.id}}": """ { "template": { "name": "New day new name" } } """ Then the response should be 200 "OK" And the JSON at "template/name" should be "New day new name"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
landable-1.7.0 | features/api/templates.feature |