|
2 | 2 | "openapi": "3.0.3", |
3 | 3 | "info": { |
4 | 4 | "title": "Bencher API", |
5 | | - "version": "0.2.24" |
| 5 | + "version": "0.2.25" |
6 | 6 | }, |
7 | 7 | "paths": { |
8 | 8 | "/v0/auth/confirm": { |
|
2984 | 2984 | } |
2985 | 2985 | } |
2986 | 2986 | }, |
| 2987 | + "/v0/projects/{project}/results/{result}": { |
| 2988 | + "get": { |
| 2989 | + "tags": [ |
| 2990 | + "projects", |
| 2991 | + "results" |
| 2992 | + ], |
| 2993 | + "operationId": "get_one", |
| 2994 | + "parameters": [ |
| 2995 | + { |
| 2996 | + "in": "path", |
| 2997 | + "name": "project", |
| 2998 | + "required": true, |
| 2999 | + "schema": { |
| 3000 | + "$ref": "#/components/schemas/ResourceId" |
| 3001 | + }, |
| 3002 | + "style": "simple" |
| 3003 | + }, |
| 3004 | + { |
| 3005 | + "in": "path", |
| 3006 | + "name": "result", |
| 3007 | + "required": true, |
| 3008 | + "schema": { |
| 3009 | + "type": "string", |
| 3010 | + "format": "uuid" |
| 3011 | + }, |
| 3012 | + "style": "simple" |
| 3013 | + } |
| 3014 | + ], |
| 3015 | + "responses": { |
| 3016 | + "200": { |
| 3017 | + "description": "successful operation", |
| 3018 | + "headers": { |
| 3019 | + "Access-Control-Allow-Credentials": { |
| 3020 | + "style": "simple", |
| 3021 | + "schema": { |
| 3022 | + "nullable": true, |
| 3023 | + "type": "boolean" |
| 3024 | + } |
| 3025 | + }, |
| 3026 | + "Access-Control-Allow-Headers": { |
| 3027 | + "style": "simple", |
| 3028 | + "required": true, |
| 3029 | + "schema": { |
| 3030 | + "type": "string" |
| 3031 | + } |
| 3032 | + }, |
| 3033 | + "Access-Control-Allow-Methods": { |
| 3034 | + "style": "simple", |
| 3035 | + "required": true, |
| 3036 | + "schema": { |
| 3037 | + "type": "string" |
| 3038 | + } |
| 3039 | + }, |
| 3040 | + "Access-Control-Allow-Origin": { |
| 3041 | + "style": "simple", |
| 3042 | + "required": true, |
| 3043 | + "schema": { |
| 3044 | + "type": "string" |
| 3045 | + } |
| 3046 | + } |
| 3047 | + }, |
| 3048 | + "content": { |
| 3049 | + "application/json": { |
| 3050 | + "schema": { |
| 3051 | + "$ref": "#/components/schemas/JsonResult" |
| 3052 | + } |
| 3053 | + } |
| 3054 | + } |
| 3055 | + }, |
| 3056 | + "4XX": { |
| 3057 | + "$ref": "#/components/responses/Error" |
| 3058 | + }, |
| 3059 | + "5XX": { |
| 3060 | + "$ref": "#/components/responses/Error" |
| 3061 | + } |
| 3062 | + } |
| 3063 | + }, |
| 3064 | + "options": { |
| 3065 | + "tags": [ |
| 3066 | + "projects", |
| 3067 | + "results" |
| 3068 | + ], |
| 3069 | + "operationId": "one_options", |
| 3070 | + "parameters": [ |
| 3071 | + { |
| 3072 | + "in": "path", |
| 3073 | + "name": "project", |
| 3074 | + "required": true, |
| 3075 | + "schema": { |
| 3076 | + "$ref": "#/components/schemas/ResourceId" |
| 3077 | + }, |
| 3078 | + "style": "simple" |
| 3079 | + }, |
| 3080 | + { |
| 3081 | + "in": "path", |
| 3082 | + "name": "result", |
| 3083 | + "required": true, |
| 3084 | + "schema": { |
| 3085 | + "type": "string", |
| 3086 | + "format": "uuid" |
| 3087 | + }, |
| 3088 | + "style": "simple" |
| 3089 | + } |
| 3090 | + ], |
| 3091 | + "responses": { |
| 3092 | + "200": { |
| 3093 | + "description": "successful operation", |
| 3094 | + "content": { |
| 3095 | + "application/json": { |
| 3096 | + "schema": { |
| 3097 | + "title": "String", |
| 3098 | + "type": "string" |
| 3099 | + } |
| 3100 | + } |
| 3101 | + } |
| 3102 | + }, |
| 3103 | + "4XX": { |
| 3104 | + "$ref": "#/components/responses/Error" |
| 3105 | + }, |
| 3106 | + "5XX": { |
| 3107 | + "$ref": "#/components/responses/Error" |
| 3108 | + } |
| 3109 | + } |
| 3110 | + } |
| 3111 | + }, |
2987 | 3112 | "/v0/projects/{project}/testbeds": { |
2988 | 3113 | "get": { |
2989 | 3114 | "tags": [ |
|
4773 | 4898 | "JsonNewReport": { |
4774 | 4899 | "type": "object", |
4775 | 4900 | "properties": { |
4776 | | - "adapter": { |
4777 | | - "nullable": true, |
4778 | | - "allOf": [ |
4779 | | - { |
4780 | | - "$ref": "#/components/schemas/JsonAdapter" |
4781 | | - } |
4782 | | - ] |
4783 | | - }, |
4784 | 4901 | "branch": { |
4785 | | - "type": "string", |
4786 | | - "format": "uuid" |
| 4902 | + "$ref": "#/components/schemas/ResourceId" |
4787 | 4903 | }, |
4788 | 4904 | "end_time": { |
4789 | 4905 | "type": "string", |
4790 | 4906 | "format": "date-time" |
4791 | 4907 | }, |
4792 | | - "fold": { |
4793 | | - "nullable": true, |
4794 | | - "allOf": [ |
4795 | | - { |
4796 | | - "$ref": "#/components/schemas/JsonFold" |
4797 | | - } |
4798 | | - ] |
4799 | | - }, |
4800 | 4908 | "hash": { |
4801 | 4909 | "nullable": true, |
4802 | 4910 | "type": "string" |
|
4807 | 4915 | "type": "string" |
4808 | 4916 | } |
4809 | 4917 | }, |
| 4918 | + "settings": { |
| 4919 | + "nullable": true, |
| 4920 | + "allOf": [ |
| 4921 | + { |
| 4922 | + "$ref": "#/components/schemas/JsonReportSettings" |
| 4923 | + } |
| 4924 | + ] |
| 4925 | + }, |
4810 | 4926 | "start_time": { |
4811 | 4927 | "type": "string", |
4812 | 4928 | "format": "date-time" |
4813 | 4929 | }, |
4814 | 4930 | "testbed": { |
4815 | | - "type": "string", |
4816 | | - "format": "uuid" |
| 4931 | + "$ref": "#/components/schemas/ResourceId" |
4817 | 4932 | } |
4818 | 4933 | }, |
4819 | 4934 | "required": [ |
|
5224 | 5339 | "type": "string", |
5225 | 5340 | "format": "uuid" |
5226 | 5341 | }, |
| 5342 | + "JsonReportSettings": { |
| 5343 | + "type": "object", |
| 5344 | + "properties": { |
| 5345 | + "adapter": { |
| 5346 | + "nullable": true, |
| 5347 | + "allOf": [ |
| 5348 | + { |
| 5349 | + "$ref": "#/components/schemas/JsonAdapter" |
| 5350 | + } |
| 5351 | + ] |
| 5352 | + }, |
| 5353 | + "allow_failure": { |
| 5354 | + "nullable": true, |
| 5355 | + "type": "boolean" |
| 5356 | + }, |
| 5357 | + "fold": { |
| 5358 | + "nullable": true, |
| 5359 | + "allOf": [ |
| 5360 | + { |
| 5361 | + "$ref": "#/components/schemas/JsonFold" |
| 5362 | + } |
| 5363 | + ] |
| 5364 | + } |
| 5365 | + } |
| 5366 | + }, |
5227 | 5367 | "JsonRestart": { |
5228 | 5368 | "type": "object", |
5229 | 5369 | "properties": { |
|
5235 | 5375 | } |
5236 | 5376 | } |
5237 | 5377 | }, |
| 5378 | + "JsonResult": { |
| 5379 | + "type": "object", |
| 5380 | + "properties": { |
| 5381 | + "benchmark": { |
| 5382 | + "type": "string", |
| 5383 | + "format": "uuid" |
| 5384 | + }, |
| 5385 | + "iteration": { |
| 5386 | + "type": "integer", |
| 5387 | + "format": "uint32", |
| 5388 | + "minimum": 0 |
| 5389 | + }, |
| 5390 | + "metrics": { |
| 5391 | + "type": "object", |
| 5392 | + "additionalProperties": { |
| 5393 | + "$ref": "#/components/schemas/JsonMetric" |
| 5394 | + } |
| 5395 | + }, |
| 5396 | + "report": { |
| 5397 | + "type": "string", |
| 5398 | + "format": "uuid" |
| 5399 | + }, |
| 5400 | + "uuid": { |
| 5401 | + "type": "string", |
| 5402 | + "format": "uuid" |
| 5403 | + } |
| 5404 | + }, |
| 5405 | + "required": [ |
| 5406 | + "benchmark", |
| 5407 | + "iteration", |
| 5408 | + "metrics", |
| 5409 | + "report", |
| 5410 | + "uuid" |
| 5411 | + ] |
| 5412 | + }, |
5238 | 5413 | "JsonServer": { |
5239 | 5414 | "type": "object", |
5240 | 5415 | "properties": { |
|
5676 | 5851 | "name": "reports", |
5677 | 5852 | "description": "Reports" |
5678 | 5853 | }, |
| 5854 | + { |
| 5855 | + "name": "results" |
| 5856 | + }, |
5679 | 5857 | { |
5680 | 5858 | "name": "server" |
5681 | 5859 | }, |
|
0 commit comments