Git Product home page Git Product logo

journey-api's Introduction

  • 👋 Hi, I’m @nramc

  • 👀 I’m interested in Full Stack Web Application Development

  • 🌱 I’m currently learning ReactJS

  • 💞️ I’m looking to collaborate on Full Stack Programming & Development activities.

  • 📫 Yu can reach me on

    Email

    Twitter

    LinkedIn

    Facebook

journey-api's People

Contributors

nramc avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

journey-api's Issues

[Feat] Implement get all journeys with basic query params

AC 1: content type - application/json
AC 2: returns all available journeys
AC 3: Support pagination
AC 4: Support sorting

Basic support for query param:

  • "sort" - sorting column name
  • "order" - ASC or DESC
  • "pageIndex" - starts from 0
  • "pageSize" - maximum number of journeys to return in response

[Feat] Implement Authorisation based on new field 'visibilities'

New field 'visibilities' added to journey.
Implement authorisation based on the field as follows,

AC 1: If LoggedIn user is ADMIN, then all journeys
AC 2: If LoggedIn user is GUEST, then only journeys which contains GUEST role
AC 3: If LoggedIn user is USER, then all journeys contains any(GUEST, AUTHENTICATED_USER) and and journeys created by themself if any
AC 4: If LoggedIn user is MAINTAINER, then all journeys contains any(GUEST, AUTHENTICATED_USER, MAINTAINER) and journeys created by themself

[Feat][UX] Coordinates validation and tip to get them for place

Get the coordinates of a place

  1. On your computer, open Google Maps.
  2. Right-click the place or area on the map.
  3. This will open a pop-up window. You can find your latitude and longitude in decimal format at the top.
  4. To copy the coordinates automatically, left click on the latitude and longitude.

Tips:

  1. List your latitude coordinates before longitude coordinates.
  2. Check that the first number in your latitude coordinate is between -90 and 90.
  3. Check that the first number in your longitude coordinate is between -180 and 180.

[Bug] Unable read jwt keys - deployment failed

ailed to bind properties under 'jwt.public-key' to java.security.interfaces.RSAPublicKey:
Property: jwt.public-key
Value: "/etc/secrets/jwt-public.pub"
Origin: class path resource [application.yml] from journey-api.jar - 19:15
Reason: failed to convert java.lang.String to @jakarta.validation.constraints.NotNull java.security.interfaces.RSAPublicKey (caused by java.io.FileNotFoundException: class path resource [etc/secrets/jwt-public.pub] cannot be opened because it does not exist)

[Feat] Implement update feature for Journey

AC 1: Implement update feature http method PATCH
AC 2: Reusable to update partial data
AC 3: Define data types can be updated independently
AC 4: validation implemented
Ac 5: stored in DB

[Feature] Create Data model for Journey object

  1. Define data model for core Journey object
  2. Define suitable geometric class for location
  3. find below minimum data fields required for now.

"id": "id_1", "type": "Feature", "geometry": {"type": "Point", "coordinates": [11.6634, 48.1230]}, "properties": { "name": "München House", "category": "Residential", "city": "Munich", "country": "Germany", "tags": ["Ram", "Sakunthala", "Germany", "Munich"], "description": "Remember that happiness is a way of travel, not a destination.", "thumbnail": "/assets/test-data/img/2022_1.png"

[Feat] Create new field "visibility" for journey

AC 1: implement new field "visibility" for journey
AC 2: the new field editable while publishing journey
AC 3: the new field can have value as follows,

  1. Myself (by default checked and disabled)
  2. Administrator (by default checked and disabled)
  3. Maintainer
  4. Authenticated User
  5. Guest

AC 4: Update journey authorization mechanism based on the new visibility field

add render deploy webhook

  1. Deploy webhook url has confidential key. so keep it secured.
  2. Update GitHub action to trigger the webhook after successful build for tag

[Feat] Implement get journey endpoint

AC 1: Implement rest endpoint to get journey data with id
AC 2: in json format if accept type application/json
AC 3: throw error if id not exists
AC 4: connect to db and fetch data

[Feat] store new Journey entry

  1. define Journey entity based on json attached
  2. Define REST endpoint to store journey with Request and response DTO
  3. Define entity
  4. Store the entity in Database

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.