Coder Social home page Coder Social logo

Satheesh's Projects

cryptr icon cryptr

Very basic encrypt and decrypt node module

vertxkotlin icon vertxkotlin

The challenge is to create a maven project which builds a fat jar that, when run, starts an HTTP server on port 8080. This server should provide a /person endpoint that responds as follows: POST /person, accepting content-type application/JSON: should parse the JSON body into a Person object. If the body contains an id field return status 400; otherwise allocate a unique numeric id to the person and save the object in an in-memory collection (e.g. a Map or List of some kind). The endpoint should return status 201 and a JSON body containing the Person object including the newly allocated id field. GET /person This should return all of the stored person objects, including their id fields GET /person/:id This should return a JSON body of the corresponding person object, if found (with a 200 status) or 404 if the person is not found If an error occurs during handling of a request, handle this by returning a failure response in JSON. Use a kotlin data class for Person Use kotlinx-serialisation to convert from Person to JSON and vice versa Use a Vertx Router to route the different requests to different handlers Use a Vertx BodyHandler to simplify dealing with request bodies Use a Vertx FailureHandler to direct errors to a handler

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.