Code Monkey home page Code Monkey logo

java-test-task's Introduction

java-test-task

Fork and make PR after complete

Create a HTTP REST API with the following functionality:

  1. A simple CRUD(Create Read Update Delete) REST JSON service for accounts under the route "/accounts". Important: the accounts must have a unique integer id for getting accountDetails in point "2" of the required task.

  2. A third-party service is used to get an accountDetails string. The third-party service uses socket communication with TLS1.2, you should be able to establish a connection and send/receive JSON messages. For getting the accountDetails string, you must send a JSON request in the form of {"id":3}, and will receive a JSON response in the form of {"id":3, accountDetails:"jhf7yf83h92h37d287u2nc9728c9h02897gc230c308g"}. Each message must be send with \r\n.

Service URI tls-test.scnetservices.ru:9000

To test it use - openssl s_client -connect tls-test.scnetservices.ru:9000.

Optional functionality for bonus points:

  1. File upload and listing under the route "/files".

  2. There should be some kind of authentication in order to make requests into the REST service. The accounts added should be able to login and also add accounts.

  3. Unit tests

Technical Requirements:

  • All data must be save to a database
  • All requests/responses, except for file upload requests, must be in the form of JSON
  • The REST service should use HTTPS
  • The system should be implemented with scalability and high-load in mind
  • Code should be written in a readable and maintainable way
  • The solution can use any sound technology/library in Java, bare minimum is Spring

java-test-task's People

Watchers

Grigorii avatar Aleksandr Zamiatin 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.