Giter VIP home page Giter VIP logo

surveyor_app's Introduction

Test Routes

Ping

http://localhost:8080/api/ping

Endpoints

Coordinates

Find all: Get http://localhost:8080/api/v1/coordinates

Find one: Get http://localhost:8080/api/v1/coordinates/{id}

Create: Post http://localhost:8080/api/v1/coordinates/add

Request structure

{
    "mt": 116,
    "axis": "178 оси",
    "horizon": "1350 метр",
    "x": 25960.772,
    "y": 35375.685
}

Update: Put http://localhost:8080/api/v1/coordinates/update

{
    "id": 11,
    "mt": 116,
    "axis": "178 оси",
    "horizon": "1350 метр",
    "x": 25960.772,
    "y": 35375.685
}

Delete: Delete http://localhost:8080/api/v1/coordinates/{id}

Invert: Get http://localhost:8080/api/v1/coordinates/{firstId}/{secondId}

Users

Create user: POST http://localhost:8080/api/v1/user

Request structure:

{
    "name":"name",
    "email":"[email protected]",
    "password":"password",
    "role_id": 1
}

Return structure:

{
  "id": 1,
  "name": "name",
  "email": "[email protected]",
  "role_id": 1,
  "created_date": "2022-08-16T11:07:53.080809Z",
  "updated_date": "0001-01-01T00:00:00Z",
  "deleted_date": "0001-01-01T00:00:00Z"
}

Update user: PUT http://localhost:8080/api/v1/user/{id}

Request structure:

{
    "name":"name",
    "email":"[email protected]",
    "role_id": 1
}

Return structure:

{
    "id": 11,
    "name": "name",
    "email": "[email protected]",
    "role_id": 1,
    "created_date": "2022-08-16T11:10:58.346794Z",
    "updated_date": "2022-08-16T11:12:19.458738Z",
    "deleted_date": "0001-01-01T00:00:00Z"
}

Pageinate users: GET http://localhost:8080/api/v1/user/?page=1&pageSize=20&showDeleted=0

Get one user: GET http://localhost:8080/api/v1/user/{id}?showDeleted=0

Delete user: DELETE http://localhost:8080/api/v1/user/{id}

LogIn user: POST http://localhost:8080/api/v1/user/login

Request structure:

{
    "email":"[email protected]",
    "password":"pwd"
}

Return structure:

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3JvbGUiOjEsInRva2VuX2lkIjoyLCJleHAiOjE2NjA2NTE2MTB9.Qzwx6nZRfmiQSDUL9_MvGprCTFPYw9VKZbT17gAgXLg"
}

LogOut user: POST http://localhost:8080/api/v1/user/logout

Check user authorization: GET http://localhost:8080/api/v1/user/checkauth

# startUp

Створити додаток для обчислення зворотньої геодезичної задачі ✅

_ обчислення примикання методом зєднувального трикутника

_ обчислення площ складу діленням на прості фігури

_ обчислення нівелірних та теодолітних ходів з записом точок координат горизонтів і осей в БД

surveyor_app's People

Contributors

bogdanstaziyev avatar

Watchers

Serhii Svystunov avatar  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.