2using System.Collections.Generic;
3using System.Threading.Tasks;
23 : base(
"Legal/GetApplicationAttributes",
24 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
44 List<string> Required =
new List<string>();
51 Required.Add(
"FIRST");
54 Required.Add(
"MIDDLE");
75 Required.Add(
"REGION");
78 Required.Add(
"COUNTRY");
81 Required.Add(
"NATIONALITY");
84 Required.Add(
"GENDER");
89 Required.Add(
"BMONTH");
90 Required.Add(
"BYEAR");
96 Required.Add(
"FIRST");
101 Required.Add(
"CITY");
102 Required.Add(
"COUNTRY");
107 {
"peerReview", PeerReview },
111 {
"Required", Required.ToArray() }
114 await Response.
Return(Result);
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
Static class managing loading of resources stored as embedded resources or in content files.
static string LoadResourceAsText(string ResourceName)
Loads a text resource from an embedded resource.
static DomainConfiguration Instance
Current instance of configuration.
string Domain
Principal domain name
Represents an HTTP request.
Represets a response of an HTTP client request.
async Task Return(object Object)
Returns an object to the client. This method can only be called once per response,...
Class managing a script expression.
Provides the user configuration options regarding peer-review of new legal identities.
static PeerReviewConfiguration Instance
Current instance of configuration.
Abstract base class for agent resources supporting the POST method.
static AccountUser AssertUserAuthenticated(HttpRequest Request)
Makes sure the request is made by an authenticated API user.
const string AgentNamespace
https://waher.se/Schema/BrokerAgent.xsd
Gets current application attributes.
GetApplicationAttributes()
Gets current application attributes.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.