Git Product home page Git Product logo

doctorhouse.api's Introduction

DoctorHouse API

Find a place to stay while coronavirus ends for medical staff

image

You can see the mockups here:

https://xd.adobe.com/view/90541b33-88f5-400d-6dd8-b676b5f9495e-e665/

Getting started

The project is developed with .Net Core 3.0 and uses:

  • EF Core
  • Migrations
  • Swagger
  • Hangfire

Update submodules

Open a terminal window on the project's folder and run git submodule update --init --recursive.

Update database

Before starting please change the connection string on the file ext/DoctorHouse.Api/appsettings.json. After that on the Package Manager Console run update-database -project doctorhouse.data.

Run the application

Run the application and go to Swagger UI where you will find the different endpoints to be developed. https://localhost:44370/swagger/index.html

In order to authenticate you can generate a token with this cURL:

curl --location --request POST 'https://localhost:44370/api/v1/auth' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode '[email protected]' \
--data-urlencode 'password=123456' \
--data-urlencode 'grant_type=password'

Copy the access_token property and add it to the Swagger authentication

image

Endpoints

This is the list of endpoints:

  • Users
    • ✔️ Authentication
    • ✔️ GET Current User
    • ✔️ GET by ID
    • ✔️ POST
    • ✔️ PUT
  • Places
    • ✔️ GET
    • ✔️ GET by ID
    • ✔️ POST
    • ✔️ PUT
    • ✔️ DELETE
  • Requests (In Progress)
    • ✔️ GET
    • ✔️ GET by ID
    • ✔️ POST
    • ✔️ PUT
    • ✔️ DELETE
  • Guests
    • ✔️ GET
    • ✔️ PUT
  • Locations
    • ✔️ GET

image

Other features

Contributors

doctorhouse.api's People

Contributors

calbertora avatar betocastillo86 avatar

Watchers

James Cloos avatar Angel Soto avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.