adding correct endpoints for json api for availability check.