Skip to content

Can't get rendering to work #75

@kschroeer

Description

@kschroeer

I can't get the tool to run for my api-blueprint file. I only execute:

    ./phpdraft -f myfile.apib > myfile.html

I'm getting a large bunch of errors.

This is my file:

    FORMAT: 1A
    HOST: http://127.0.0.1/

    # Hello API

    A simple API demo

    # Group Verify

    ## POST /api/rest/verify

    Verify login data.

    ### Errors

    Errors returned by this service:

    <dl>
    <dt>1</dt>
    <dd>Login and password don't match</dd>
    <dt>2</dt>
    <dd>Username is unknown</dd>
    </dl>

    + Request (application/json)

        + Attributes (object)

            + `user`: `me` (string, required) - user name
            + `password`: `test` (string, required) - password

    + Response 200 (application/hal+json)

        + Attributes (object)

            + `success` (enum[number]) - value for request
                + Members
                    + 0
                    + 1
            + `error` (enum[number]) - error number in case of unsuccessful request
                + Members
                    + 1
                    + 2
            + `_links` (object)
                + `self` (object)
                    + `href`: `/api/rest/verify` (string)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions