Giter Club home page Giter Club logo

shields-endpoint-whale-store's Introduction

웨일 스토어를 위한 shields.io 배지 엔드포인트 API 서버

License

shields.io엔드포인트 스키마를 구현한 웨일 스토어 정보 제공 서드파티 API 서버 입니다.

기능

현재는 웨일 스토어에 업로드 된 확장앱의 버전정보만 지원하고 있습니다.

사용 예시

아래 URL은 시연을 위해 운영중인 API서버의 주소입니다.

https://api.xvezda.com/v1/whale-store/v/{id}

  • URL구성
    • v1: shields.io 스키마 버전에 변동이 있을경우 하위호환등의 이유로 별도의 주소를 제공할 수 있도록 prefix로 사용되는 path 입니다. main.pyCustomFastAPI 서브클래스로 fastapi를 상속하여 구현됩니다.
    • v: 대상의 버전 정보를 가져오는것을 나타냅니다.
    • {id}: 32자 영소문자로 구성된 웨일 스토어 ID값입니다. 각 상세페이지 URL의 끝자리를 통해 확인이 가능합니다. 예시로 다음의 확장앱 상세페이지 URL는 다음과 같은 ID값을 갖습니다.

shields.io의 엔드포인트 URL은 다음과 같은 형식을 가집니다.

https://img.shields.io/endpoint?url=...&style=...

따라서 특정 확장앱의 버전 정보를 보여주는 shields.io 배지의 markdown은 다음과 같이 작성될 수 있습니다.

[![FixImg](https://img.shields.io/endpoint?url=https%3A%2F%2Fapi.xvezda.com%2Fv1%2Fwhale-store%2Fv%2Fccamieeifalippbcdjfokaamepjpjcdo)](https://store.whale.naver.com/detail/ccamieeifalippbcdjfokaamepjpjcdo)

렌더링된 마크업의 결과는 아래와같이 보이게됩니다.

FixImg

shields.io에서는 다음 URL을 통해 엔드포인트 스키마에 관한 정보와 커스터마이징을 위한 웹 인터페이스를 제공하고 있습니다.

https://shields.io/endpoint

호스팅

개인서버에 호스팅하기 위해선 현 저장소를 git을 이용해 clone하여 설치하는것도 가능하지만, docker hub에 이미지를 배포중이므로 아래의 명령어를 통해 간편하고 빠르게 배포하는것이 가능합니다.

docker run xvezda/shields-endpoint-whale-store

shields-endpoint-whale-store's People

Contributors

dependabot[bot] avatar xvezda avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

akaib rheehot

shields-endpoint-whale-store's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.