Skip to content

danmoren/sentencesApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Sentences from words via API

This application implements the suggested endpoints for the homework. For the persistence an instance of MongoDB Atlas was used and was configured to be accessed from any machine.

##Usage ###Words endpoint Allows the insertion and query of words, those will be stored in the words collection in DB.

http://localhost:8080/words/

All the endpoints suggested in the task description were implemented.

A word could be created multiple times as long as its category is different. Categories different to NOUN/VERB/ADJECTIVE will not be accepted.

###Sentences endpoint Allows the generation and query of sentences, those will be stored in the sentences collection in DB.

http://localhost:8080/sentences/

A sentence is generated randomly with one from eac category, if there are no words available in the words collection, no sentence will be generated. If a sentence is generated multiple times it will increase its generation value by 1, this value can be consulted in a dedicated endpoint:

http://localhost:8080/sentences/{sentence_id}/generation.

Everytime a sentence is consulted through the API its showCounter property will be increased by 1.

All the endpoints suggested in the task description were implemented.

About

SentencesApp repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages