Simple File Storage

FREEMIUM
By saq7 | Updated a year ago | Storage

Simple File Storage Overview

Followers: 0
API Creator:
S
saq7
saq7
Rate API:
Log In to Rate API

README

Simple File Storage API

SimpleAPIs is a file storage service that will allow you to store and retrieve any file.

  1. You upload a file
    
  2. We return a token
    
  3. You use that token to retrieve or delete the file
    

Easy Peasy.

Upload a file

Use this endpoint to upload a file.
The file needs to be uploaded using a multipart request.
This endpoint responds with 201 Created once your file has been successfully uploaded.

fetch('https://simple-file-storage.p.rapidapi.com/files', {
  method: 'POST',
  body: file,
  headers: {
    'Content-Type' : 'multipart/form-data',
    'Authorization' : `Bearer ${API_KEY}`
  }
})

Retrieve a file

Retrieves a single File referenced by its unique ID.


fetch(`https://simple-file-storage.p.rapidapi.com/files/${file_id}`, {
  method: 'GET',
  headers: {
    'Authorization' : `Bearer ${API_KEY}`
  }
})

Delete a file

Deletes a single File referenced by its unique ID.


fetch(`https://simple-file-storage.p.rapidapi.com/files/${file_id}`, {
  method: 'DELETE',
  headers: {
    'Authorization' : `Bearer ${API_KEY}`
  }
})
Rating: 5 - Votes: 1