{ "openapi": "3.1.0", "info": { "title": "PFS Obslog API", "description": "PFS Observation Log System API", "version": "0.1.0" }, "paths": { "/api/healthz": { "get": { "tags": [ "health" ], "summary": "Healthz", "description": "\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\n\n\u30b5\u30fc\u30d3\u30b9\u306e\u7a3c\u50cd\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002", "operationId": "healthz_api_healthz_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HealthResponse" } } } } } } }, "/api/readyz": { "get": { "tags": [ "health" ], "summary": "Readyz", "description": "\u30ec\u30c7\u30a3\u30cd\u30b9\u30c1\u30a7\u30c3\u30af\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\n\n\u30b5\u30fc\u30d3\u30b9\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u308b\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\n\u5c06\u6765\u7684\u306b\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306a\u3069\u306e\u30c1\u30a7\u30c3\u30af\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002", "operationId": "readyz_api_readyz_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HealthResponse" } } } } } } }, "/api/auth/login": { "post": { "tags": [ "auth" ], "summary": "Login", "description": "\u30ed\u30b0\u30a4\u30f3\n\n\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3067LDAP\u8a8d\u8a3c\u3092\u884c\u3044\u3001\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002", "operationId": "login_api_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/logout": { "post": { "tags": [ "auth" ], "summary": "Logout", "description": "\u30ed\u30b0\u30a2\u30a6\u30c8\n\n\u30bb\u30c3\u30b7\u30e7\u30f3\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u524a\u9664\u3057\u307e\u3059\u3002", "operationId": "logout_api_auth_logout_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LogoutResponse" } } } } } } }, "/api/auth/me": { "get": { "tags": [ "auth" ], "summary": "Get Me", "description": "\u73fe\u5728\u306e\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u53d6\u5f97\n\n\u8a8d\u8a3c\u304c\u5fc5\u8981\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002", "operationId": "get_me_api_auth_me_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserResponse" } } } } } } }, "/api/auth/status": { "get": { "tags": [ "auth" ], "summary": "Get Status", "description": "\u8a8d\u8a3c\u72b6\u614b\u3092\u53d6\u5f97\n\n\u30ed\u30b0\u30a4\u30f3\u4e2d\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u8a8d\u8a3c\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002", "operationId": "get_status_api_auth_status_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Get Status Api Auth Status Get" } } } } } } }, "/api/visits": { "get": { "tags": [ "visits", "visits" ], "summary": "List Visits", "description": "Visit\u4e00\u89a7\u3092\u53d6\u5f97\n\n\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u4ed8\u304d\u3067Visit\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n\u5404Visit\u306b\u306f\u9732\u51fa\u6570\u3001\u5e73\u5747\u5024\u3001\u30e1\u30e2\u306a\u3069\u306e\u96c6\u8a08\u60c5\u5831\u304c\u542b\u307e\u308c\u307e\u3059\u3002\n\nsql\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001WHERE\u53e5\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3067\u304d\u307e\u3059\u3002\n\u4f8b: sql=where id > 100", "operationId": "list_visits_api_visits_get", "parameters": [ { "name": "offset", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 0, "description": "\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u30aa\u30d5\u30bb\u30c3\u30c8", "default": 0, "title": "Offset" }, "description": "\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u30aa\u30d5\u30bb\u30c3\u30c8" }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 1000, "minimum": -1, "description": "\u53d6\u5f97\u4ef6\u6570\u4e0a\u9650\uff08-1\u3067\u7121\u5236\u9650\uff09", "default": 50, "title": "Limit" }, "description": "\u53d6\u5f97\u4ef6\u6570\u4e0a\u9650\uff08-1\u3067\u7121\u5236\u9650\uff09" }, { "name": "sql", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\uff08\u4f8b: where id > 100\uff09", "title": "Sql" }, "description": "SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\uff08\u4f8b: where id > 100\uff09" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VisitList" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/visits/{visit_id}": { "get": { "tags": [ "visits", "visits" ], "summary": "Get Visit", "description": "Visit\u8a73\u7d30\u3092\u53d6\u5f97\n\n\u6307\u5b9a\u3055\u308c\u305fVisit ID\u306e\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\nSPS/MCS/AGC\u9732\u51fa\u60c5\u5831\u3001IIC\u30b7\u30fc\u30b1\u30f3\u30b9\u60c5\u5831\u3001\u30e1\u30e2\u3092\u542b\u307f\u307e\u3059\u3002", "operationId": "get_visit_api_visits__visit_id__get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VisitDetail" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/visits/{visit_id}/rank": { "get": { "tags": [ "visits", "visits" ], "summary": "Get Visit Rank", "description": "\u6307\u5b9a\u3057\u305fVisit\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u7d50\u679c\u5185\u3067\u306e\u9806\u4f4d\u3092\u53d6\u5f97\n\nArgs:\n db: DB\u30bb\u30c3\u30b7\u30e7\u30f3\n visit_id: VisitID\n sql: SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\n\nReturns:\n \u9806\u4f4d\uff081\u304b\u3089\u59cb\u307e\u308b\uff09\u3002Visit\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306fNone", "operationId": "get_visit_rank_api_visits__visit_id__rank_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "sql", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\uff08\u4f8b: where id > 100\uff09", "title": "Sql" }, "description": "SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\uff08\u4f8b: where id > 100\uff09" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VisitRankResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/visits.csv": { "get": { "tags": [ "visits", "visits" ], "summary": "Export Visits Csv", "description": "Visit\u4e00\u89a7\u3092CSV\u5f62\u5f0f\u3067\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\n\nArgs:\n db: DB\u30bb\u30c3\u30b7\u30e7\u30f3\n offset: \u30aa\u30d5\u30bb\u30c3\u30c8\n limit: \u53d6\u5f97\u4ef6\u6570\u4e0a\u9650\n sql: SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\n\nReturns:\n CSV\u5f62\u5f0f\u306e\u30ec\u30b9\u30dd\u30f3\u30b9", "operationId": "export_visits_csv_api_visits_csv_get", "parameters": [ { "name": "offset", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 0, "description": "\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u30aa\u30d5\u30bb\u30c3\u30c8", "default": 0, "title": "Offset" }, "description": "\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u30aa\u30d5\u30bb\u30c3\u30c8" }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100000, "minimum": -1, "description": "\u53d6\u5f97\u4ef6\u6570\u4e0a\u9650\uff08-1\u3067\u7121\u5236\u9650\uff09", "default": 10000, "title": "Limit" }, "description": "\u53d6\u5f97\u4ef6\u6570\u4e0a\u9650\uff08-1\u3067\u7121\u5236\u9650\uff09" }, { "name": "sql", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\uff08\u4f8b: where id > 100\uff09", "title": "Sql" }, "description": "SQL\u30e9\u30a4\u30af\u306a\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\uff08\u4f8b: where id > 100\uff09" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/visits/{visit_id}/notes": { "post": { "tags": [ "notes", "notes" ], "summary": "Create a visit note", "description": "Create a new note for a visit. Requires authentication.", "operationId": "create_visit_note_api_visits__visit_id__notes_post", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteCreateRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteCreateResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/visits/{visit_id}/notes/{note_id}": { "put": { "tags": [ "notes", "notes" ], "summary": "Update a visit note", "description": "Update an existing visit note. Only the author can update their own notes.", "operationId": "update_visit_note_api_visits__visit_id__notes__note_id__put", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "note_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Note Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteUpdateRequest" } } } }, "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "notes", "notes" ], "summary": "Delete a visit note", "description": "Delete a visit note. Only the author can delete their own notes.", "operationId": "delete_visit_note_api_visits__visit_id__notes__note_id__delete", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "note_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Note Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/visit_sets/{visit_set_id}/notes": { "post": { "tags": [ "notes", "notes" ], "summary": "Create a visit set note", "description": "Create a new note for a visit set (IIC sequence). Requires authentication.", "operationId": "create_visit_set_note_api_visit_sets__visit_set_id__notes_post", "parameters": [ { "name": "visit_set_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Set Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteCreateRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteCreateResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/visit_sets/{visit_set_id}/notes/{note_id}": { "put": { "tags": [ "notes", "notes" ], "summary": "Update a visit set note", "description": "Update an existing visit set note. Only the author can update their own notes.", "operationId": "update_visit_set_note_api_visit_sets__visit_set_id__notes__note_id__put", "parameters": [ { "name": "visit_set_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Set Id" } }, { "name": "note_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Note Id" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteUpdateRequest" } } } }, "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "notes", "notes" ], "summary": "Delete a visit set note", "description": "Delete a visit set note. Only the author can delete their own notes.", "operationId": "delete_visit_set_note_api_visit_sets__visit_set_id__notes__note_id__delete", "parameters": [ { "name": "visit_set_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Set Id" } }, { "name": "note_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Note Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/sps/{camera_id}.fits": { "get": { "tags": [ "fits", "fits" ], "summary": "Download SPS FITS file", "description": "Download a raw or processed SPS FITS file for a specific visit and camera.", "operationId": "download_sps_fits_api_fits_visits__visit_id__sps__camera_id__fits_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "camera_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Camera Id" } }, { "name": "type", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/FitsType", "default": "raw" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/sps/{camera_id}.png": { "get": { "tags": [ "fits", "fits" ], "summary": "Get SPS FITS preview image", "description": "Get a PNG preview image of an SPS FITS file.", "operationId": "get_sps_fits_preview_api_fits_visits__visit_id__sps__camera_id__png_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "camera_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Camera Id" } }, { "name": "width", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 4096, "default": 1024, "title": "Width" } }, { "name": "height", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 4096, "default": 1024, "title": "Height" } }, { "name": "type", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/FitsType", "default": "raw" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/sps/{camera_id}/headers": { "get": { "tags": [ "fits", "fits" ], "summary": "Get SPS FITS headers", "description": "Get the headers from an SPS FITS file.", "operationId": "get_sps_fits_headers_api_fits_visits__visit_id__sps__camera_id__headers_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "camera_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Camera Id" } }, { "name": "type", "in": "query", "required": false, "schema": { "$ref": "#/components/schemas/FitsType", "default": "raw" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FitsMeta" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/mcs/{frame_id}.fits": { "get": { "tags": [ "fits", "fits" ], "summary": "Download MCS FITS file", "description": "Download an MCS FITS file for a specific visit and frame.", "operationId": "download_mcs_fits_api_fits_visits__visit_id__mcs__frame_id__fits_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "frame_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Frame Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/mcs/{frame_id}.png": { "get": { "tags": [ "fits", "fits" ], "summary": "Get MCS FITS preview image", "description": "Get a PNG preview image of an MCS FITS file.", "operationId": "get_mcs_fits_preview_api_fits_visits__visit_id__mcs__frame_id__png_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "frame_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Frame Id" } }, { "name": "width", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 4096, "default": 1024, "title": "Width" } }, { "name": "height", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 4096, "default": 1024, "title": "Height" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/mcs/{frame_id}/headers": { "get": { "tags": [ "fits", "fits" ], "summary": "Get MCS FITS headers", "description": "Get the headers from an MCS FITS file.", "operationId": "get_mcs_fits_headers_api_fits_visits__visit_id__mcs__frame_id__headers_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "frame_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Frame Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FitsMeta" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/agc/{exposure_id}.fits": { "get": { "tags": [ "fits", "fits" ], "summary": "Download AGC FITS file", "description": "Download an AGC FITS file for a specific exposure.", "operationId": "download_agc_fits_api_fits_visits__visit_id__agc__exposure_id__fits_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "exposure_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Exposure Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/fits/visits/{visit_id}/agc/{exposure_id}-{hdu_index}.png": { "get": { "tags": [ "fits", "fits" ], "summary": "Get AGC FITS preview image", "description": "Get a PNG preview image of a specific HDU in an AGC FITS file.", "operationId": "get_agc_fits_preview_api_fits_visits__visit_id__agc__exposure_id___hdu_index__png_get", "parameters": [ { "name": "visit_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Visit Id" } }, { "name": "exposure_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Exposure Id" } }, { "name": "hdu_index", "in": "path", "required": true, "schema": { "type": "integer", "title": "Hdu Index" } }, { "name": "width", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 4096, "default": 512, "title": "Width" } }, { "name": "height", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 4096, "default": 512, "title": "Height" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/pfs_designs": { "get": { "tags": [ "pfs_designs", "pfs_designs" ], "summary": "List PFS Designs", "description": "Get a list of all available PFS Design files.", "operationId": "list_pfs_designs_api_pfs_designs_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/PfsDesignEntry" }, "type": "array", "title": "Response List Pfs Designs Api Pfs Designs Get" } } } } } } }, "/api/pfs_designs/{id_hex}.fits": { "get": { "tags": [ "pfs_designs", "pfs_designs" ], "summary": "Download PFS Design FITS", "description": "Download the FITS file for a specific PFS Design.", "operationId": "download_design_api_pfs_designs__id_hex__fits_get", "parameters": [ { "name": "id_hex", "in": "path", "required": true, "schema": { "type": "string", "title": "Id Hex" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/pfs_designs/{id_hex}": { "get": { "tags": [ "pfs_designs", "pfs_designs" ], "summary": "Get PFS Design details", "description": "Get detailed information about a specific PFS Design.", "operationId": "get_design_api_pfs_designs__id_hex__get", "parameters": [ { "name": "id_hex", "in": "path", "required": true, "schema": { "type": "string", "title": "Id Hex" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PfsDesignDetail" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/pfs_designs.png": { "get": { "tags": [ "pfs_designs", "pfs_designs" ], "summary": "Get PFS Design chart", "description": "Generate a chart image for one or more PFS Designs.", "operationId": "get_design_chart_api_pfs_designs_png_get", "parameters": [ { "name": "id_hex", "in": "query", "required": true, "schema": { "type": "array", "items": { "type": "string" }, "description": "Design IDs to include in the chart", "title": "Id Hex" }, "description": "Design IDs to include in the chart" }, { "name": "date", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "description": "Date for the chart (for visibility calculations)", "title": "Date" }, "description": "Date for the chart (for visibility calculations)" }, { "name": "width", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 1200, "description": "Image width in pixels", "default": 600, "title": "Width" }, "description": "Image width in pixels" }, { "name": "height", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 500, "description": "Image height in pixels", "default": 250, "title": "Height" }, "description": "Image height in pixels" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/attachments": { "post": { "tags": [ "attachments", "attachments" ], "summary": "Upload attachment", "description": "Upload a new attachment file. Requires authentication.", "operationId": "create_attachment_api_attachments_post", "requestBody": { "required": true, "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_create_attachment_api_attachments_post" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAttachmentResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "get": { "tags": [ "attachments", "attachments" ], "summary": "List attachments", "description": "List attachments for the authenticated user.", "operationId": "list_attachments_api_attachments_get", "parameters": [ { "name": "start", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "description": "Start position", "default": 1, "title": "Start" }, "description": "Start position" }, { "name": "per_page", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 1000, "minimum": 1, "description": "Items per page", "default": 100, "title": "Per Page" }, "description": "Items per page" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttachmentList" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/attachments/{account_name}/{file_id}": { "get": { "tags": [ "attachments", "attachments" ], "summary": "Download attachment", "description": "Download an attachment file.", "operationId": "get_attachment_api_attachments__account_name___file_id__get", "parameters": [ { "name": "account_name", "in": "path", "required": true, "schema": { "type": "string", "pattern": "^(\\w+|\\w+@\\w+)$", "title": "Account Name" } }, { "name": "file_id", "in": "path", "required": true, "schema": { "type": "integer", "minimum": 1, "title": "File Id" } }, { "name": "filename", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Override filename in response", "title": "Filename" }, "description": "Override filename in response" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/attachments/{file_id}": { "delete": { "tags": [ "attachments", "attachments" ], "summary": "Delete attachment", "description": "Delete an attachment. Only the owner can delete their own files.", "operationId": "delete_attachment_api_attachments__file_id__delete", "parameters": [ { "name": "file_id", "in": "path", "required": true, "schema": { "type": "integer", "minimum": 1, "title": "File Id" } } ], "responses": { "204": { "description": "Successful Response" }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/mcs_data/{frame_id}.png": { "get": { "tags": [ "plot", "plot" ], "summary": "Show Mcs Data Chart", "description": "MCS\u30c7\u30fc\u30bf\u30c1\u30e3\u30fc\u30c8\u3092\u53d6\u5f97\n\n\u6307\u5b9a\u3055\u308c\u305fframe_id\u306eMCS\u30c7\u30fc\u30bf\u3092\u30ab\u30e9\u30fc\u6563\u5e03\u56f3\u3068\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002\n\u8272\u306fpeakvalue\u306b\u57fa\u3065\u304d\u307e\u3059\u3002\n\nArgs:\n db: DB\u30bb\u30c3\u30b7\u30e7\u30f3\n frame_id: MCS\u30d5\u30ec\u30fc\u30e0ID\n width: \u753b\u50cf\u5e45\uff08px\uff09\n height: \u753b\u50cf\u9ad8\u3055\uff08px\uff09\n\nReturns:\n PNG\u753b\u50cf\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\n\nRaises:\n HTTPException: \u30c7\u30fc\u30bf\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u5834\u5408\u306f204\u3092\u8fd4\u3059", "operationId": "show_mcs_data_chart_api_mcs_data__frame_id__png_get", "parameters": [ { "name": "frame_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Frame Id" } }, { "name": "width", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 1280, "description": "\u753b\u50cf\u5e45\uff08px\uff09", "default": 640, "title": "Width" }, "description": "\u753b\u50cf\u5e45\uff08px\uff09" }, { "name": "height", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 960, "description": "\u753b\u50cf\u9ad8\u3055\uff08px\uff09", "default": 480, "title": "Height" }, "description": "\u753b\u50cf\u9ad8\u3055\uff08px\uff09" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api": { "get": { "summary": "Root", "description": "\u30eb\u30fc\u30c8\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8", "operationId": "root_api_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } } }, "components": { "schemas": { "AgcExposure": { "properties": { "id": { "type": "integer", "title": "Id" }, "exptime": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Exptime" }, "altitude": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Altitude" }, "azimuth": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Azimuth" }, "insrot": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Insrot" }, "adc_pa": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Adc Pa" }, "m2_pos3": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "M2 Pos3" }, "outside_temperature": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Outside Temperature" }, "outside_pressure": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Outside Pressure" }, "outside_humidity": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Outside Humidity" }, "measurement_algorithm": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Measurement Algorithm" }, "version_actor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Version Actor" }, "version_instdata": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Version Instdata" }, "taken_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Taken At" }, "guide_offset": { "anyOf": [ { "$ref": "#/components/schemas/AgcGuideOffset" }, { "type": "null" } ] } }, "type": "object", "required": [ "id" ], "title": "AgcExposure", "description": "AGC\u9732\u51fa" }, "AgcGuideOffset": { "properties": { "ra": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Ra" }, "dec": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Dec" }, "pa": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Pa" }, "delta_ra": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Ra" }, "delta_dec": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Dec" }, "delta_insrot": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Insrot" }, "delta_az": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Az" }, "delta_el": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta El" }, "delta_z": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Z" }, "delta_z1": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Z1" }, "delta_z2": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Z2" }, "delta_z3": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Z3" }, "delta_z4": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Z4" }, "delta_z5": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Z5" }, "delta_z6": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Delta Z6" } }, "type": "object", "title": "AgcGuideOffset", "description": "AGC\u30ac\u30a4\u30c9\u30aa\u30d5\u30bb\u30c3\u30c8" }, "AgcVisitDetail": { "properties": { "exposures": { "items": { "$ref": "#/components/schemas/AgcExposure" }, "type": "array", "title": "Exposures", "default": [] } }, "type": "object", "title": "AgcVisitDetail", "description": "AGC Visit\u8a73\u7d30" }, "AttachmentEntry": { "properties": { "id": { "type": "integer", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "account_name": { "type": "string", "title": "Account Name" }, "media_type": { "type": "string", "title": "Media Type" }, "exists": { "type": "boolean", "title": "Exists" } }, "type": "object", "required": [ "id", "name", "account_name", "media_type", "exists" ], "title": "AttachmentEntry", "description": "\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u30a8\u30f3\u30c8\u30ea" }, "AttachmentList": { "properties": { "count": { "type": "integer", "title": "Count" }, "entries": { "items": { "$ref": "#/components/schemas/AttachmentEntry" }, "type": "array", "title": "Entries" } }, "type": "object", "required": [ "count", "entries" ], "title": "AttachmentList", "description": "\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7" }, "Body_create_attachment_api_attachments_post": { "properties": { "file": { "type": "string", "format": "binary", "title": "File" } }, "type": "object", "required": [ "file" ], "title": "Body_create_attachment_api_attachments_post" }, "Card": { "properties": { "key": { "type": "string", "title": "Key" }, "value": { "title": "Value" }, "comment": { "type": "string", "title": "Comment" } }, "type": "object", "required": [ "key", "value", "comment" ], "title": "Card", "description": "FITS\u30d8\u30c3\u30c0\u30fc\u30ab\u30fc\u30c9" }, "CreateAttachmentResponse": { "properties": { "path": { "type": "string", "title": "Path" } }, "type": "object", "required": [ "path" ], "title": "CreateAttachmentResponse", "description": "\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u30ec\u30b9\u30dd\u30f3\u30b9" }, "DesignData": { "properties": { "fiberId": { "items": { "type": "integer" }, "type": "array", "title": "Fiberid" }, "catId": { "items": { "type": "integer" }, "type": "array", "title": "Catid" }, "tract": { "items": { "type": "integer" }, "type": "array", "title": "Tract" }, "patch": { "items": { "type": "string" }, "type": "array", "title": "Patch" }, "objId": { "items": { "type": "integer" }, "type": "array", "title": "Objid" }, "ra": { "items": { "type": "number" }, "type": "array", "title": "Ra" }, "dec": { "items": { "type": "number" }, "type": "array", "title": "Dec" }, "targetType": { "items": { "type": "integer" }, "type": "array", "title": "Targettype" }, "fiberStatus": { "items": { "type": "integer" }, "type": "array", "title": "Fiberstatus" }, "pfiNominal": { "items": { "items": { "type": "number" }, "type": "array" }, "type": "array", "title": "Pfinominal" } }, "type": "object", "required": [ "fiberId", "catId", "tract", "patch", "objId", "ra", "dec", "targetType", "fiberStatus", "pfiNominal" ], "title": "DesignData", "description": "Design HDU \u30c7\u30fc\u30bf" }, "DesignRows": { "properties": { "science": { "type": "integer", "title": "Science" }, "sky": { "type": "integer", "title": "Sky" }, "fluxstd": { "type": "integer", "title": "Fluxstd" }, "unassigned": { "type": "integer", "title": "Unassigned" }, "engineering": { "type": "integer", "title": "Engineering" }, "sunss_imaging": { "type": "integer", "title": "Sunss Imaging" }, "sunss_diffuse": { "type": "integer", "title": "Sunss Diffuse" } }, "type": "object", "required": [ "science", "sky", "fluxstd", "unassigned", "engineering", "sunss_imaging", "sunss_diffuse" ], "title": "DesignRows", "description": "Design \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30bf\u30a4\u30d7\u5225\u884c\u6570" }, "FitsHdu": { "properties": { "index": { "type": "integer", "title": "Index" }, "header": { "$ref": "#/components/schemas/FitsHeader" } }, "type": "object", "required": [ "index", "header" ], "title": "FitsHdu", "description": "FITS HDU\uff08Header Data Unit\uff09" }, "FitsHeader": { "properties": { "cards": { "items": { "$ref": "#/components/schemas/Card" }, "type": "array", "title": "Cards" } }, "type": "object", "required": [ "cards" ], "title": "FitsHeader", "description": "FITS\u30d8\u30c3\u30c0\u30fc" }, "FitsMeta": { "properties": { "filename": { "type": "string", "title": "Filename" }, "hdul": { "items": { "$ref": "#/components/schemas/FitsHdu" }, "type": "array", "title": "Hdul" } }, "type": "object", "required": [ "filename", "hdul" ], "title": "FitsMeta", "description": "FITS\u30d5\u30a1\u30a4\u30eb\u306e\u30e1\u30bf\u30c7\u30fc\u30bf" }, "FitsType": { "type": "string", "enum": [ "raw", "calexp", "postISRCCD" ], "title": "FitsType", "description": "FITS\u30d5\u30a1\u30a4\u30eb\u306e\u30bf\u30a4\u30d7" }, "GuidestarData": { "properties": { "ra": { "items": { "type": "number" }, "type": "array", "title": "Ra" }, "dec": { "items": { "type": "number" }, "type": "array", "title": "Dec" } }, "type": "object", "required": [ "ra", "dec" ], "title": "GuidestarData", "description": "\u30ac\u30a4\u30c9\u661f\u30c7\u30fc\u30bf" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "HealthResponse": { "properties": { "status": { "type": "string", "title": "Status" }, "timestamp": { "type": "string", "title": "Timestamp" }, "version": { "type": "string", "title": "Version" } }, "type": "object", "required": [ "status", "timestamp", "version" ], "title": "HealthResponse", "description": "\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u30ec\u30b9\u30dd\u30f3\u30b9" }, "IicSequence": { "properties": { "iic_sequence_id": { "type": "integer", "title": "Iic Sequence Id" }, "sequence_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sequence Type" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "comments": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Comments" }, "cmd_str": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cmd Str" }, "group_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Group Id" }, "created_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Created At" }, "group": { "anyOf": [ { "$ref": "#/components/schemas/SequenceGroup" }, { "type": "null" } ] }, "notes": { "items": { "$ref": "#/components/schemas/VisitSetNote" }, "type": "array", "title": "Notes", "default": [] } }, "type": "object", "required": [ "iic_sequence_id" ], "title": "IicSequence", "description": "IIC\u30b7\u30fc\u30b1\u30f3\u30b9\u60c5\u5831" }, "IicSequenceDetail": { "properties": { "iic_sequence_id": { "type": "integer", "title": "Iic Sequence Id" }, "sequence_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sequence Type" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "comments": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Comments" }, "cmd_str": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cmd Str" }, "group_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Group Id" }, "created_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Created At" }, "group": { "anyOf": [ { "$ref": "#/components/schemas/SequenceGroup" }, { "type": "null" } ] }, "notes": { "items": { "$ref": "#/components/schemas/VisitSetNote" }, "type": "array", "title": "Notes", "default": [] }, "status": { "anyOf": [ { "$ref": "#/components/schemas/IicSequenceStatus" }, { "type": "null" } ] } }, "type": "object", "required": [ "iic_sequence_id" ], "title": "IicSequenceDetail", "description": "IIC\u30b7\u30fc\u30b1\u30f3\u30b9\u8a73\u7d30\uff08Visit\u8a73\u7d30\u7528\uff09\n\nstatus\u3092\u8ffd\u52a0" }, "IicSequenceStatus": { "properties": { "iic_sequence_id": { "type": "integer", "title": "Iic Sequence Id" }, "status_flag": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Status Flag" }, "cmd_output": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cmd Output" } }, "type": "object", "required": [ "iic_sequence_id" ], "title": "IicSequenceStatus", "description": "\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9" }, "LoginRequest": { "properties": { "username": { "type": "string", "title": "Username" }, "password": { "type": "string", "title": "Password" } }, "type": "object", "required": [ "username", "password" ], "title": "LoginRequest", "description": "\u30ed\u30b0\u30a4\u30f3\u30ea\u30af\u30a8\u30b9\u30c8" }, "LoginResponse": { "properties": { "success": { "type": "boolean", "title": "Success" }, "user_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "User Id" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" } }, "type": "object", "required": [ "success" ], "title": "LoginResponse", "description": "\u30ed\u30b0\u30a4\u30f3\u30ec\u30b9\u30dd\u30f3\u30b9" }, "LogoutResponse": { "properties": { "success": { "type": "boolean", "title": "Success" }, "message": { "type": "string", "title": "Message" } }, "type": "object", "required": [ "success", "message" ], "title": "LogoutResponse", "description": "\u30ed\u30b0\u30a2\u30a6\u30c8\u30ec\u30b9\u30dd\u30f3\u30b9" }, "McsExposure": { "properties": { "frame_id": { "type": "integer", "title": "Frame Id" }, "exptime": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Exptime" }, "altitude": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Altitude" }, "azimuth": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Azimuth" }, "insrot": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Insrot" }, "adc_pa": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Adc Pa" }, "dome_temperature": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Dome Temperature" }, "dome_pressure": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Dome Pressure" }, "dome_humidity": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Dome Humidity" }, "outside_temperature": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Outside Temperature" }, "outside_pressure": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Outside Pressure" }, "outside_humidity": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Outside Humidity" }, "mcs_cover_temperature": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Mcs Cover Temperature" }, "mcs_m1_temperature": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Mcs M1 Temperature" }, "taken_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Taken At" }, "notes": { "items": { "$ref": "#/components/schemas/McsExposureNote" }, "type": "array", "title": "Notes", "default": [] } }, "type": "object", "required": [ "frame_id" ], "title": "McsExposure", "description": "MCS\u9732\u51fa" }, "McsExposureNote": { "properties": { "id": { "type": "integer", "title": "Id" }, "body": { "type": "string", "title": "Body" }, "user": { "$ref": "#/components/schemas/ObslogUser" } }, "type": "object", "required": [ "id", "body", "user" ], "title": "McsExposureNote", "description": "MCS\u9732\u51fa\u306b\u7d10\u3065\u304f\u30e1\u30e2" }, "McsVisitDetail": { "properties": { "exposures": { "items": { "$ref": "#/components/schemas/McsExposure" }, "type": "array", "title": "Exposures", "default": [] } }, "type": "object", "title": "McsVisitDetail", "description": "MCS Visit\u8a73\u7d30" }, "NoteCreateRequest": { "properties": { "body": { "type": "string", "title": "Body" } }, "type": "object", "required": [ "body" ], "title": "NoteCreateRequest", "description": "\u30e1\u30e2\u4f5c\u6210\u30ea\u30af\u30a8\u30b9\u30c8" }, "NoteCreateResponse": { "properties": { "id": { "type": "integer", "title": "Id" } }, "type": "object", "required": [ "id" ], "title": "NoteCreateResponse", "description": "\u30e1\u30e2\u4f5c\u6210\u30ec\u30b9\u30dd\u30f3\u30b9" }, "NoteUpdateRequest": { "properties": { "body": { "type": "string", "title": "Body" } }, "type": "object", "required": [ "body" ], "title": "NoteUpdateRequest", "description": "\u30e1\u30e2\u66f4\u65b0\u30ea\u30af\u30a8\u30b9\u30c8" }, "ObslogUser": { "properties": { "id": { "type": "integer", "title": "Id" }, "account_name": { "type": "string", "title": "Account Name" } }, "type": "object", "required": [ "id", "account_name" ], "title": "ObslogUser", "description": "\u30e6\u30fc\u30b6\u30fc\u60c5\u5831" }, "PfsDesignDetail": { "properties": { "fits_meta": { "$ref": "#/components/schemas/FitsMeta" }, "date_modified": { "type": "string", "format": "date-time", "title": "Date Modified" }, "design_data": { "$ref": "#/components/schemas/DesignData" }, "photometry_data": { "$ref": "#/components/schemas/PhotometryData" }, "guidestar_data": { "$ref": "#/components/schemas/GuidestarData" } }, "type": "object", "required": [ "fits_meta", "date_modified", "design_data", "photometry_data", "guidestar_data" ], "title": "PfsDesignDetail", "description": "PFS Design \u8a73\u7d30" }, "PfsDesignEntry": { "properties": { "id": { "type": "string", "title": "Id" }, "frameid": { "type": "string", "title": "Frameid" }, "name": { "type": "string", "title": "Name" }, "date_modified": { "type": "string", "format": "date-time", "title": "Date Modified" }, "ra": { "type": "number", "title": "Ra" }, "dec": { "type": "number", "title": "Dec" }, "arms": { "type": "string", "title": "Arms" }, "num_design_rows": { "type": "integer", "title": "Num Design Rows" }, "num_photometry_rows": { "type": "integer", "title": "Num Photometry Rows" }, "num_guidestar_rows": { "type": "integer", "title": "Num Guidestar Rows" }, "design_rows": { "$ref": "#/components/schemas/DesignRows" } }, "type": "object", "required": [ "id", "frameid", "name", "date_modified", "ra", "dec", "arms", "num_design_rows", "num_photometry_rows", "num_guidestar_rows", "design_rows" ], "title": "PfsDesignEntry", "description": "PFS Design \u30a8\u30f3\u30c8\u30ea\uff08\u4e00\u89a7\u7528\uff09" }, "PhotometryData": { "properties": { "fiberId": { "items": { "type": "integer" }, "type": "array", "title": "Fiberid" }, "fiberFlux": { "items": { "type": "number" }, "type": "array", "title": "Fiberflux" }, "psfFlux": { "items": { "type": "number" }, "type": "array", "title": "Psfflux" }, "totalFlux": { "items": { "type": "number" }, "type": "array", "title": "Totalflux" }, "fiberFluxErr": { "items": { "type": "number" }, "type": "array", "title": "Fiberfluxerr" }, "psfFluxErr": { "items": { "type": "number" }, "type": "array", "title": "Psffluxerr" }, "totalFluxErr": { "items": { "type": "number" }, "type": "array", "title": "Totalfluxerr" }, "filterName": { "items": { "type": "string" }, "type": "array", "title": "Filtername" } }, "type": "object", "required": [ "fiberId", "fiberFlux", "psfFlux", "totalFlux", "fiberFluxErr", "psfFluxErr", "totalFluxErr", "filterName" ], "title": "PhotometryData", "description": "\u6e2c\u5149\u30c7\u30fc\u30bf" }, "SequenceGroup": { "properties": { "group_id": { "type": "integer", "title": "Group Id" }, "group_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Group Name" }, "created_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Created At" } }, "type": "object", "required": [ "group_id" ], "title": "SequenceGroup", "description": "\u30b7\u30fc\u30b1\u30f3\u30b9\u30b0\u30eb\u30fc\u30d7" }, "SpsAnnotation": { "properties": { "annotation_id": { "type": "integer", "title": "Annotation Id" }, "data_flag": { "type": "integer", "title": "Data Flag" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Notes" }, "created_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Created At" } }, "type": "object", "required": [ "annotation_id", "data_flag" ], "title": "SpsAnnotation", "description": "SpS\u9732\u51fa\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3" }, "SpsExposure": { "properties": { "camera_id": { "type": "integer", "title": "Camera Id" }, "exptime": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Exptime" }, "exp_start": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Exp Start" }, "exp_end": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Exp End" }, "annotations": { "items": { "$ref": "#/components/schemas/SpsAnnotation" }, "type": "array", "title": "Annotations", "default": [] } }, "type": "object", "required": [ "camera_id" ], "title": "SpsExposure", "description": "SpS\u9732\u51fa" }, "SpsVisitDetail": { "properties": { "exp_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Exp Type" }, "exposures": { "items": { "$ref": "#/components/schemas/SpsExposure" }, "type": "array", "title": "Exposures", "default": [] } }, "type": "object", "title": "SpsVisitDetail", "description": "SpS Visit\u8a73\u7d30" }, "UserResponse": { "properties": { "user_id": { "type": "string", "title": "User Id" } }, "type": "object", "required": [ "user_id" ], "title": "UserResponse", "description": "\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u30ec\u30b9\u30dd\u30f3\u30b9" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" }, "VisitDetail": { "properties": { "id": { "type": "integer", "title": "Id" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "issued_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Issued At" }, "notes": { "items": { "$ref": "#/components/schemas/VisitNote" }, "type": "array", "title": "Notes", "default": [] }, "sps": { "anyOf": [ { "$ref": "#/components/schemas/SpsVisitDetail" }, { "type": "null" } ] }, "mcs": { "anyOf": [ { "$ref": "#/components/schemas/McsVisitDetail" }, { "type": "null" } ] }, "agc": { "anyOf": [ { "$ref": "#/components/schemas/AgcVisitDetail" }, { "type": "null" } ] }, "iic_sequence": { "anyOf": [ { "$ref": "#/components/schemas/IicSequenceDetail" }, { "type": "null" } ] } }, "type": "object", "required": [ "id" ], "title": "VisitDetail", "description": "Visit\u8a73\u7d30\u306e\u30ec\u30b9\u30dd\u30f3\u30b9" }, "VisitList": { "properties": { "visits": { "items": { "$ref": "#/components/schemas/VisitListEntry" }, "type": "array", "title": "Visits" }, "iic_sequences": { "items": { "$ref": "#/components/schemas/IicSequence" }, "type": "array", "title": "Iic Sequences" }, "count": { "type": "integer", "title": "Count" } }, "type": "object", "required": [ "visits", "iic_sequences", "count" ], "title": "VisitList", "description": "Visit\u4e00\u89a7\u306e\u30ec\u30b9\u30dd\u30f3\u30b9" }, "VisitListEntry": { "properties": { "id": { "type": "integer", "title": "Id" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "issued_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Issued At" }, "iic_sequence_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Iic Sequence Id" }, "n_sps_exposures": { "type": "integer", "title": "N Sps Exposures", "default": 0 }, "n_mcs_exposures": { "type": "integer", "title": "N Mcs Exposures", "default": 0 }, "n_agc_exposures": { "type": "integer", "title": "N Agc Exposures", "default": 0 }, "avg_exptime": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Exptime" }, "avg_azimuth": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Azimuth" }, "avg_altitude": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Altitude" }, "avg_ra": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Ra" }, "avg_dec": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Dec" }, "avg_insrot": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Insrot" }, "notes": { "items": { "$ref": "#/components/schemas/VisitNote" }, "type": "array", "title": "Notes", "default": [] }, "pfs_design_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Pfs Design Id" } }, "type": "object", "required": [ "id" ], "title": "VisitListEntry", "description": "Visit\u4e00\u89a7\u306e\u5404\u30a8\u30f3\u30c8\u30ea" }, "VisitNote": { "properties": { "id": { "type": "integer", "title": "Id" }, "user_id": { "type": "integer", "title": "User Id" }, "pfs_visit_id": { "type": "integer", "title": "Pfs Visit Id" }, "body": { "type": "string", "title": "Body" }, "user": { "$ref": "#/components/schemas/ObslogUser" } }, "type": "object", "required": [ "id", "user_id", "pfs_visit_id", "body", "user" ], "title": "VisitNote", "description": "Visit\u306b\u7d10\u3065\u304f\u30e1\u30e2" }, "VisitRankResponse": { "properties": { "rank": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Rank" } }, "type": "object", "title": "VisitRankResponse", "description": "Visit\u9806\u4f4d\u306e\u30ec\u30b9\u30dd\u30f3\u30b9" }, "VisitSetNote": { "properties": { "id": { "type": "integer", "title": "Id" }, "user_id": { "type": "integer", "title": "User Id" }, "iic_sequence_id": { "type": "integer", "title": "Iic Sequence Id" }, "body": { "type": "string", "title": "Body" }, "user": { "$ref": "#/components/schemas/ObslogUser" } }, "type": "object", "required": [ "id", "user_id", "iic_sequence_id", "body", "user" ], "title": "VisitSetNote", "description": "\u30b7\u30fc\u30b1\u30f3\u30b9\uff08Visit Set\uff09\u306b\u7d10\u3065\u304f\u30e1\u30e2" } } } }