7. May 2020, 13:19
World is not ideal, so is software engineering. In some situations, you won’t be able or don’t want to test a 3rd party API rest service with the real endpoints. In such situations, there is a combination of tools, specifications and frameworks that can massively help us:
- https://www.testcontainers.org/, is a Java library able to run anything that can be run in a Docker container
- https://www.openapis.org/, a broadly adopted industry standard for describing modern APIs
- https://stoplight.io/open-source/prism/, a tool able to mock a REST API using its OpenApi documentation
- http://spockframework.org, a testing and specification framework for Java and Groovy applications
Continue reading »
22. March 2020, 05:58
This article explains how to use Bitbucket pipelines to deploy new versions of a fat jar into a Digital Ocean droplet. This is the way I currently deploy new versions of my Alexa skill Score Board. To follow this article you need to have a brief understanding of what Bitbucket Pipelines is and some skills managing Linux systems.
Continue reading »
11. March 2020, 09:39
Hace un tiempo que tengo pendiente un post acerca de una skill para Alexa que te permite llevar el marcador en diferentes deportes tales como pádel, tenis, fútbol, ping pong, etc. No me compliqué mucho con el nombre de la Skill y la llamé Marcador Deportivo.
Continue reading »
30. January 2018, 16:05
Nowadays, almost everybody is used to work with some SQL queries in a daily basis, but what happens when the data store changes to Elasticsearch? You can find here some useful tips (I hope they are) to ease the transition.
Continue reading »
20. April 2017, 15:58
It has already been a while since we came back from the Saharaui refugee camps at Smara where we were to take part in the 17th edition of the Sahara Marathon for the 5kms race. Of course, and to be honest, the most important thing for us, we could visit Omar and his family. Omar is a saharaui boy we hosted all the summers from 2011 to 2014 with the program Vacaciones en Paz (Holidays in Peace), although in his last 2 years (2015 y 2016) we couldn’t host because we were already living in UK.
Continue reading »
5. March 2017, 16:23
Hace ya unas semanas que volvimos de los campamentos de refugiados saharauis en Smara donde formamos parte de la expedición que viajamos allí para participar en la 17 edición del Maratón del Sahara en la carrera de 5 kms. Además, y sinceramente para nosotros más importante incluso, pudimos visitar a Omar y su familia. Omar es un niño saharaui que acogimos todos los veranos desde 2011 hasta 2014 por medio del programa Vacaciones en Paz, pero que en sus 2 últimos años (2015 y 2016) no pudimos acoger al estar residiendo en Reino Unido.
Continue reading »
16. December 2016, 10:19
As Instagram API states in its docs, You can secure your API calls and mitigate impersonation attempts by making server-side calls and passing a per-request signature using your Client Secret, but how to do that in Java/Groovy?
Continue reading »
10. October 2016, 12:35
If you ever need to test your REST API endpoints, I would recommend you to use Groovy and Spock. You can find here an easy example using a pet project I created long time ago with AngularJS and Grails.
Continue reading »
17. August 2016, 06:39
2016 has been the year of bots and you can find them everywhere. Even Facebook launched its own bot by the beginning of the year. From my experience working with it, Facebook API is not the best documented API you can find on the internet. That’s the reason I have decided to create my own article to help other developers.
The documentation I am trying to improve can be found at https://developers.facebook.com/docs/messenger-platform/quickstart
Continue reading »