ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

fetch : bad request #77

Closed FplusOlivier closed 3 years ago

FplusOlivier commented 3 years ago

Hello, On pfsense 2.5.0, when trying to fetch ${fauxapi_base_package_url}/${fauxapi_latest} Result is : fetch: https://raw.githubusercontent.com/ndejong/pfsense_fauxapi_packages/master/: Bad Request

Thanks

ndejong commented 3 years ago

Hi -

Before you can do a fetch ${fauxapi_base_package_url}/${fauxapi_latest} you'll need to set those two environment variables like this:-

set fauxapi_base_package_url='https://raw.githubusercontent.com/ndejong/pfsense_fauxapi_packages/master'
set fauxapi_latest=`fetch -qo - ${fauxapi_base_package_url}/LATEST`

You really should be able to cut-n-paste the whole example here

Closing this for now, please re-open if this is still a problem for you