Simple File Storage

FREEMIUM
(Ким) saq7 | Оновлено 4 days ago | Storage
Популярність

0.2 / 10

Затримки

667ms

Рівень обслуговування

9%

Health Check

N/A

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}`
  }
})
Відстежувачі: 1
Створювач API:
S
saq7
saq7
Увійти в «Ставки по API»
Рейтинг: 5 - Голосів: 1