From fb9b8cf695d5d7420d2b2f77bba2cf7075c9a673 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 06:29:19 +0000 Subject: [PATCH 1/3] Initial plan From ac4a0e10cef50353d8948845c678013fee9102a9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 06:34:55 +0000 Subject: [PATCH 2/3] Add comprehensive API endpoint guide to Home page Co-authored-by: ramesh2051 <95218310+ramesh2051@users.noreply.github.com> --- Views/Home/Index.cshtml | 106 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index e476e3b..3c56e6c 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -66,6 +66,112 @@ + +
+ Access our RESTful APIs for programmatic integration with the Ship Services platform. +
+/api/ShipAgenciesApi
+ Retrieve all ship agencies with their contact information and details.
+ +[
+ {
+ "id": 1,
+ "agencyName": "Blue Ocean Maritime",
+ "contactPerson": "Alice Dsouza",
+ "contactEmail": "alice@blueocean.com"
+ },
+ {
+ "id": 2,
+ "agencyName": "Global Ports",
+ "contactPerson": "John Lee",
+ "contactEmail": "john@globalports.com"
+ }
+]
+ + Try out all available APIs directly in your browser with our Swagger UI interface. + Test endpoints, view request/response formats, and explore the complete API documentation. +
+ + Open Swagger UI + +
+ All API endpoints are accessible at:
+ http://localhost:5145/api/
+
+ All responses are returned in JSON format with appropriate HTTP status codes. +
++ Use tools like curl, Postman, or our built-in Swagger UI to test the endpoints. +
+curl -X GET "http://localhost:5145/api/ShipAgenciesApi" -H "accept: application/json"
+
All API endpoints are accessible at:
- http://localhost:5145/api/
+ @Context.Request.Scheme://@Context.Request.Host/api/
curl -X GET "http://localhost:5145/api/ShipAgenciesApi" -H "accept: application/json"
+ curl -X GET "@Context.Request.Scheme://@Context.Request.Host/api/ShipAgenciesApi" -H "accept: application/json"