GithubHelp home page GithubHelp logo

avs123a / play-question-service Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.02 MB

Simple question REST service using play framework

License: Other

Java 88.43% HTML 2.86% Scala 8.28% JavaScript 0.44%
java java8 play-framework sbt postgresql hibernate rest-api

play-question-service's Introduction

Simple Rest service using play framework

Note !!! This project need to be fixed!!!

DEMO API: https://java-play-question-service.herokuapp.com/

Texhnologies:

Java 8;

Play framework 2.5;

SBT assembly;

Hibernate;

PostgreSQL database

Requirements:

Java 8;

SBT;

PostgreSQL (version 10 is prefer)

Installation:
1.) Clone this repository or download and extract source 

2.) Open with IDE that support SBT (for example, Intellij IDEA, Eclipse) 

3.) in file \conf\application.conf change database database url, username and password; 

4.) Run command:  sbt run and input url in your browser: localhost:9000.

NOTE!!! IF YOU WANT TO USE SPA(Single Page Application) client like Angular or React, enable CORS

HTTP REQUESTS:

Fields:

GET: domain_name/field/list - get all fields

GET: domain_name/field/active-list - get all active fields (status: is Active)

POST: domain_name/field/add - create field

GET: domain_name/field/view/:id - get field details by field ID

PUT: domain_name/field/update/:id - update field with this ID

DELETE: domain_name/field/delete/:id - delete field by field ID

Users:

GET: domain_name/user/list - get all users

POST: domain_name/user/add - registration (adding user)

POST: domain_name/user/auth - find user by email and password for authentication

GET: domain_name/user/view/:id - get user information by user ID

PUT: domain_name/user/update/:id - update user (resave user) with this ID

DELETE: domain_name/user/delete/:id - delete user by user ID

Responses(Answers)

GET: domain_name/response/list - get all responses

POST: domain_name/response/add - create response

GET: domain_name/response/view/:id - get response details by response ID

GET: domain_name/response/user-list/:user-id - get response details by User ID

PUT: domain_name/response/update/:id - update response with this ID

DELETE: domain_name/response/delete/:id - delete response by response ID

play-question-service's People

Contributors

avs123a avatar

Watchers

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.