기타

CocoaPods REST API

Phililip
728x90

안녕하세요.

 

CocoaPods에 배포된 모듈 버전 정보를 검색할 수 있는 REST API를 찾아서 공유드려요.

 

## Pod 최신버전 검색

메서드 요청 URL
GET https://trunk.cocoapods.org/api/v1/pods/{name}/specs/latest
URI Parameters Description
name Pod 이름 (ex. RxSwift)

 

아래는 RxSwift로 API 호출했을 때의 예시입니다.

 

 

## Pod 모든 버전 검색

메서드 요청 URL
GET https://trunk.cocoapods.org/api/v1/pods/{name}
URI Parameters Description
name Pod 이름 (ex. RxSwift)

 

아래는 RxSwift로 API 호출했을 때의 예시입니다.

 

 

## Pod 특정 버전 검색

메서드 요청 URL
GET https://trunk.cocoapods.org/api/v1/pods/{name}/versions/{version}
URI Parameters Description
name Pod 이름 (ex. RxSwift)
version Pod 버전

 

아래는 RxSwift로 API 호출했을 때의 예시입니다.

 

 

# 참고

 

CocoaPods Trunk · Apiary

 

cocoapodstrunk.docs.apiary.io

 


이번 글은 여기서 마무리.

 

 

 

반응형