Skip to content

Instantly share code, notes, and snippets.

@fdiasr
Last active August 2, 2016 22:57
Show Gist options
  • Select an option

  • Save fdiasr/ff463e5ddb21ea300b5e01299b7dac00 to your computer and use it in GitHub Desktop.

Select an option

Save fdiasr/ff463e5ddb21ea300b5e01299b7dac00 to your computer and use it in GitHub Desktop.
PHP DevTest

PHP Project DevTest

Create a RESTful API Using HTTP Verbs for a /user Endpoint

The purpose of this project is the creation of an API (using the REST architecture) for the management of user information.

The attributes of the user are up to the developer to define.

The choice of database is up to you, the developer, but data must be persistent.

Project Details:

Requirements:

The points below are requirements for the completion of the project:

  • You must implement GET and POST requests.

  • You must implement Unit Tests for at least one method.

We Recommend:

  • The additional use of PUT and DELETE requests.

  • Use of third-party libraries and/or frameworks to speed up development, within the scope of the project.

  • Improving coverage of your Unit Tests.

  • Integration: Along with the attributes that you define, your GET request must return a field 'validate' with a boolean value. To obtain this value, make a request to our external API: http://private-d65c6-phpdevtest.apiary-mock.com/user/$userId/isvalid - Available test user Ids: 123, 321.

Bonus:

If you've completed the requirements above with time to spare, and have experience with any of the topics below, we'd like to see you:

  • Configure an NGINX server for the project.

  • Use container(s) for the project's infrastructure (Docker).

  • Provide Unit Test Coverage Reports.

  • Integrate the principles of behavior-driven development (BDD), ideally using the Behat framework.

  • Provide documentation for your project (README.md).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment