Skip to content

toureydaou/INAM_drugs_api

Repository files navigation

INAM Drugs API

INAM Drugs API, is a free online REST API which providing you all INAM pharmaceutical products JSON data.

Description

This API just provide you INAM products but not allows you to make some actions like: create, upadte or delete.

Ressources

There's just one ressource which are the products

How to

You can get data by all the way you know (fetch API, AJAX, cURL, Axios,...), the API will return you JSON data.

Get all drugs

fetch("https://inam-drugs-api.vercel.app/drugs")
  .then((data) => console.log(data));

Get drug by name

fetch("https://inam-drugs-api.vercel.app/drugs?name=test")
  .then((data) => console.log(data));

Get drug by id

fetch("https://inam-drugs-api.vercel.app/drugs/id")
  .then((data) => console.log(data));

Get all therapies

fetch("https://inam-drugs-api.vercel.app/drugs/therapies")
  .then((data) => console.log(data));

Get drugs by therapy

fetch("https://inam-drugs-api.vercel.app/drugs/therapy?=test")
  .then((data) => console.log(data));

Drugs

  {
    "id": String,
    "name": String,
    "price": Number,
    "price_inam": Number,
    "shape": String,
    "quantity": String,
    "dosage": String,
    "therapy": String
  }

About

An api node providing all INAM drugs in Togo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published