File requests

Post Files

POST https://ai-skin-server.herokuapp.com/v1/file/basic

Post files to the api server to be processed

Headers

Name
Type
Description

Authorization

string

Your api key

Request Body

Name
Type
Description

images

string

Send an image to the api server to be processed

{
  "status": "ok",
  "type": "rosacea",
  "confidence": 1
}

Send post a file to the backend server with node-js

const FormData = require('form-data');
const fetch = require('node-fetch');

function uploadImage(imageBuffer) {
  const form = new FormData();
  form.append('file', imageBuffer, {
    contentType: 'image/jpeg',
    filename: 'dummy.jpg',
  });
  return fetch(`https://ai-skin-server.herokuapp.com/v1/file/raw`, { method: 'POST', body: form })
};

Post files and get raw data

POST https://ai-skin-server.herokuapp.com/v1/file/raw

Posts files to the api server to get proccesed ( returns raw data )

Headers

Name
Type
Description

Authorization

string

Your api key

Request Body

Name
Type
Description

images

string

Send an image to the api server

{
  "status": "ok",
  "raw": {
    "vitiligo": 0,
    "rosacea": 0,
    "ringworm": 0,
    "psoriasis": 0,
    "normal": 1,
    "melesma": 0,
    "melanoma": 0,
    "measles": 0,
    "lupus": 0,
    "Keratosis-pilaris": 0,
    "Cold_sore": 0,
    "Chickenpox": 0,
    "Cellulitis": 0,
    "Blister": 0,
    "Basal Skin Cancer": 0,
    "Actinic Keratosis": 0,
    "Acne": 0
  }
}

Last updated

Was this helpful?