Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature for API usage based on webtask model #30

Closed
facundocabrera opened this issue May 28, 2015 · 0 comments
Closed

New feature for API usage based on webtask model #30

facundocabrera opened this issue May 28, 2015 · 0 comments
Assignees
Labels

Comments

@facundocabrera
Copy link

Hey all,

I was checking https://webtask.io/docs/model and I found really interesting the idea of provide a simple API like this project. Imagine to be able to add code other than simple HAR compliant data.

return function (context, req, res) {
    res.writeHead(200, { 'Content-Type': 'text/html '});
    res.end('<h1>Hello, world!</h1>');
}        

Pros:

  1. Simple API.
  2. Extensible to add custom behaviors using express/node modules.
  3. Not require to read any documentation to start other than simple javascript code.
  4. Some of the current issue could be addressed using this approach before make them officially available inside mockbin.

I'm pretty new using mockbin, but feels this could be a really nice behavior to be added.

Thanks in advance

@facundocabrera facundocabrera changed the title New API approach? New feature for API usage based on webtask model May 28, 2015
@ahmadnassri ahmadnassri self-assigned this Jun 3, 2015
@jackkav jackkav closed this as completed Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants