sp-friendmanagement's Introduction
1. Description - This sample is using SpringBoot. -- Choose SpringBoot because it will build project much faster, just add dependence by maven, no need of creating boilerplate configuration, and the "spring-boot-devtools" improve development efficiency because it make autorestart server on code/config updates - FriendController --> FriendService -->FriendDao(JdbcTemplate) - All Exceptions are handled in GlobalExceptionHandler using ControllerAdvice - Error messages and error code are declared in errors_msg.properties - The API server is deployed on the Google platform http://35.198.250.48. - Create Junit test class for positive case. - Please find db design detail from sp_friend.sql 2. How to run Take retrieveFriends as example http://35.198.250.48/friend-0.0.1-SNAPSHOT/[email protected] 3. Test APIs import SP-Friend.postman_collection.json file into PostMan plugin and test. For connect , subscribe and block API, if passded email does not exist in DB, I will create uesr with this email first, then create relationship, so I don't provide seperated API to create user by email. 4.Issue 1) Based on my understanding, for block API if they are connected as friends, then "andy" will no longer receive notifications from "john" My logic is if "andy" block "john", andy cannot subscribe john anymore.So if try to call subscribe API will see the error message. 2)For 6. As a user, I need an API to retrieve all email addresses that can receive updates from an email address. I don't understand what does this mean "has been @mentioned in the update"? and how to use "text" request parameter in { "sender": "[email protected]", "text": "Hello World! [email protected]" }, So I just ingore this case first, if possible to explain this requirement i will implememt later.
sp-friendmanagement's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.