Giter Site home page Giter Site logo

falconmicroservices's Introduction

File Manager(open to edit)

a dockerized micro-service for adding, updating, retrieving and deleting files

Quick Start

Testing

Files

Create a File

{
    "file": "mark.png"
}
  • Sample Response
{
    "status": true,
    "message": "File Uploaded"
}

Get all Files

{
    "status": true,
    "message": "Files Found",
    "files": [
        {
            "id": "5e6288bc8c7fec6308a1d499",
            "file": "s3://falcon-bucket/files/mark.png"
        },
        {
            "id": "5e6288bc8c7fec6308a1d498",
            "file": "s3://falcon-bucket/files/essien.gif"
        },
        {
            "id": "5e6288bc8c7fec6308a1d497",
            "file": "s3://falcon-bucket/files/seyi.jpg"
        },
        {
            "id": "5e6288bc8c7fec6308a1d496",
            "file": "s3://falcon-bucket/files/john.gif"
        },
        {
            "id": "5e6288bc8c7fec6308a1d495",
            "file": "s3://falcon-bucket/files/doe.jpeg"
        }
    ]
}

Get a File

{
    "status": true,
    "message": "File Found",
    "file": {
        "id": "5e6288bc8c7fec6308a1d499",
        "file": "s3://falcon-bucket/files/mark.png"
    }
}

Update a File

{
    "id": "5e6288bc8c7fec6308a1d499",
    "file": "s3://falcon-bucket/files/mark.png"
}
  • Sample Response
{
    "status": true,
    "message": "File Updated"
}

Delete a File

{
    "id": "5e6288bc8c7fec6308a1d499"
}
  • Sample Response
{
    "status": true,
    "message": "File Deleted"
}

Search a File

Get all Files - Paging

File structure

+- falconmicroservices/ - name of the project folder. +--- config/ - main folder of the API. +--------- config.env - file used for common settings or variables. +--------- db.js - file used for db connectivity. +--- controllers/ - main folder of the API. +--------- files.js - file that houses getFiles(), getFile(), createFile(), updateFile(), deleteFile(). +--- middleware/ - main folder of the API. +--------- async.js - handles asyncHandler(). +--------- error.js - handles errorHandler(). +--- models/ - main folder of the API. +--------- File.js - FileSchema. +--- node_modules/ - main folder of the API. +--- routes/ - main folder of the API. +--------- file.js - router. +--- utils/ - main folder of the API. +--------- errorResponse.js - ErrorResponse class. +--- .gitignore/ - main folder of the API. +--- LICENSE/ - main folder of the API. +--- index.js/ - main folder of the API. +--- README.md/ - main folder of the API.

falconmicroservices's People

Contributors

olucheye avatar oyedotunsodiq045 avatar saucecodee avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.