tvpl.api

<back to all web services

GetHeadTTPC

Requires Authentication
The following routes are available for this service:
GET/users/head-of-ttpc
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetHeadTTPC
    {
        
    }

    public static class AllUserResponse
    {
        public ArrayList<UserProfile> users = null;
        public Integer code = null;
        public String message = null;
        public Integer totalCount = null;
        
        public ArrayList<UserProfile> getUsers() { return users; }
        public AllUserResponse setUsers(ArrayList<UserProfile> value) { this.users = value; return this; }
        public Integer getCode() { return code; }
        public AllUserResponse setCode(Integer value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public AllUserResponse setMessage(String value) { this.message = value; return this; }
        public Integer getTotalCount() { return totalCount; }
        public AllUserResponse setTotalCount(Integer value) { this.totalCount = value; return this; }
    }

    public static class UserProfile extends UserLogin
    {
        public Integer id = null;
        public String fullName = null;
        public String email = null;
        public Integer departmentId = null;
        public Integer partyGroupId = null;
        public String avatar = null;
        public String telephone = null;
        public Date birthday = null;
        public Date createdAt = null;
        public Date updatedAt = null;
        public Integer failedLoginCount = null;
        @Ignore()
        public ArrayList<Integer> roles = null;

        public Date lastLoginDate = null;
        
        public Integer getId() { return id; }
        public UserProfile setId(Integer value) { this.id = value; return this; }
        public String getFullName() { return fullName; }
        public UserProfile setFullName(String value) { this.fullName = value; return this; }
        public String getEmail() { return email; }
        public UserProfile setEmail(String value) { this.email = value; return this; }
        public Integer getDepartmentId() { return departmentId; }
        public UserProfile setDepartmentId(Integer value) { this.departmentId = value; return this; }
        public Integer getPartyGroupId() { return partyGroupId; }
        public UserProfile setPartyGroupId(Integer value) { this.partyGroupId = value; return this; }
        public String getAvatar() { return avatar; }
        public UserProfile setAvatar(String value) { this.avatar = value; return this; }
        public String getTelephone() { return telephone; }
        public UserProfile setTelephone(String value) { this.telephone = value; return this; }
        public Date getBirthday() { return birthday; }
        public UserProfile setBirthday(Date value) { this.birthday = value; return this; }
        public Date getCreatedAt() { return createdAt; }
        public UserProfile setCreatedAt(Date value) { this.createdAt = value; return this; }
        public Date getUpdatedAt() { return updatedAt; }
        public UserProfile setUpdatedAt(Date value) { this.updatedAt = value; return this; }
        public Integer getFailedLoginCount() { return failedLoginCount; }
        public UserProfile setFailedLoginCount(Integer value) { this.failedLoginCount = value; return this; }
        public ArrayList<Integer> getRoles() { return roles; }
        public UserProfile setRoles(ArrayList<Integer> value) { this.roles = value; return this; }
        public Date getLastLoginDate() { return lastLoginDate; }
        public UserProfile setLastLoginDate(Date value) { this.lastLoginDate = value; return this; }
    }

    public static class UserLogin
    {
        @Required()
        public String name = null;
        
        public String getName() { return name; }
        public UserLogin setName(String value) { this.name = value; return this; }
    }

}

Java GetHeadTTPC DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /users/head-of-ttpc HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"users":[{"id":0,"fullName":"String","email":"String","departmentId":0,"partyGroupId":0,"avatar":"String","telephone":"String","birthday":"0001-01-01T00:00:00.0000000+07:06","createdAt":"0001-01-01T00:00:00.0000000+07:06","updatedAt":"0001-01-01T00:00:00.0000000+07:06","failedLoginCount":0,"roles":[0],"lastLoginDate":"0001-01-01T00:00:00.0000000+07:06","name":"String"}],"code":0,"message":"String","totalCount":0}