aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/UserController.cs
blob: 84231d1f8f2765ac3672f80c35cad97434c260ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Threading.Tasks;
using AutoMapper;
using DevHive.Data.Repositories;
using DevHive.Services.Models.Identity;
using DevHive.Services.Options;
using DevHive.Services.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace DevHive.Web.Controllers
{
	[ApiController]
	[Route("/api/[controller]")]
	public class UserController: ControllerBase
	{
		private readonly UserService _service;

		public UserController(DevHiveContext context, IMapper mapper, JWTOptions jwtOptions)
		{
			//this._service = new UserService(context, mapper, jwtOptions);
		}

		[HttpPost]
		[Route("Login")]
		public async Task<IActionResult> Login([FromBody] LoginServiceModel loginServiceModel)
		{
			//return await this._service.LoginUser(loginDTO);
			throw new NotImplementedException();
		}

		[HttpPost]
		[Route("Register")]
		public async Task<IActionResult> Register([FromBody] RegisterServiceModel registerServiceModel)
		{
			//return await this._service.RegisterUser(registerDto);
			throw new NotImplementedException();
		}

		//Read
		[HttpGet]
		public async Task<IActionResult> GetById(Guid id)
		{
			//return await this._service.GetUserById(id);
			throw new NotImplementedException();
		}

		//Update
		[HttpPut]
		[Authorize]
		public async Task<IActionResult> Update(Guid id, [FromBody] UpdateUserServiceModel updateUserServiceModel)
		{
			//return await this._service.UpdateUser(id, userDTO);
			throw new NotImplementedException();
		}

		//Delete
		[HttpDelete]
	   	[Authorize]	
		public async Task<IActionResult> Delete(Guid id)
		{
			//return await this._service.DeleteUser(id);
			throw new NotImplementedException();
		}
	}
}