Project

General

Profile

Refactor #17483

Async HTTP API calls should return code 202 Accepted instead of 201 Created

Added by Ewoud Kohl van Wijngaarden almost 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

In #15779 several API calls were changed to async processing. In the HTTP protocol there is a special return code to indicate this. Return a 202 provides clients with a way to know if their call completed or is queued. Bonus points if the result includes an URL where the client can check if the task has completed.


Related issues

Related to Foreman - Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasksClosed2016-07-22

Associated revisions

Revision 0cf8ea67 (diff)
Added by Marek Hulán almost 5 years ago

Fixes #17483 - async task creation returns 202

Includes task link in response

History

#1 Updated by Ewoud Kohl van Wijngaarden almost 5 years ago

  • Related to Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasks added

#2 Updated by Dominic Cleal almost 5 years ago

  • Category set to API

#3 Updated by Marek Hulán almost 5 years ago

  • Assignee set to Marek Hulán
  • Target version set to 1.4.4

#4 Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4051 added

#5 Updated by Anonymous almost 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Marek Hulán almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 189

#7 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) changed from 189 to 209

Also available in: Atom PDF