기본 정보

📌 POST /api/compiler/python HTTP/1.1

 Authorization : Bearer ${ACCESS_TOKEN}
 Content-type : application/json

브라우저에서 Python 언어로 실행하면 서버에서 python3를 실행시킨 값이 반환됩니다.

사용자가 무한 루프가 돌아가는 코드를 작성할 경우를 대비해 3초 프로세스를 주었습니다.

Request

Name Type Description
code String python 언어 입력 코드
input String scanf, 입력 받기
# 입력 예시
{
    "code" : "print(123)",
    "input" : ""
}

Response

Name Type Description
status String http 성공 코드
success boolean 전송 성공
message String 전송 성공 메시지
data Object isSuccessful, message
isSuccessful boolean 잘 동작되는 지 확인
message String 결과 값
{
    "status": 200,
    "success": true,
    "message": "Python3 언어 실행 성공입니다.",
    "data": {
        "isSuccessful": true,
        "message": "123\\n"
    }
}