Giter Club home page Giter Club logo

softtek-noticias's Introduction

Softtek exercise

Frontend

The frontend presents a list of articles from an external provider, it is capable of search and paginate results, format the article's date.

Also, the front has the option to save an article as favorite, using for that the following Backend.

URL field.

The exercise asks for a "description" field, but the News API do not offers such value. Instead, the application offers the URL to the original article as alternative.

Backend

The exercise

The exercise consist in implementing a Springboot backend in Java 11 for the news platform.

The solution

The solution is presented as follows:

  • A RESTFUL API supporting the CRUD operations (crete, read, update, delete).
  • H2 in memory database.
  • Tests on the service and controller layers.
  • Handler exceptions presenting the correspondent HTTP status.

Endpoints

Get the article list

curl -L 'http://localhost:8080/api/v1/articles'

Create a new article

curl -L 'http://localhost:8080/api/v1/articles' \
-H 'Content-Type: application/json' \
-d '{
"title" : "Article title",
"summary" : "The summary",
"publishedAt" : "2023-10-10",
"url" : "http://www.google.com/"
}'

Get an specific article (whit ARTICLE_UUID)

curl -L 'http://localhost:8080/api/v1/articles/<ARTICLE_UUID>'

Update an article

curl -L -X PUT 'http://localhost:8080/api/v1/articles/<ARTICLE_UUID>' \
-H 'Content-Type: application/json' \
-d '{
"title" : "New title",
"summary" : "another summary",
"url": "http://www.google.com/",
"publishedAt": "2023-10-10"
}'

Delete

curl -L -X DELETE 'http://localhost:8080/api/v1/articles/<ARTICLE_UUID>'

softtek-noticias's People

Watchers

Cristian Llanos 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.