luizhenriquesoares / dotnet-core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API RESTful de usuários + login

Stack

  • dotnet core 2.2
  • Redis
  • Entity Framework Core

Endpoints

Swagger Link: http://localhost:4000/swagger

enter image description here

localhost:4000/api/auth/signup

Exemplo

{
       "firstName": "Hello",
       "lastName": "World",
       "email": "hello@world2.com",
       "password": "hunter2",
       "phones": [
           {
               "number": 988887888,
               "area_code": 81,
               "country_code": "+55"
           }
       ]
   }
localhost:400/api/auth/signin

Exemplo

{
 "email": "hello@world2.com",
 "password": "hunter2"
}
Me
localhost:4000/api/me
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJoZWxsb0B3b3JsZDIuY29tIiwiYXV0aCI6eyJhdXRob3JpdHkiOiJ1c2VyIn0sImlhdCI6MTU0NjcyNTU2MywiZXhwIjoxNTQ2NzI5MTYzfQ.9i6Gyl5KSaDtIswkfCRpp5PEvJ53durimqfoeKxAMN0
Response
{
   "firstName": "Hello",
   "lastName": "World",
   "email": "hello@world2.com",
   "phones": [
       {
           "number": 988887888,
           "area_code": 81,
           "country_code": "+55"
       }
   ],
   "created_at": "2019-07-02T18:59:23.05",
   "last_login": "2019-07-02T18:59:23.05"
}

About


Languages

Language:C# 97.9%Language:Smalltalk 1.1%Language:Dockerfile 1.0%