Giter Site home page Giter Site logo

animalshelter.solution's Introduction

AnimalShelter.Solution API

By Anastasia Han

An API to help organize animals in a shelter.

Technologies Used

  • C#
  • NET 5.0
  • dotnet
  • MySQL
  • Entity Framework
  • Swashbuckle.AspNetCore

Description

This is an API to help organize animals in a shelter.

Setup/Installation Requirements

  • Clone repository.
  • Open code in your preferred code editor
  • Run dotnet ef migrations update to create a local instance of the database.
  • Create an appsettings.json file in the/AnimalShelter directory, and input the code { "ConnectionStrings": { "DefaultConnection": "Server=localhost;Port=3306;database=anastasia_han;uid=root;pwd=[YOUR-PASSWORD];" } }
  • Make sure to replace 'YOUR-PASSWORD' with your MySQL Workbench password.
  • Run dotnet build
  • Run dotnet run

API Documentation

API endpoints can be used in Postman or on your preferred brower. Once the API is running you can also go to [Your-server-address]/swagger.

No authentication is needed to use CRUD functionalities.

Endpoints

Base URL: http://localhoust:5001

HTTP Request structure

GET /api/Animals
POST /api/Animals
GET /api/Animals/{id}
PUT /api/Animals/{id}
DELETE /api/Animals/{id}

Example query

https://localhost:5001/api/animals/1

Example Response

{
  "animalId": 1,
  "name": "Nyangs",
  "species": "Cat",
  "age": 3,
  "gender": "Male",
}

Known Bugs

  • N/A

License

MIT

Copyright (c) 04/26/2022 Anastasia Han

animalshelter.solution's People

Contributors

1ana-banana avatar

Watchers

 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.