In this assignment your PR must only modify the README.md
file.
Please, go to the Wiki in order to get the instructions for this assignment.
The objective is to extend the query interface to support the command max:n
, where n is a number.
max
sets a limit in the number of retrieved tweets.
That is cool max:10
must return at most 10 tweets.
There are several ways to do it.
You can use the parameter q
or create additional parameters.
There is a restriction.
You must explicitly tell the API Twitter to enforce such a limit.
Read the documentation of the Twitter Search component of Apache Camel to discover how.
You need to apply for a free Twitter developer account.
Do not add application.properties
with the Twitter tokens to your git!
Note: the Twitter Search endpoint is configured using URI syntax twitter-search:{string}[?param=value[¶m=value]*]
Done:
- Use Camel for keeping a copy of responses in a database Raul Javierre has learned how an external database can be integrated in a Camel route quite easily. In additon, his work shows how to use docker-compose for building and running two nodes: the application and the dabase. 🎁
- Use Camel for providing a REST endpoint for queries Alberto Calvo has learned that it is very easy to create http endpoints in Camel but remember: it is a pipeline and you must explicitly tell Camel what to do. 🎁
- Create an operator "-" to filter out tweets that contain a keyword Andrés Otero has fought and won against Apache Camel documentation. 🎁
- Use Camel for providing a WebSocked endpoint for queries Enrique Ruiz has leaned how to setup a WebSocket enpoint with Camel, and (after a review) how to ensure that JSON responses are send back to the client and handled by JavaScript.
- Throttle the route to avoid be banned by Twitter Daniel Huici has leared a lesson complementary to Alberto Rubio's lesson: sometimes in Apache Camel it is very easy to do powerful things. 🎁
In progress:
- Enrich the response with moustache; remove moustache from the client.
Proposed:
- The possibilities of Camel are endless; you can propose your idea for a 🎁.
Manifest your intention first by a PR updating this README.md
with your goal.
If you desist of your goal, release it by a PR so other fellow can try it.