Skip to content

Restaurant Api Powered By Vortex-io, SpringBoot, Kotlin, Firebase

License

Notifications You must be signed in to change notification settings

Yazan98/Destiny-Api

Repository files navigation

New Project (7)

Destiny Api

Project Overview=

This Api is For Restaurant Application With The Following Apis and the Frontend of this Api here Link this application is just for Test Vortex-io Vortex Link

  1. Auth Api (Register, Login, UpdatePassword, GetUserById)
  2. Recipes Api (getRecipeByID, GetCommentsByRecipeId, Create Comment, RecipesByCategoryId)
  3. Notifications (Offers Topic) With Firebase
  4. Categories Api (GetAll, GetCategoryById, Create Category)
  5. Cities Api
  6. Offers Api
  7. Places Api
  8. User Places Api

Spring Boot Configuraiton

  1. Jwt Tokens
  2. Spring Security
  3. Firebase Configuration
  4. Firebase User Register With Realtime Database
  5. Token Filter
  6. Firebase Notifications
  7. Error Handler For Any Exception

Application Deployment

  1. Heroku Base Url : https://destiny98.herokuapp.com/v1/**
  2. Docker Image : https://hub.docker.com/repository/docker/yt98/destiny_api/general

Postman Collection

Link

Success Response

{
    "code": 201,
    "message": "Account Created",
    "status": "Success",
    "data": {
        "token": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ5YXphbiIsIm5hbWUiOiJ5YXphbiIsImlkIjo0MiwiZXhwIjoxNTgwMTUzMzk1LCJpYXQiOjE1ODAxMzUzOTUsInN0YXR1cyI6Ik5PVF9BQ1RJVkFURUQifQ.CqYZcVhotMgOqSFDFDPCLU8YmQ82A2cLMzXN1BxJyIA",
        "user": {
            "id": 42,
            "username": "yazan",
            "email": "[email protected]",
            "phoneNumber": "123456789",
            "image": "image url",
            "enabled": false,
            "accountStatus": "NOT_ACTIVATED",
            "location": {
                "latitude": 0.0,
                "longitude": 0.0,
                "name": "Amman"
            }
        }
    }
}

Error Response

{
    "code": 400,
    "message": "User Username Required",
    "status": "Failed",
    "error": {
        "type": "Invalid Or Missing Value",
        "details": {
            "name": "Username",
            "reason": "Attribute Missing"
        },
        "stacktrace": [...]
    }
}

Developers

(Yazan Tarifi) - Author -> [email protected]

License

Copyright (C) 2019 Destiny Android Application is An Open Source Library (Licensed under the Apache License, Version 2.0)