GithubHelp home page GithubHelp logo

avs123a / demoapp1 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 61 KB

Java rest question service example

Java 100.00%
java java-8 spring springboot spring-data-jpa rest-api example postgresql maven

demoapp1's Introduction

demoapp1

Java REST question service example

DEMO API: https://question-java-spring.herokuapp.com/ + API URL

Texhnologies:

  • Java 8;

  • Spring (Boot, Web, Data JPA(Hibernate), Security);

  • Maven assembly;

  • PostgreSQL database

    Requirements:

  • Java 8;

  • Maven ~3;

  • PostgreSQL (version 10 is prefer)

    Installation: 1.) Clone this repository or download and extract source 2.) Open with IDE that support Maven (for example, Intellij IDEA, Eclipse) or run command: mvn install 3.) in file \src\main\resources\application.properties change database username and password; 4.) Run projects.

NOTE!!! IF YOU WANT TO USE SPA(Single Page Application) client like Angular or React, in controller files uncomment annotation @CrossOrigin and change frontend link in this annotation for example, for local angular app: @CrossOrigin(origins = "http://localhost:4200")

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 - update field

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 - update user (resave user)

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 - update response

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

demoapp1'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.