Fast Ref / API Reference / Query

get_outdated_references()

마크다운 다운로드

최신 파일이 아닌(OUTDATED) 레퍼런스 목록만 반환합니다. v2 신규 메서드입니다.

시그니처

api.get_outdated_references() -> dict

반환값

{
    "success": True,
    "data": [
        {
            "slot": int,
            "name": str,
            "namespace": str,
            "file_path": str,
        },
        ...
    ]
}

OUTDATED 레퍼런스가 없으면 data는 빈 리스트입니다.

예제

from os_fast_ref.api import FastRefAPI

api = FastRefAPI()
outdated = api.get_outdated_references()

if not outdated['data']:
    print("All references are up to date.")
else:
    for r in outdated['data']:
        print(f"  [{r['slot']}] {r['name']} — source file changed")

활용 예 — OUTDATED 확인 후 선택적 리로드

from os_fast_ref.api import FastRefAPI

api = FastRefAPI()
outdated = api.get_outdated_references()

if outdated['data']:
    result = api.reload_outdated_references()
    print(f"Reload complete: {result['success_count']} succeeded")

참고: check_file_status()는 전체 상태를, get_outdated_references()는 OUTDATED만 반환합니다. 자동화 파이프라인에서 변경 여부만 확인할 때는 이 메서드가 더 간결합니다.


💬

Need help with the API?

Open a support ticket or join the community discussion.

문의하기