{ "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": { "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" }, "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" }, "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" }, "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" }, "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" } } } }