Skip to content

Commit

Permalink
🐛 Update switched endpoint names + 📝 Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahNxT committed Nov 14, 2023
1 parent 4212745 commit ee90900
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ composer require noahnxt/laravel-open-holiday-api
$holidayApi = new \NoahNxT\LaravelOpenHolidayApi\HolidayApi();
$holidays = $holidayApi
->holidays()
->returnsListOfOfficialSchoolHolidaysForGivenCountry(
->publicHolidays(
'BE',
'NL',
'2023-01-01',
Expand Down
4 changes: 2 additions & 2 deletions src/Requests/Holidays/PublicHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
use Saloon\Http\Request;

/**
* Returns list of official school holidays for a given country
* Returns list of public holidays for a given country
*/
class PublicHolidays extends Request
{
protected Method $method = Method::GET;

public function resolveEndpoint(): string
{
return '/SchoolHolidays';
return '/PublicHolidays';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Requests/Holidays/SchoolHolidays.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
use Saloon\Http\Request;

/**
* Returns list of public holidays for a given country
* Returns list of official school holidays for a given country
*/
class SchoolHolidays extends Request
{
protected Method $method = Method::GET;

public function resolveEndpoint(): string
{
return '/PublicHolidays';
return '/SchoolHolidays';
}

/**
Expand Down

0 comments on commit ee90900

Please sign in to comment.