From 9791de306c22c744732219dadfd97b7dd556a5b2 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 21 Sep 2017 23:35:18 -0400 Subject: minor cleanup, formatting, documentation (#336) --- Dewdrop/Controllers/CheckController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Dewdrop/Controllers') diff --git a/Dewdrop/Controllers/CheckController.cs b/Dewdrop/Controllers/CheckController.cs index f3cdd364..def2edbc 100644 --- a/Dewdrop/Controllers/CheckController.cs +++ b/Dewdrop/Controllers/CheckController.cs @@ -8,10 +8,16 @@ using Dewdrop.Models; namespace Dewdrop.Controllers { + /// Provides an API to perform mod update checks. [Produces("application/json")] [Route("api/check")] public class CheckController : Controller { + /********* + ** Public methods + *********/ + /// Fetch version metadata for the given mods. + /// The mods for which to fetch update metadata. [HttpPost] public async Task Post([FromBody] NexusResponseModel[] mods) { @@ -25,7 +31,7 @@ namespace Dewdrop.Controllers try { // create request with HttpRequestMessage - var request = new HttpRequestMessage(HttpMethod.Get, new Uri($"http://www.nexusmods.com/stardewvalley/mods/{mod.Id}")); + var request = new HttpRequestMessage(HttpMethod.Get, new Uri($"http://www.nexusmods.com/stardewvalley/mods/{mod.ID}")); // add the Nexus Client useragent to get JSON response from the site request.Headers.UserAgent.ParseAdd("Nexus Client v0.63.15"); -- cgit