Table of Contents

Class GetProjectEndpoint

Namespace
Ando.Server.Endpoints.Projects
Assembly
Ando.Server.dll

GET /api/projects/{id} - Get project details.

public class GetProjectEndpoint : EndpointWithoutRequest<GetProjectResponse>, IEndpoint, IEventBus, IServiceResolverBase, INoRequest
Inheritance
BaseEndpoint
Endpoint<EmptyRequest, GetProjectResponse>
EndpointWithoutRequest<GetProjectResponse>
GetProjectEndpoint
Implements
IEndpoint
IEventBus
IServiceResolverBase
INoRequest
Inherited Members
Endpoint<EmptyRequest, GetProjectResponse>.TryResolve<TService>()
Endpoint<EmptyRequest, GetProjectResponse>.Resolve<TService>()
Endpoint<EmptyRequest, GetProjectResponse>.CreateScope()
Endpoint<EmptyRequest, GetProjectResponse>.ProcessorState<TState>()
Endpoint<EmptyRequest, GetProjectResponse>.OnBeforeValidate(EmptyRequest)
Endpoint<EmptyRequest, GetProjectResponse>.OnAfterValidate(EmptyRequest)
Endpoint<EmptyRequest, GetProjectResponse>.OnBeforeHandle(EmptyRequest)
Endpoint<EmptyRequest, GetProjectResponse>.OnAfterHandle(EmptyRequest, GetProjectResponse)
Endpoint<EmptyRequest, GetProjectResponse>.OnValidationFailed()
Endpoint<EmptyRequest, GetProjectResponse>.AllowAnonymous(params Http[])
Endpoint<EmptyRequest, GetProjectResponse>.DontAutoSendResponse()
Endpoint<EmptyRequest, GetProjectResponse>.DontAutoTag()
Endpoint<EmptyRequest, GetProjectResponse>.DontCatchExceptions()
Endpoint<EmptyRequest, GetProjectResponse>.DontThrowIfValidationFails()
Endpoint<EmptyRequest, GetProjectResponse>.EnableAntiforgery()
Endpoint<EmptyRequest, GetProjectResponse>.Group<TEndpointGroup>()
Endpoint<EmptyRequest, GetProjectResponse>.PostProcessor<TPostProcessor>()
Endpoint<EmptyRequest, GetProjectResponse>.PostProcessors(params IPostProcessor<EmptyRequest, GetProjectResponse>[])
Endpoint<EmptyRequest, GetProjectResponse>.PreProcessor<TPreProcessor>()
Endpoint<EmptyRequest, GetProjectResponse>.PreProcessors(params IPreProcessor<EmptyRequest>[])
Endpoint<EmptyRequest, GetProjectResponse>.RequestBinder(IRequestBinder<EmptyRequest>)
Endpoint<EmptyRequest, GetProjectResponse>.ResponseInterceptor(IResponseInterceptor)
Endpoint<EmptyRequest, GetProjectResponse>.SerializerContext<TContext>(TContext)
Endpoint<EmptyRequest, GetProjectResponse>.SerializerContext<TContext>()
Endpoint<EmptyRequest, GetProjectResponse>.Summary(EndpointSummary)
Endpoint<EmptyRequest, GetProjectResponse>.Validator<TValidator>()
Endpoint<EmptyRequest, GetProjectResponse>.Verbs(params Http[])
Endpoint<EmptyRequest, GetProjectResponse>.AddError(ValidationFailure)
Endpoint<EmptyRequest, GetProjectResponse>.User
Endpoint<EmptyRequest, GetProjectResponse>.Response
Endpoint<EmptyRequest, GetProjectResponse>.Config
Endpoint<EmptyRequest, GetProjectResponse>.Env
Endpoint<EmptyRequest, GetProjectResponse>.Logger
Endpoint<EmptyRequest, GetProjectResponse>.BaseURL
Endpoint<EmptyRequest, GetProjectResponse>.HttpMethod
Endpoint<EmptyRequest, GetProjectResponse>.Form
Endpoint<EmptyRequest, GetProjectResponse>.Files
Endpoint<EmptyRequest, GetProjectResponse>.ResponseStarted
Endpoint<EmptyRequest, GetProjectResponse>.ValidationFailed
BaseEndpoint.Group<TEndpointGroup>()
BaseEndpoint.Definition
BaseEndpoint.HttpContext
BaseEndpoint.ValidationFailures

Constructors

GetProjectEndpoint(AndoDbContext, IProjectService, IBuildService)

public GetProjectEndpoint(AndoDbContext db, IProjectService projectService, IBuildService buildService)

Parameters

db AndoDbContext
projectService IProjectService
buildService IBuildService

Methods

Configure()

use this method to configure how the endpoint should be listening to incoming requests.

HINT: it is only called once during endpoint auto registration during app startup.

public override void Configure()

HandleAsync(CancellationToken)

the handler method for the endpoint. this method is called for each request received.

public override Task HandleAsync(CancellationToken ct)

Parameters

ct CancellationToken

a cancellation token

Returns

Task