AlexandrBasan / AsyncRestApi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asynchronous RESTful API

This is just a little Rails app for playing with asynchronous REST calls. This is useful for when a client makes API calls and the responses take longer than a normal HTTP response time. For instance, a scenario where this could be applicable is for image processing.

Make a post request to the jobs resource. The job enqueues and response with a 202, poll till the job status is finished.

$ rake test test/integration/create_jobs_test.rb

About


Languages

Language:Ruby 80.4%Language:HTML 15.2%Language:JavaScript 2.4%Language:CSS 2.0%