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

Also available in: Atom PDF