Skip to content

Backend

Andrea Rodrigues requested to merge backend into master

Checklist

Backend

  • Server
  • JSON Database
  • API

Marker Schema

{
    id: Integer,
    title: String,
    position: {
        latitude: Integer,
        longitude: Integer
    },
    type: String ("Monument" or "Site"),
    note: String
}

API Endpoints - /api/v1

POST /marker/create - creates a marker to the map

REQUEST BODY

{ Marker Schema - ALL PROPS REQUIRED }

RESPONSE - 201

POST /marker/edit - edits existing marker from the map

REQUEST BODY

Minimum of 1 property is required in changes.

{
    id: Integer,
    changes: { 
        Marker Schema - MIN. 1 PROP (id cannot be changed)
    }
}

RESPONSE - 200

DELETE /marker/delete - deletes a marker from the map

REQUEST BODY

{ id: Integer }

RESPONSE - 200
Edited by Andrea Rodrigues

Merge request reports