Skip to content

Fluent command-line interface #5

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions