Skip to content

Commit 2f68d12

Browse files
committed
Document redirects in Hydra API
This documents useful redirects that Hydra exposes
1 parent d135b12 commit 2f68d12

File tree

1 file changed

+125
-1
lines changed

1 file changed

+125
-1
lines changed

hydra-api.yaml

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ paths:
444444
application/json:
445445
schema:
446446
$ref: '#/components/schemas/Error'
447-
448447
/job/{project-id}/{jobset-id}/{job-id}/shield:
449448
get:
450449
summary: Generate data for a shields.io badge
@@ -551,6 +550,131 @@ paths:
551550
schema:
552551
$ref: '#/components/schemas/JobsetEval'
553552

553+
/jobset/{project-id}/{jobset-id}/latest-eval:
554+
get:
555+
summary: Redirects to the latest finished evaluation for a jobset
556+
parameters:
557+
- name: project-id
558+
in: path
559+
description: project identifier
560+
required: true
561+
schema:
562+
type: string
563+
- name: jobset-id
564+
in: path
565+
description: jobset identifier
566+
required: true
567+
schema:
568+
type: string
569+
responses:
570+
'302':
571+
description: the evaluation to redirect to
572+
headers:
573+
Location:
574+
example: /eval/1?name={jobset-id}
575+
schema:
576+
type: string
577+
578+
/job/{project-id}/{jobset-id}/{job-id}/latest:
579+
get:
580+
summary: Redirects to the latest succesful build for a job
581+
parameters:
582+
- name: project-id
583+
in: path
584+
description: project identifier
585+
required: true
586+
schema:
587+
type: string
588+
- name: jobset-id
589+
in: path
590+
description: jobset identifier
591+
required: true
592+
schema:
593+
type: string
594+
- name: job-id
595+
in: path
596+
description: job identifier
597+
required: true
598+
schema:
599+
type: string
600+
responses:
601+
'302':
602+
description: the build to redirect to
603+
headers:
604+
Location:
605+
example: /build/1
606+
schema:
607+
type: string
608+
609+
/job/{project-id}/{jobset-id}/{job-id}/latest-for/{system}:
610+
get:
611+
summary: Redirects to the latest succesful build for a job
612+
parameters:
613+
- name: project-id
614+
in: path
615+
description: project identifier
616+
required: true
617+
schema:
618+
type: string
619+
- name: jobset-id
620+
in: path
621+
description: jobset identifier
622+
required: true
623+
schema:
624+
type: string
625+
- name: job-id
626+
in: path
627+
description: job identifier
628+
required: true
629+
schema:
630+
type: string
631+
- name: system
632+
in: path
633+
description: system
634+
required: true
635+
schema:
636+
type: string
637+
example: x86_64-linux
638+
responses:
639+
'302':
640+
description: the build to redirect to
641+
headers:
642+
Location:
643+
example: /build/1
644+
schema:
645+
type: string
646+
647+
/job/{project-id}/{jobset-id}/{job-id}/latest-finished:
648+
get:
649+
summary: Redirects to the latest succesful build for a job from a finished evaluation
650+
parameters:
651+
- name: project-id
652+
in: path
653+
description: project identifier
654+
required: true
655+
schema:
656+
type: string
657+
- name: jobset-id
658+
in: path
659+
description: jobset identifier
660+
required: true
661+
schema:
662+
type: string
663+
- name: job-id
664+
in: path
665+
description: job identifier
666+
required: true
667+
schema:
668+
type: string
669+
responses:
670+
'302':
671+
description: the build to redirect to
672+
headers:
673+
Location:
674+
example: /build/1
675+
schema:
676+
type: string
677+
554678
components:
555679
schemas:
556680

0 commit comments

Comments
 (0)