-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Equals method and update Restaurants API
Refactored the Equals method in the Resturant class to implement IEquatable<Resturant> for better type safety and performance. Removed the GetHashCode method from the Resturant class, which may affect hash-based collections. Updated the host address in Restaurants.http and added two new HTTP GET requests for fetching all restaurants and a specific restaurant by ID.
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
@Restaurants_HostAddress = https://localhost:44369 | ||
@Restaurants_HostAddress = https://localhost:7244 | ||
|
||
|
||
GET {{Restaurants_HostAddress}}/api/resturant | ||
|
||
### | ||
|
||
@id=1 | ||
GET {{Restaurants_HostAddress}}/api/Resturant/{{id}} | ||
|
||
### |