Categorygithub.com/Jhon-2801/sismos-api
repository
0.0.0-20240415021940-cf991df860f6
Repository: https://github.com/jhon-2801/sismos-api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Sismos-api

The project designed for educational purposes to learn development technologies and practices. The application is packaged with Docker for easy deployment.

Tech Stack

Server:

  • Lenguage: Golang
  • ORM: Gorm
  • Framework: Gin
  • Database: MySQL
  • Containerization: Docker

API Reference

Get all Feature

  GET /api/features
ParameterTypeDescription
mag_type[]string["ml", "md"]
per_pagestring10
pagestring1

Get Feature

  GET /api/${id_feature}/feature

UpDate Feature

  PUT /api/${id_feature}/feature
BodyTypeValue
event_idstringRequired. nc74032466
magnitudeintRequired 1
placestringRequired. 1 km N of The Geysers, CA
timestringRequired. 2024-04-10T22:59:40Z
tsunamiboolRequired. false
mag_typestringRequired. md
external_urlstringRequired. https://earthquake.usgs.gov/earthquakes/eventpage/nc74032466
titlestringRequired. M 0.8 - 0 km N of The Geysers, CA
longitudeintRequired. -123
latitudeintRequired. 39

Get Comment

  GET /api/${id_feature}/comments

Create taskComments

  POST /api/${id_feature}/comment
BodyTypeDescription
bodystringRequired. comment