Coder Social home page Coder Social logo

connectivity's Introduction

connectivity-api

Installation

Clone this repo

git clone [email protected]:xxx.git

Build and run!

docker-compose up --build -d

From now on, you will be able to send your requests under http://localhost:7778

GET endpoints:

GET / API welcome page

GET /health API health check

GET /listfiles Lists sample local files that can be encrypted

GET /download/{id} Downloads encrypted file with given job ID. Returns either the binary or HTTP_404

POST endpoints:

POST /api/agentmanagement/v3/encrypt Either gets a local file or a URL with a key to encrypt. Returns job ID

scenario-1 for request: {"key": "samplepassword", "filename": "file4.iso"}
scenario-2 for request: {"key": "samplepassword", "url": "https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg"}

POST /api/agentmanagement/v3/decrypt Decrypts the file according to given (preciously decrypted) job ID and key. Returns job ID

scenario-1 for request: {"key": "samplepassword", "id": "ip1uplfmvfz519jb"}

POST /api/agentmanagement/v3/check Returns job status for encryption by consuming given job ID

example request: {"id": "ip1uplfmvfz519jb"}

TODOs

POST /api/agentmanagement/v3/register Returns dummy response

POST /api/agentmanagement/v3/register/{agent_id} Returns dummy response

POST /api/agentmanagement/v3/oauth/token Returns dummy response

POST /api/agentmanagement/v3/exchange Returns dummy response

EOF

connectivity's People

Watchers

 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.