AniAPI, as the name suggest, is a RESTful Aplication Programming Interface
As of now, it allows the user to locally manage their anime watchlist via MongoDB and ASP.NET Core, more specifically HTTP requests
Database schema can be found on /swagger or in file Anime.cs
class Anime
{
[BsonElement("_id")]
string Id
[BsonElement("name")]
string Name
[BsonElement("finished")]
bool DoneWatching
[BsonElement("finished_airing")]
bool IsAiringFinished
[BsonElement("current_episode")]
int CurrentEpisode
[BsonElement("total_episodes")]
int TotalEpisodes
}
Usage examples 🧪
Get all animes
GET /anime
Delete a specific one
DELETE /anime?id=1243
Partially update an anime
PATCH /anime?id=1234&field=name&value=Bleach
Get it up and running ⚙️
-
Make sure you have MongoDB installed and there's an instance running
- The app connects to a passwordless database so make sure of it
-
.Net 5! It's required, click on the Target badge
-
Configure your environment variables or set the appropiate flags at the last point
Database
andCollection
. They're case sensitive!
-
Clone the repo
git clone https://github.com/StanlsSlav/AniAPI.git \
cd AniAPI
- Run the app and check on localhost:5001/ if it's up and running
dotnet run -p ./AnimeAPI -c Release
# Or with flags
dotnet run -p ./AnimeAPI -c Release -- -d <DB> -c <col>
P.S. Highly encouraging everybody to create their own validation rules and make daily exports of the data!
Seems fun? Contribute and help on making it awesome grander
- Fork the project
- Modify it
- Open a pull request