Skip to content

Commit b88b06d

Browse files
arianvpdasJ
authored andcommitted
Document redirects in Hydra API
This documents useful redirects that Hydra exposes
1 parent a31f5d6 commit b88b06d

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed

hydra-api.yaml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,131 @@ paths:
574574
schema:
575575
$ref: '#/components/schemas/JobsetEvalBuilds'
576576

577+
/jobset/{project-id}/{jobset-id}/latest-eval:
578+
get:
579+
summary: Redirects to the latest finished evaluation for a jobset
580+
parameters:
581+
- name: project-id
582+
in: path
583+
description: project identifier
584+
required: true
585+
schema:
586+
type: string
587+
- name: jobset-id
588+
in: path
589+
description: jobset identifier
590+
required: true
591+
schema:
592+
type: string
593+
responses:
594+
'302':
595+
description: the evaluation to redirect to
596+
headers:
597+
Location:
598+
example: /eval/1?name={jobset-id}
599+
schema:
600+
type: string
601+
602+
/job/{project-id}/{jobset-id}/{job-id}/latest:
603+
get:
604+
summary: Redirects to the latest succesful build for a job
605+
parameters:
606+
- name: project-id
607+
in: path
608+
description: project identifier
609+
required: true
610+
schema:
611+
type: string
612+
- name: jobset-id
613+
in: path
614+
description: jobset identifier
615+
required: true
616+
schema:
617+
type: string
618+
- name: job-id
619+
in: path
620+
description: job identifier
621+
required: true
622+
schema:
623+
type: string
624+
responses:
625+
'302':
626+
description: the build to redirect to
627+
headers:
628+
Location:
629+
example: /build/1
630+
schema:
631+
type: string
632+
633+
/job/{project-id}/{jobset-id}/{job-id}/latest-for/{system}:
634+
get:
635+
summary: Redirects to the latest succesful build for a job
636+
parameters:
637+
- name: project-id
638+
in: path
639+
description: project identifier
640+
required: true
641+
schema:
642+
type: string
643+
- name: jobset-id
644+
in: path
645+
description: jobset identifier
646+
required: true
647+
schema:
648+
type: string
649+
- name: job-id
650+
in: path
651+
description: job identifier
652+
required: true
653+
schema:
654+
type: string
655+
- name: system
656+
in: path
657+
description: system
658+
required: true
659+
schema:
660+
type: string
661+
example: x86_64-linux
662+
responses:
663+
'302':
664+
description: the build to redirect to
665+
headers:
666+
Location:
667+
example: /build/1
668+
schema:
669+
type: string
670+
671+
/job/{project-id}/{jobset-id}/{job-id}/latest-finished:
672+
get:
673+
summary: Redirects to the latest succesful build for a job from a finished evaluation
674+
parameters:
675+
- name: project-id
676+
in: path
677+
description: project identifier
678+
required: true
679+
schema:
680+
type: string
681+
- name: jobset-id
682+
in: path
683+
description: jobset identifier
684+
required: true
685+
schema:
686+
type: string
687+
- name: job-id
688+
in: path
689+
description: job identifier
690+
required: true
691+
schema:
692+
type: string
693+
responses:
694+
'302':
695+
description: the build to redirect to
696+
headers:
697+
Location:
698+
example: /build/1
699+
schema:
700+
type: string
701+
577702
components:
578703
schemas:
579704

0 commit comments

Comments
 (0)