Required role: | VeoliaAdmin |
POST | /user/admin |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class BrowseAllAdminUser extends PaginationRequestBase implements IPost
{
}
public static class PaginationRequestBase implements IGridView
{
public GridViewState GridViewState = null;
public GridViewState getGridViewState() { return GridViewState; }
public PaginationRequestBase setGridViewState(GridViewState value) { this.GridViewState = value; return this; }
}
public static class GridViewState
{
public GridViewColumnState ColumnState = null;
public ArrayList<GridViewColumnFilter> ColumnFilters = null;
public GridViewPagerState PagerState = null;
public Boolean IsReturnCount = null;
public GridViewColumnState getColumnState() { return ColumnState; }
public GridViewState setColumnState(GridViewColumnState value) { this.ColumnState = value; return this; }
public ArrayList<GridViewColumnFilter> getColumnFilters() { return ColumnFilters; }
public GridViewState setColumnFilters(ArrayList<GridViewColumnFilter> value) { this.ColumnFilters = value; return this; }
public GridViewPagerState getPagerState() { return PagerState; }
public GridViewState setPagerState(GridViewPagerState value) { this.PagerState = value; return this; }
public Boolean getIsReturnCount() { return IsReturnCount; }
public GridViewState setIsReturnCount(Boolean value) { this.IsReturnCount = value; return this; }
}
public static class GridViewColumnState
{
public String FieldName = null;
public GridSortDirection SortDirection = null;
public String getFieldName() { return FieldName; }
public GridViewColumnState setFieldName(String value) { this.FieldName = value; return this; }
public GridSortDirection getSortDirection() { return SortDirection; }
public GridViewColumnState setSortDirection(GridSortDirection value) { this.SortDirection = value; return this; }
}
public static enum GridSortDirection
{
@SerializedName("0") None(0),
@SerializedName("1") Asc(1),
@SerializedName("2") Desc(2);
private final int value;
GridSortDirection(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class GridViewColumnFilter
{
public String FieldName = null;
public String FilterValue = null;
public FilterOperator Operator = null;
public String getFieldName() { return FieldName; }
public GridViewColumnFilter setFieldName(String value) { this.FieldName = value; return this; }
public String getFilterValue() { return FilterValue; }
public GridViewColumnFilter setFilterValue(String value) { this.FilterValue = value; return this; }
public FilterOperator getOperator() { return Operator; }
public GridViewColumnFilter setOperator(FilterOperator value) { this.Operator = value; return this; }
}
public static enum FilterOperator
{
@SerializedName("0") NotSet(0),
@SerializedName("1") Equal(1),
@SerializedName("2") Greater(2),
@SerializedName("3") Less(3),
@SerializedName("4") GreaterOrEqual(4),
@SerializedName("5") LessOrEqual(5),
@SerializedName("6") NotEqual(6),
@SerializedName("7") IsNull(7),
@SerializedName("8") IsNotNull(8),
@SerializedName("9") Like(9),
@SerializedName("10") NotLike(10),
@SerializedName("11") Begins(11),
@SerializedName("12") Ends(12),
@SerializedName("13") In(13),
@SerializedName("14") Between(14);
private final int value;
FilterOperator(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class GridViewPagerState
{
public Integer SkipRowCount = null;
public Integer PageRowCount = null;
public Integer getSkipRowCount() { return SkipRowCount; }
public GridViewPagerState setSkipRowCount(Integer value) { this.SkipRowCount = value; return this; }
public Integer getPageRowCount() { return PageRowCount; }
public GridViewPagerState setPageRowCount(Integer value) { this.PageRowCount = value; return this; }
}
public static class PaginationResponse<TenderSimple> extends ResponseBase
{
public PaginationResult<TenderSimple> Result = null;
public PaginationResult<TenderSimple> getResult() { return Result; }
public PaginationResponse<TenderSimple> setResult(PaginationResult<TenderSimple> value) { this.Result = value; return this; }
}
public static class ResponseBase
{
public ResponseStatus ResponseStatus = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ResponseBase setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class PaginationResult<TModel>
{
public Integer TotalRowCount = null;
public ArrayList<TModel> Items = null;
public Integer getTotalRowCount() { return TotalRowCount; }
public PaginationResult<TModel> setTotalRowCount(Integer value) { this.TotalRowCount = value; return this; }
public ArrayList<TModel> getItems() { return Items; }
public PaginationResult<TModel> setItems(ArrayList<TModel> value) { this.Items = value; return this; }
}
public static class TenderSimple
{
public Integer TenderId = null;
public String TenderIdentifier = null;
public ProcedureType ProcedureType = null;
public String Subject = null;
public String TenderRoundName = null;
public String SectionName = null;
public Date Deadline = null;
public TenderType TenderType = null;
public TenderStatus TenderStatus = null;
public Boolean IsUnderPublish = null;
public Date PublishStartDateTime = null;
public Date PublishEndDateTime = null;
public Integer PublishedById = null;
public Boolean IsProcurementEnabled = null;
public Boolean IsComplianceEnabled = null;
public Integer getTenderId() { return TenderId; }
public TenderSimple setTenderId(Integer value) { this.TenderId = value; return this; }
public String getTenderIdentifier() { return TenderIdentifier; }
public TenderSimple setTenderIdentifier(String value) { this.TenderIdentifier = value; return this; }
public ProcedureType getProcedureType() { return ProcedureType; }
public TenderSimple setProcedureType(ProcedureType value) { this.ProcedureType = value; return this; }
public String getSubject() { return Subject; }
public TenderSimple setSubject(String value) { this.Subject = value; return this; }
public String getTenderRoundName() { return TenderRoundName; }
public TenderSimple setTenderRoundName(String value) { this.TenderRoundName = value; return this; }
public String getSectionName() { return SectionName; }
public TenderSimple setSectionName(String value) { this.SectionName = value; return this; }
public Date getDeadline() { return Deadline; }
public TenderSimple setDeadline(Date value) { this.Deadline = value; return this; }
public TenderType getTenderType() { return TenderType; }
public TenderSimple setTenderType(TenderType value) { this.TenderType = value; return this; }
public TenderStatus getTenderStatus() { return TenderStatus; }
public TenderSimple setTenderStatus(TenderStatus value) { this.TenderStatus = value; return this; }
public Boolean getIsUnderPublish() { return IsUnderPublish; }
public TenderSimple setIsUnderPublish(Boolean value) { this.IsUnderPublish = value; return this; }
public Date getPublishStartDateTime() { return PublishStartDateTime; }
public TenderSimple setPublishStartDateTime(Date value) { this.PublishStartDateTime = value; return this; }
public Date getPublishEndDateTime() { return PublishEndDateTime; }
public TenderSimple setPublishEndDateTime(Date value) { this.PublishEndDateTime = value; return this; }
public Integer getPublishedById() { return PublishedById; }
public TenderSimple setPublishedById(Integer value) { this.PublishedById = value; return this; }
public Boolean getIsProcurementEnabled() { return IsProcurementEnabled; }
public TenderSimple setIsProcurementEnabled(Boolean value) { this.IsProcurementEnabled = value; return this; }
public Boolean getIsComplianceEnabled() { return IsComplianceEnabled; }
public TenderSimple setIsComplianceEnabled(Boolean value) { this.IsComplianceEnabled = value; return this; }
}
public static enum ProcedureType
{
@SerializedName("0") Competition(0),
@SerializedName("1") Simplified(1);
private final int value;
ProcedureType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static enum TenderType
{
@SerializedName("0") Private(0),
@SerializedName("1") Public(1);
private final int value;
TenderType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static enum TenderStatus
{
@SerializedName("0") FirstRound(0),
@SerializedName("1") SecondRound(1),
@SerializedName("2") ThirdRound(2),
@SerializedName("3") Successful(3),
@SerializedName("4") UnSuccessful(4),
@SerializedName("5") Revoked(5);
private final int value;
TenderStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /user/admin HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BrowseAllAdminUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto">
<GridViewState xmlns:d2p1="http://schemas.datacontract.org/2004/07/Portal.Common">
<d2p1:ColumnFilters>
<d2p1:GridViewColumnFilter>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:FilterValue>String</d2p1:FilterValue>
<d2p1:Operator>NotSet</d2p1:Operator>
</d2p1:GridViewColumnFilter>
</d2p1:ColumnFilters>
<d2p1:ColumnState>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:SortDirection>None</d2p1:SortDirection>
</d2p1:ColumnState>
<d2p1:IsReturnCount>false</d2p1:IsReturnCount>
<d2p1:PagerState>
<d2p1:PageRowCount>0</d2p1:PageRowCount>
<d2p1:SkipRowCount>0</d2p1:SkipRowCount>
</d2p1:PagerState>
</GridViewState>
</BrowseAllAdminUser>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <PaginationResponseOfUserDetailssQn7QJ6w xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto"> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Portal.Common"> <d2p1:Items> <UserDetails> <ConcurrencyStamp>String</ConcurrencyStamp> <DisplayName>String</DisplayName> <Email>String</Email> <Id>0</Id> <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </Meta> <MobilePhoneNumber>String</MobilePhoneNumber> <MobilePhoneNumberCountryCode>String</MobilePhoneNumberCountryCode> <MobilePhoneNumberCountryCodeId>0</MobilePhoneNumberCountryCodeId> <OrganizationUnit>String</OrganizationUnit> <PhoneNumber>String</PhoneNumber> <PhoneNumberCountryCode>String</PhoneNumberCountryCode> <PhoneNumberCountryCodeId>0</PhoneNumberCountryCodeId> <PhoneNumberExtension>String</PhoneNumberExtension> <Position>String</Position> <Roles xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:string>String</d5p1:string> </Roles> <Status>Registered</Status> <SupplierId>0</SupplierId> <SupplierOwnerId>0</SupplierOwnerId> <UserName>String</UserName> </UserDetails> </d2p1:Items> <d2p1:TotalRowCount>0</d2p1:TotalRowCount> </Result> </PaginationResponseOfUserDetailssQn7QJ6w>