Init WFuzz state

This commit is contained in:
Jan Stárek
2019-10-09 13:24:01 +02:00
parent 7c3ed5ef0b
commit a5eb2a97e1
114 changed files with 6221 additions and 0 deletions

43
parser/Models/Request.cs Normal file
View File

@@ -0,0 +1,43 @@
using System.Collections.Generic;
using System.Text;
namespace Models
{
public class Request
{
public string Method { get; }
public string Summary { get; set; }
public List<UriAttribute> UriAttributes { get; set; }
public List<Response> Responses { get; set; }
public string BodyExample { get; set; }
public Dictionary<string, object> BodySchema { get; set; }
public Request(string method)
{
Method = method;
}
public override string ToString()
{
StringBuilder builder = new StringBuilder();
builder.Append("Type: ");
builder.AppendLine(Method);
builder.Append("Summary: ");
builder.AppendLine(Summary);
builder.AppendLine("Uri Attributes: ");
foreach (var attribute in UriAttributes)
{
builder.AppendLine(attribute.ToString());
}
builder.AppendLine("Responses: ");
foreach (var response in Responses)
{
builder.AppendLine(response.ToString());
}
builder.Append("BodyExample: ");
builder.AppendLine(BodyExample);
return builder.ToString();
}
}
}