Giter Site home page Giter Site logo

restservices's Introduction

RestServices

Collection of services exposed through a REST API

Prerequisites

JDK8+ and Maven 3.5+

How to install/run

Very simple, Just follow the steps below and you will have a set of REST Api's up and running!!!

Clone the project

git clone https://github.com/nu1silva/RestServices.git

Go into the RestServices directory and just hit

mvn clean jetty:run

Services Available

User Management Service

A basic CRUD operation supported API for a user management service.

WARNING: The database is an in-memmory store and may fillup the memmory if misused.

[OPTIONS] Available options: "curl -v -X OPTIONS http://localhost:8080/RESTservice/rest/user"
[POST] Create a user: "http://localhost:8080/RESTservice/rest/user/add"
[GET] Search for user: "http://localhost:8080/RESTservice/rest/user/search/{user_id}"
[PUT] Update a user: "http://localhost:8080/RESTservice/rest/user/update"
[DELETE] Delete a user: "http://localhost:8080/RESTservice/rest/user/delete/{user_id}"

HTTP Status Service

HTTP response code verification service. Based on the input value it will reply with the status code.

eg:

http://localhost:8080/RESTservice/rest/status/{status_code}

http://localhost:8080/RESTservice/rest/status/200 
http://localhost:8080/RESTservice/rest/status/201 
http://localhost:8080/RESTservice/rest/status/500 

Delayed Response Service

A service which will delay the response as per the given value in milliseconds.

eg:

http://localhost:8080/RESTservice/rest/delay/{delay time in miliseconds}

http://localhost:8080/RESTservice/rest/delay/1000 
http://localhost:8080/RESTservice/rest/delay/2000 
http://localhost:8080/RESTservice/rest/delay/4522 

Random Password Generation Service

Random password generation service. Ideal for getting different responses for each request

http://localhost:8080/RESTservice/rest/password/generate 

Echo Service

An Echo service that will echo the payload that is sent to the endpoint

eg:

curl -v -X POST -d '{"message":"Hello World"}' http://localhost:8080/MessageReceiver/echo/message

restservices's People

Contributors

nu1silva avatar dependabot[bot] avatar

Watchers

 avatar James Cloos 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.