8000 GitHub - scatt89/sentences
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

scatt89/sentences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentences api

This api provides funny sentences for "La tortuga sabia" web app. Currently is deployed in a Heroku dyno called sentences01.

Uses technologies like Java 8, Spring MVC, Spring Boot, Spring JPA, Postgresql.

Get random sentence

method: GET link: https://sentences01.herokuapp.com/sentences/random response example:

{
  "id": 3,
  "author": "Maria Josefa",
  "adviceVO": "Antes todo esto era campo, hijo... Menudos porrillos liábamos."
}

Get sentence by id

method: GET link: https://sentences01.herokuapp.com/sentences/id={id} response example:

{"id":2,"author":"La loca de los gatos","adviceVO":"AHHHHHHHHHHHHHHHHHHHH!"}

Add new sentence

method: POST link: http://localhost:8081/sentences/insert headers:

{"Content-Type": "application/json"}

body:

{
	"sentence":"AHHHHHHHHHHHHHHHHHHHH!"
	"userName":"La loca de los gatos",
}

response example:

{
  "id": 5,
  "sentence": "AHHHHHHHHHHHHHHHHHHHH!",
  "author": {
    "userName": "wise_turtle",
    "name": "La loca de los gatos"
  }
}

Delete sentence by Id

method: GET link: http://sentences01.herokuapp.com/sentences/delete/id={id} headers:

{"Content-Type": "application/json"}

response example:

200 Ok

Run in local

  • Look up the ci/README.md file

ToDo

  • finish and beautify kotlinization
  • Ci with jenkins
  • Create pro environment and deploy in AWS
  • Refactor some controller endpoints using the right verbs
  • Tests plz
  • Migrate to Gradle?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0