added srg alias collection

pull/660/head
Frank Becker 2016-02-03 20:12:03 +01:00
parent 837f98fc9d
commit c3d3dab538
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
cite 'about-alias'
about-alias 'srg alias collection'
alias prettyjson='python -mjson.tool'
alias mobileHotelinfoList.dev='export MOBILE_HOTELINFO_API_URL="http://ra-dev.lan.servicereisen.de";mobileHotelinfoList'
alias mobileHotelinfoList.stag='export MOBILE_HOTELINFO_API_URL="http://ra-staging.lan.servicereisen.de";mobileHotelinfoList'
alias mobileHotelinfoGet.dev='export MOBILE_HOTELINFO_API_URL="http://ra-dev.lan.servicereisen.de";mobileHotelinfoGet'
alias mobileHotelinfoGet.stag='export MOBILE_HOTELINFO_API_URL="http://ra-staging.lan.servicereisen.de";mobileHotelinfoGet'
function mobileHotelinfoList(){
curl -i $MOBILE_HOTELINFO_API_URL/MobileHotelInfoInterface/api/hotelrating/list/RGFzSXN0RWluVGVzdFRva2Vu
}
function mobileHotelinfoGet(){
if [ -n "$1" ]; then
curl -i $MOBILE_HOTELINFO_API_URL/MobileHotelInfoInterface/api/hotelrating/RGFzSXN0RWluVGVzdFRva2Vu/$1
else
echo "Benötige eine ID. Siehe mobileHotelinfoList."
fi
}