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 @@ + +
+
+
+

+ API Endpoint Guide +

+

+ Access our RESTful APIs for programmatic integration with the Ship Services platform. +

+
+
+ + +
+ +
+
+
+
Ship Agencies API
+
+
+
+ GET + /api/ShipAgenciesApi +
+

Retrieve all ship agencies with their contact information and details.

+ +
+ Response Example: +
[
+  {
+    "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"
+  }
+]
+
+
+
+
+ + +
+
+
+ +

Interactive API Testing

+

+ 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 + +
+
+
+
+ + +
+
+
+
+
Quick Start Guide
+
+
+
1. Base URL
+

+ All API endpoints are accessible at:
+ http://localhost:5145/api/ +

+
+
+
2. Response Format
+

+ All responses are returned in JSON format with appropriate HTTP status codes. +

+
+
+
3. Testing
+

+ Use tools like curl, Postman, or our built-in Swagger UI to test the endpoints. +

+
+
+ + +
+
Example cURL Command:
+
curl -X GET "http://localhost:5145/api/ShipAgenciesApi" -H "accept: application/json"
+
+
+
+
+
+
+ From 8eceb0e5622b8c7b1cf8d40e83d39e8887d5032f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 06:35:49 +0000 Subject: [PATCH 3/3] Fix hardcoded URLs to use dynamic host values Co-authored-by: ramesh2051 <95218310+ramesh2051@users.noreply.github.com> --- Views/Home/Index.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index 3c56e6c..c218667 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -144,7 +144,7 @@
1. Base URL

All API endpoints are accessible at:
- http://localhost:5145/api/ + @Context.Request.Scheme://@Context.Request.Host/api/

@@ -164,7 +164,7 @@
Example cURL Command:
-
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"