Skip to content

Fluent command-line interface #5

@basicallydan

Description

@basicallydan

The JS interface for creating APIs is super easy and clear, but the command line interface can be a bit of a faff.

This:

$ interfake GET /thing 200 {"response":"whatever"} creates POST /other-thing 201 {"hey":"whatup"}

Should produce the same results aas this:

interfake.get('/thing').status(200).body({"response":"whatever"}).creates.post('/other-thing').status(201).body({"hey":"whatup"});
  • Support creating a single endpoint
  • Support creates
  • Support extends
  • Support patch

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions