Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.47 KB

README.md

File metadata and controls

61 lines (42 loc) · 1.47 KB

Stackoverflow Questions API

Prerequisites

  • PHP 7.4
  • Symfony 5.3.*
  • Docker + Docker Compose

Install

Clone

$ git clone https://github.com/epuig83/stackoverflow-questions.git
$ cd stackoverflow-questions

Build up all containers

$ docker-compose build
$ docker-compose up -d

Composer dependencies

$ docker-compose exec webserver composer install --no-interaction

Access to bash webserver container

$ docker exec -it webserver bash

Testing

Run tests

$ docker-compose exec webserver php ./vendor/bin/phpunit

Questions Endpoint

http://localhost:8080/api/stackoverflow/questions/{tagged}
Name Required Type Description
tagged required string The question tag
fromdate optional string The date format is accepted: YYYY-MM-DD HH:MM:SS, where the hour, minute, and second values are optional.
todate optional string The date format is accepted: YYYY-MM-DD HH:MM:SS, where the hour, minute, and second values are optional.