Project

General

Profile

Actions

Refactor #17483

closed

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

Added by Ewoud Kohl van Wijngaarden almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasksClosedMarek Hulán07/22/2016Actions
Actions #1

Updated by Ewoud Kohl van Wijngaarden almost 8 years ago

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

Updated by Dominic Cleal almost 8 years ago

  • Category set to API
Actions #3

Updated by Marek Hulán almost 8 years ago

  • Assignee set to Marek Hulán
  • Target version set to 1.4.4
Actions #4

Updated by The Foreman Bot almost 8 years ago

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

Updated by Anonymous almost 8 years ago

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

Updated by Marek Hulán almost 8 years ago

  • Translation missing: en.field_release set to 189
Actions #7

Updated by Dominic Cleal almost 8 years ago

  • Translation missing: en.field_release changed from 189 to 209
Actions

Also available in: Atom PDF