Skip to content

create, read, update and delete data on Nepals caste system, districts, exports, flowers, and religions

Notifications You must be signed in to change notification settings

kashitamang/nepal-api

Repository files navigation

nepal-api

Use this free api to create, read, update and delete data on nepal's caste system, districts, exports, flowers, and religions. I recommend this Postman workspace to import requests for all non-GET methods.

API Calls

Introduction The nepal-api (Application Programming Interface) allows you to access this small database of resource infomation on the country of Nepal. You can use the API to build your own dynamic websites, practice testing api, or applications backed by the same data used on nepal-api.

Capabilities

With the nepal-api, you can:

-Search for and display datapoints
-Create new datapoits
-Update or Delete exsiting datapoints
-You can, for example, display a list of caste names, see more info on them based on id, and add a new caste to the database.

Using the API

This is a RESTful API, meaning that it uses predictable URLs to access resources.

Request Structure

To import a curl request, copy the request structure from the live site, on Postman visit import on the left hand sidebar > raw text > continue > import and send the request to receive JSON. The API is accessed through GET requests following this overall pattern:

curl -H https://nepal-api.herokuapp.com/districts 

Response Structure

[{"id":"1","name":"Gorkha"},{"id":"2","name":"Kathmandu"},{"id":"3","name":"Pokhara"}]

Endpoints

Please visit the live site for a complete list of curl requests and endpoints.

Query Parameters

All query parameters such as name, population, revenue_2020 are strings including id's.

About

create, read, update and delete data on Nepals caste system, districts, exports, flowers, and religions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published