Giter Site home page Giter Site logo

chapainaashish / nepali-ukhaan-apis Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 3.0 81 KB

This APIs provides the list of nepali ukhaan(idoms) along with their meaning and examples

Home Page: https://nepaliukhaan.onrender.com/

License: MIT License

Python 100.00%
api fastapi nepal nepali nepali-ukhaan nepali-ukhaan-tukka python rest-api hacktober hacktober2023 hacktoberfest hacktoberfest-accepted

nepali-ukhaan-apis's Introduction

Nepali-Ukhaan-APIs

The Nepali-Ukhaan API provides access to a list of Nepali idioms, known as ukhaan in Nepali, along with their Roman transliteration, English meaning, and an example sentence. The API makes a request to the README.md file from nepali-ukhaan.

UPDATE: API IS LIVE

https://nepaliukhaan.onrender.com/

This API is built using FastAPI, a modern, fast, web framework for building APIs with Python

How to Set up?

  1. Clone the reposistory https://github.com/chapainaashish/nepali-ukhaan-apis.git on your machine

  2. Install poetry, if not installed curl -sSL https://install.python-poetry.org | python3 -

  3. Install dependencies poetry install

  4. Activate the virtual environment poetry shell

  5. Run the server using uvicorn, uvicorn ukhaan_api.app:app

  6. Navigate to http://127.0.0.1:8000/

  7. Read the documentation http://127.0.0.1:8000//docs

Endpoints

  • /: Retrieves a paginated list of all ukhaan.

  • /nepali: Retrieves a paginated list of ukhaan sorted by Nepali text.

  • /roman: Retrieves a paginated list of ukhaan sorted by Roman text.

  • /example: Retrieves a paginated list of ukhaan sorted by example usage.

  • /random/ukhaan: Retrieves a random ukhaan from the list.

  • /random/nepali: Retrieves a random Nepali ukhaan in Nepali language

  • /random/roman: Retrieves a random ukhaan in Roman Nepali.

  • /random/example: Retrieves a random example usage of an ukhaan.

Query Parameters

The following query parameters can be used to modify the results returned by the API:

  • limit: The number of ukhaan to retrieve (default: 100).
  • offset: The starting index of the ukhaan to retrieve (default: 0).
  • show_all: Whether to retrieve all ukhaan at once, without pagination (default: False).

Example Usage

To retrieve a list of ukhaan, make a GET request to the following endpoint:

http://localhost:8000/

The response will be a JSON object containing a list of ukhaan. You can use the limit and offset query parameters to paginate the results. For example, to retrieve the first 10 ukhaan, you can make the following request:

http://localhost:8000?limit=10&offset=0

To retrieve all ukhaan at once, without pagination:

http://localhost:8000?show_all=true

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.