Giter Site home page Giter Site logo

anichin-api's Introduction

Anichin API

AniChin API adalah sebuah proyek yang dikembangkan untuk memudahkan developer dalam mengakses data-data anime dan manga. Proyek ini menggunakan teknologi RESTful API sehingga memudahkan developer dalam mengakses data-data yang dibutuhkan.

API Reference

FastAPI Donghua API

FastAPI Logo

This is a FastAPI-based API for fetching information about donghua (Chinese animation). It provides various endpoints to retrieve donghua data based on different criteria.

Endpoints

Endpoint Description Parameters Response
GET / Get home page page (optional) - int: The page number for pagination JSON containing donghua data
GET /search Search donghua by query q - string (required): The search query JSON containing search results
GET /info/{slug} Show detail of donghua slug - string (required): The unique identifier (slug) of the donghua JSON containing detailed information about the specified donghua
GET /genres Show list of genres None JSON containing the list of genres
GET /genre/{slug} Show list of donghua by genre slug - string (required): The slug of the genre JSON containing the list of donghua for the specified genre
page (optional) - int: The page number for pagination
GET /episode/{slug} Get detail of episode slug - string (required): The slug of the episode JSON containing the detail of the specified episode
GET /video-source/{slug} Show list of video source

Error Handling

The API handles various error scenarios and returns appropriate error responses in JSON format.

HTTP Status Code Description
400 Bad Request - Invalid request or missing query parameters
404 Not Found - The requested resource is not found
500 Internal Server Error - An internal server error occurs

Run Locally

Clone the project

  git clone https://github.com/asmindev/anichin-api

Go to the project directory

  cd my-project

Install dependencies

  pip install -r requirements.txt

Start the server

  uvicorn main:app --reload

Authors

anichin-api's People

Contributors

asmindev 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.