Skip to content

openforests-git/api-coding-challenge

Repository files navigation

Openforests API Coding Challenge

Clone this repository. It is a fresh Apiato install with 4 entities:

  • users
  • posts
  • categories
  • comments

You can find their migrations in their respective Containers (eg. app/AppSection/Containers/User/Data/Migrations) and also their relations in the dataschema.png file.

Make this project run locally on your machine (Installation). Compile the docs and have a look at the three endpoints documented there:

  • Post -> Create Post
  • Comment -> Create Comment
  • Post -> Get all Comments for specific Post

Create a repository in your GitHub account.

Implement these API endpoints and push your solutions to your repository. Then give @yalsicor access to your repository so your solution can be checked.

Hints for implementation

Create the following classes for each endpoint (generator commands help a lot):

  • Model (with relations)
  • Repository
  • Request
  • Controller
  • Action
  • Task
  • Transformer

Optional Task

  • cover the endpoints with automated tests

Apiato Documentation

Apiato is built using the new architectural pattern Porto.

Find the Apiato documentation here and their repository here.


Apiato Docs


Join apiato's Discord server, by clicking on the icon below.

Apiato Discord

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages