Sha256: 70312d47af0e3fabb387efc30ce040bb158febd0e6034f3217b5eb91b435c4fe

Contents?: true

Size: 1.22 KB

Versions: 18

Compression:

Stored size: 1.22 KB

Contents

@api
Feature: Pages API

  Scenario: Loading multiple pages
    Given 2 pages
    When  I GET "/api/pages?ids[]={{@pages[0].id}}&ids[]={{@pages[1].id}}"
    Then  the response should be 200 "OK"
    And   the response should contain 2 "pages"

  Scenario: Loading a single page
    Given a page
    When  I GET "/api/pages/{{@page.id}}"
    Then  the response should be 200 "OK"
    And   the response should contain a "page"

  Scenario: Create a new page
    When I POST to "/api/pages" with:
    """
    { 
        "path": "/page",
        "body": "<HTML>BODY</HTML" 
    }
    """
    Then the response should be 201 "Created"
    And the JSON at "page/path" should be "/page"

  Scenario: Update a page
    Given a page
    When I PATCH "/api/pages/{{@page.id}}":
    """
    { "page": { "title": "Updated page" } }
    """
    Then the response should be 200 "OK"
    And the JSON at "page/title" should be "Updated page"

  Scenario: Publish a page
    Given a page
    When I POST "/api/pages/{{@page.id}}/publish"
    Then the response should be 201 "Created"
    And  the JSON at "page/published_revision_id" should be a page revision's ID
    When I GET "/api/page_revisions/{{@revision.id}}"
    Then the response should be 200 "OK"

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 features/api/pages.feature
landable-1.13.2 features/api/pages.feature
landable-1.13.1 features/api/pages.feature
landable-1.12.3 features/api/pages.feature
landable-1.12.2 features/api/pages.feature
landable-1.12.1 features/api/pages.feature
landable-1.11.1 features/api/pages.feature
landable-1.11.0 features/api/pages.feature
landable-1.10.0.rc2 features/api/pages.feature
landable-1.10.0.rc1 features/api/pages.feature
landable-1.9.2 features/api/pages.feature
landable-1.9.1 features/api/pages.feature
landable-1.9.0 features/api/pages.feature
landable-1.9.0.rc2 features/api/pages.feature
landable-1.9.0.rc1 features/api/pages.feature
landable-1.8.0 features/api/pages.feature
landable-1.7.1.rc1 features/api/pages.feature
landable-1.7.0 features/api/pages.feature