Authorization über access token eingebaut
This commit is contained in:
@@ -7,11 +7,30 @@ Namespace ApiController.Controllers
|
||||
|
||||
<ApiVersion("1")>
|
||||
<System.Web.Http.Route("api/v{version:apiVersion}/AVISO")>
|
||||
<Authorize>
|
||||
Public Class AVISOController
|
||||
Inherits System.Web.Http.ApiController
|
||||
|
||||
|
||||
|
||||
'If myTokenAttribute Then
|
||||
|
||||
'If operation.parameters Is Nothing Then
|
||||
' operation.parameters = New List(Of Parameter)()
|
||||
' End If
|
||||
|
||||
' operation.parameters.Add(New Parameter() With {
|
||||
' .name = "Authorization Token",
|
||||
' .[in] = "header",
|
||||
' .description = "my token description",
|
||||
' .required = True,
|
||||
' .type = "string"
|
||||
' })
|
||||
'End If
|
||||
|
||||
|
||||
Public Function GetValue() As String
|
||||
Return "Hello world!"
|
||||
Return "Hello world! -> muss autorisiert werden!"
|
||||
End Function
|
||||
|
||||
Public Function PostValue(ByVal API_AVISO As VERAG_PROG_ALLGEMEIN.cVERAG_in_TRAviso) As String
|
||||
|
||||
Reference in New Issue
Block a user