Add ASF API swagger explorer

This commit is contained in:
JustArchi
2018-10-06 05:06:29 +02:00
parent 52a7bb048f
commit b15edf4559
21 changed files with 295 additions and 40 deletions

View File

@@ -19,14 +19,22 @@
// See the License for the specific language governing permissions and
// limitations under the License.
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;
namespace ArchiSteamFarm.IPC.Requests {
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
public sealed class WWWSendRequest {
/// <summary>
/// Full URL of the request to be made.
/// </summary>
/// <remarks>
/// URL must start from https:// scheme.
/// </remarks>
[Required]
[JsonProperty(Required = Required.Always)]
internal readonly string URL;
public readonly string URL;
// Deserialized from JSON
private WWWSendRequest() { }