Developers: Aaron Van Curen, David Benge, Jacob Hash
- Mission Statement
- Testing Directions
- Database
- Features
- Links
We are creating an API for an animal adoption website hub. We would like various shelters to post available animals that are ready to be adopted and give potential animal owners an easy way to access this information.
NOTE This is scaffolding for utilizing the Web Api. You might still need to change certain values based on your own databases made from this program
- Clone Solution
- Upon opening solution find the Postman Tests folder in the file location for the solution
- Included is the AnimalShelter.postman_collection.json file
- In Postman import a new Workspace
- Drag and drop AnimalShelter.postman_collection.json
- In the workspace you will notice a plethora of endpoints
- Use Post Register Vet Account - This will create your account as a Vet
- Use Get Vet Token - This will automatically pull in your Bearer Token into the other tests
- The Vet Account was made for the Vaccine Tests. Initial testing of Vaccine will not enable any other tests
- Use Post Logout - This will enable you to create a new user
- Use Post Register Company Account - This will create your account as a Company
- Use Get Company Token - This will automatically pull in your Bearer Token into the other tests
- The Company Account was specifically made for the Post class and it's controllers
- Use Post Dog, Cat, and Bunny to allow you to test the Animals class. The Animals class will enable the Post class Tests
- Test the Post Class Post, Get, Put, and Delete Animal Posts endpoints
- Use Post Logout
- Use Post Register Customer Account - This will create your account as a Customer
- Use Get Customer Token - This will automatically pull in your Bearer Token into the other tests
- The Customer Account was made for the Adopt Tests. Previous testing of the Company process will enable the Adoption Tests
- This is the time to Test Comments and Replies. Comments on Posts will enable the Replies Tests.
- Adoptions can now be successfully tests
- Id string
- UserType UserType
- FullName string
- CompanyName string
- PhoneNumber string
- Address string
- Vaccines virtualListVaccine
- Animals virtualListAnimal
- Posts virtualListPost
- Ratings virtualListRating
- Rating double
- UserId string
- AdoptionId int
- PostId int
- Post virtualPost
- AnimalId int
- Name string
- Species SpeciesType
- Breed string
- Sex bool
- Fixed bool
- Vaccines virtualListVaccine
- Age string
- Description string
- AdoptionPrice decimal
- IsHouseTrained bool
- IsDeclawed bool
- IsEdible bool
- CommentId int
- Content string
- Author string
- Replies virtualListReply
- PostId int
- Post virtualPost
- RatingId int
- AdoptingProcessScore double
- FriendlinessScore double
- AverageScore double
- Id int
- ApplicationUser virtualApplicationUser
- UserId string
- PostId int
- AnimalId int
- Animal virtualAnimal
- ProfileId int
- Comments virtualListComment
- ReplyId int
- Content string
- Author string
- CommentId int
- Comment virtualComment
- VaccineId int
- Name string
- CommonName string
- ApplicableAnimals listString
- VaccinationSchedule string
- Post Register Account
- Get Token
- Post Logout
- Get Customers
- Get Companies
- Get Vets
- Get User by Email
- Update User by Id
- Delete User by Email
- Post User Rating
- Get User Rating
- Get User Rating by Rating Id
- Post Create Dog
- Post Create Cat
- Post Create Bunny
- Get Animals Posts
- Update Animal Posts
- Delete Animal Posts
- Post Adoption
- Get Adoption
- Get Adoption By Id
- Update Adoption
- Comment on Post
- Get Comment on Post
- Update Comment on Post
- Delete Comment on Post
- Reply on Comment
- Get Reply on Comment
- Update Reply on Comment
- Delete Reply on Comment
- Create Vaccine
- Get Vaccines
- Update Vaccine
- Delete Vaccine
- Search for Animal
- Post an Animal
- Adopt an Animal
- Provide Vaccine Info