FrameAppWS

<back to all web services

UpdateCitizenRQ

Requires Authentication
The following routes are available for this service:
All Verbs/citizen/update
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Nwa.Model.Tipos.nwa.citizen
Imports Nwa.Model.Tipos.nwa.core
Imports Nwa.Model.Contexto.nwa.citizen

Namespace Global

    Namespace Nwa.Model.Contexto.nwa.citizen

        Public Partial Class Citizen
            Public Overridable Property Email As String
            Public Overridable Property DisplayName As String
            Public Overridable Property Avatar As String
            Public Overridable Property Theme As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property Provider As Long
            Public Overridable Property ProviderId As String
            Public Overridable Property Password As String
            Public Overridable Property Banned As String
            Public Overridable Property Status As String
        End Class
    End Namespace

    Namespace Nwa.Model.Tipos.nwa.citizen

        Public Partial Class AuthenticateCitizenRS
            Inherits CoreRS
            Public Overridable Property Data As Citizen
        End Class

        Public Partial Class UpdateCitizenRQ
            Public Overridable Property Email As String
            Public Overridable Property DisplayName As String
            Public Overridable Property Avatar As String
            Public Overridable Property Theme As String
            Public Overridable Property PhoneNumber As String
            Public Overridable Property CurrentPassword As String
            Public Overridable Property Password As String
        End Class
    End Namespace

    Namespace Nwa.Model.Tipos.nwa.core

        Public Partial Class CoreRS
            Public Overridable Property Code As String
            Public Overridable Property ErrorMessage As String
            Public Overridable Property ErrorStackTrace As String
        End Class
    End Namespace
End Namespace

VB.NET UpdateCitizenRQ DTOs

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

HTTP + JSV

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

POST /citizen/update HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Email: String,
	DisplayName: String,
	Avatar: String,
	Theme: String,
	PhoneNumber: String,
	CurrentPassword: String,
	Password: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Data: 
	{
		Email: String,
		DisplayName: String,
		Avatar: String,
		Theme: String,
		PhoneNumber: String,
		Provider: 0,
		ProviderId: String,
		Password: String,
		Banned: String,
		Status: String
	},
	Code: String,
	ErrorMessage: String,
	ErrorStackTrace: String
}