• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

karanshukla / openresto / 26950397120

04 Jun 2026 12:00PM UTC coverage: 85.4% (-0.8%) from 86.165%
26950397120

push

github

web-flow
Merge pull request #110 from karanshukla/dev-fix-backend-deletion-purges

rework routes and add deletion

2865 of 3796 branches covered (75.47%)

Branch coverage included in aggregate %.

854 of 985 new or added lines in 27 files covered. (86.7%)

2 existing lines in 1 file now uncovered.

6868 of 7601 relevant lines covered (90.36%)

61.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.78
/OpenRestoApi/Controllers/AvailabilityController.cs
1
using Microsoft.AspNetCore.Mvc;
2
using Microsoft.AspNetCore.RateLimiting;
3
using OpenRestoApi.Core.Application.DTOs;
4
using OpenRestoApi.Core.Application.Services;
5

6
namespace OpenRestoApi.Controllers;
7

8
[ApiController]
9
[Route("api/[controller]")]
10
[EnableRateLimiting("public")]
11
public class AvailabilityController(AvailabilityService availabilityService) : ControllerBase
6✔
12
{
13
    private readonly AvailabilityService _availabilityService = availabilityService;
6✔
14

15
    [HttpGet("/api/restaurants/{restaurantId}/availability")]
16
    public async Task<IActionResult> Get(int restaurantId, [FromQuery] DateTime date, [FromQuery] int seats)
17
    {
18
        try
19
        {
20
            AvailabilityResponseDto result = await _availabilityService.GetAvailabilityAsync(restaurantId, date, seats);
6✔
21
            return Ok(result);
4✔
22
        }
UNCOV
23
        catch (ArgumentException ex)
×
24
        {
UNCOV
25
            return NotFound(new { message = ex.Message });
×
26
        }
27
        catch (Exception ex)
2✔
28
        {
29
            return StatusCode(500, new { message = "An error occurred while checking availability.", detail = ex.Message });
2✔
30
        }
31
    }
6✔
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc