Project

Profile

Help

Issue #3978

closed

Operation postponed response contains too much information

Added by dkliban@redhat.com about 6 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

When a user performs a sync, repository_version creation, or a publish she is presented with a 202 response with the following schema:

{
  "_href": "/pulp/api/v3/some-task-id/",
  "task_id": "some-task-id"
}

The `task_id` is not necessary because users are supposed to use resource HREFs as identifiers. The `_href` field is not descriptive enough on it's own. A better response would look like

{
  "task": "/pulp/api/v3/some-task-id/"
}

Also available in: Atom PDF