Social Meal - social application - Add another user rating

in #utopian-io3 years ago (edited)

Hello, today I want to show you my next feature in my Social Meal API. I had added possibility to rate another user. I also fixed some bug in event resource

New Features

  • In this contribution I want to show You new feature, it is rating another users. Rating is very important feature in this application, because person who is organising event see who want to join to this event. The organiser will check rating this person, if everything is ok, he will accept this person, if the user has bad rating it is mean, that this user is no a good candidate for participate in this event. The rating will be displaying as stars, maximum 5 stars and minimum 0 star.
  • One user can rate another user only once, but he can change rate. User can not rate yourself.
  • What is more I changed connected with rating user profile, change displaying rating in user profile, I changed BasicUserResource, whitch is responsible for returning basic user data.
  • I made also separate model for address for events.


The implementation contains:

  • added new domain class for address, add this address to event, add fluent API

  • added address resources and mapping with address domain model

  • added rating domain model with functions, fluent API and change migrations

  • added rating resource and mapping with rating domain model

  • added rating controller, service and error codes for invalid rating

  • unit test for rating service

  • screen with commits from github:


Github project link: SocialMeal
Github my profile: Arkaady/piach

Links for commits for this features:

I will keep you informed about changes. If someone want to help me, just write to me.

Posted on - Rewarding Open Source Contributors


Thank you for the contribution. It has been approved.

I could not test your swagger setup, is the host temporarily up from time to time?

You can contact us on Discord.

Thank you for aproved. No, everything is ok, You have to add authorization header with Token, because if you just write address/me/events you will get 401 response. I recomend you to use Postman. I think that good idea will be write tutorial how to test it, i will try to add it with next changes.

So I would also need a test user?

Today I cleaned all database, but if you want, you can create your own user and make request from this user. Now I'm making some data to seed, then there will be more data to tests.

Hy piach please vote me and resteem. My post 😊

Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Hey @piach I am @utopian-io. I have just upvoted you!


  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!


Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord

Congratulations @piach! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Coin Marketplace

STEEM 0.16
TRX 0.03
JST 0.026
BTC 12939.00
ETH 410.94
USDT 1.00
SBD 1.00