POST | /tender/{tenderid}/user/{userid}/procurement |
---|
System.NotSupportedException: Unknown language 'mjs', Supported languages: csharp, typescript, dart, java, kotlin, python, swift, vbnet, fsharp at ServiceStack.NativeTypes.LangGeneratorExtensions.GenerateSourceCode(MetadataTypes metadataTypes, MetadataTypesConfig typesConfig, String lang, IRequest req, Action`1 configure) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/NativeTypes/ILangGenerator.cs:line 53 at ServiceStack.NativeTypes.LangGeneratorExtensions.GenerateSourceCode(List`1 metadataTypes, String lang, IRequest req, Action`1 configure) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/NativeTypes/ILangGenerator.cs:line 26 at ServiceStack.Metadata.BaseMetadataHandler.ProcessOperationsAsync(Stream writer, IRequest httpReq, IResponse httpRes) in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/src/ServiceStack/Metadata/BaseMetadataHandler.cs:line 207
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /tender/{tenderid}/user/{userid}/procurement HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
TenderId: 0,
UserId: 0,
LegalRepresentatives:
[
{
Position: String,
Name: String,
Address: String,
BirthDate: 0001-01-01,
Email: String
}
],
IsGroupMember: False,
GroupName: String,
GroupShortName: String,
CountryId: 0,
VatNumber: String,
RegistrationNumber: String,
Duns: String,
Address: String,
MainActivity: String,
EstablishedDate: 0001-01-01,
Workforce: 0,
Website: String,
SalesManagerName: String,
SalesManagerPhone: String,
SalesManagerEmail: String,
CsrManagerName: String,
CsrManagerPhone: String,
CsrManagerEmail: String,
AccountCountryId: 0,
BankName: String,
AccountNumber: String,
Iban: String,
Swift: String,
CurrencyId: 0,
WorkForceN1: 0,
WorkForceN2: 0,
WorkForceN3: 0,
SubscribedCapital: 0,
SubscribedCapitalCurrencyId: 0,
RevenueN1: 0,
RevenueN2: 0,
RevenueN3: 0,
NetProfitN1: 0,
NetProfitN2: 0,
NetProfitN3: 0,
EquityN1: 0,
EquityN2: 0,
EquityN3: 0,
LiabilityN1: 0,
LiabilityN2: 0,
LiabilityN3: 0,
OperatingResultN1: 0,
OperatingResultN2: 0,
OperatingResultN3: 0,
DBFailureScore: String,
IsAuditedAccount: False,
IsAuditedAccountComment: String,
IsLiquidationProceedings: False,
IsLiquidationProceedingsComment: String,
VeoliaAnnualRevenuesProportion: 0,
IsAntiCorruptionDocument: False,
IsCorruptionRiskMap: False,
IsThirdPartiesEvaluatingSystem: False,
IsInternalRules: False,
IsHumanRights: False,
IsAntiCorruptionTraining: False,
IsAntiCorruptionReportSystem: False,
IsIso9001: False,
IsEcoVadisScorecard: False,
EcoVadisTotalScore: 0,
IsReduceEmployeeSafetyRisk: False,
IsPromoteSocialIntegration: False,
IsNondiscriminationPolicy: False,
IsIso14001: False,
IsIdentifiedMajorEnvironmentalImpacts: False,
IsUseWaterResources: False,
IsConsumptionOfRawMaterials: False,
IsEnergyConsumption: False,
IsGreenhouseGasEmissions: False,
IsAtmosphericEmissions: False,
IsAqueousPollution: False,
IsWasteGeneration: False,
IsNaturalAreasPollution: False,
IsPrivacyStatement: False,
IsVeoliaSupplierCharter: False,
IsVeoliaCoreStandards: False,
ConcurrencyStamp: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Id: 0, ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }