bcgov / bcgov/kirk

Add Jobid to response when job created

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Currently, when a new job is created by POST /api/v1/jobs, it returns:
- owner
- destField
- cronStr
- jobStatus

If the response includes the job id then its possible to use that to attach sources / destinations without having to perform another query.

https://stackoverflow.com/questions/38667368/django-rest-framework-get-all-data-but-post-pk
- could create two different serializers for POST and GET to resolve

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.