mirror of
https://github.com/hargata/lubelog.git
synced 2026-02-03 17:53:02 -06:00
40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace CarCareTracker.Models
|
|
{
|
|
public class APIDocumentation
|
|
{
|
|
[JsonPropertyName("categoryName")]
|
|
public string CategoryName { get; set; }
|
|
[JsonPropertyName("methods")]
|
|
public List<APIMethod> Methods { get; set; } = new List<APIMethod>();
|
|
}
|
|
public class APIMethod
|
|
{
|
|
[JsonPropertyName("path")]
|
|
public string Path { get; set; }
|
|
[JsonPropertyName("description")]
|
|
public string Description { get; set; }
|
|
[JsonPropertyName("methodType")]
|
|
public APIMethodType MethodType { get; set; }
|
|
[JsonPropertyName("queryParams")]
|
|
public List<APIQueryParam> QueryParams { get; set; } = new List<APIQueryParam>();
|
|
[JsonPropertyName("hasBody")]
|
|
public bool HasBody { get; set; }
|
|
[JsonPropertyName("bodySample")]
|
|
public object BodySample { get; set; } = new object();
|
|
public string BodySampleString { get; set; }
|
|
[JsonPropertyName("bodyParamName")]
|
|
public string BodyParamName { get; set; }
|
|
}
|
|
public class APIQueryParam
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; }
|
|
[JsonPropertyName("required")]
|
|
public bool Required { get; set; }
|
|
[JsonPropertyName("description")]
|
|
public string Description { get; set; }
|
|
}
|
|
}
|