Skip to content

The review registers provides an API for reviews conform https://schema.org/Review and business logic for the calculation of review scores. It is aimed at providing reviews for the google/bing store and product review mechanism.

Notifications You must be signed in to change notification settings

Huwelijksplanner/ReviewRegister

Repository files navigation

Revieuw Register

Automated Testing

The review registers provides an API for reviews conform https://schema.org/Review and business logic for the calculation of review scores. It is aimed at providing reviews for the google/bing store and product review mechanism.

Running the API locally

You need Docker desktop if you want to use this API locally on the gateway. Once you have installed docker you need to go to the root of the project with a command line.

Then you can run the image with:

docker compose up

If the php container shows "Ready to handle connections" the gateway is ready. The API runs on port :80 and the endpoints of this API fall under /api

Running the API online

To run the API on a online gateway the helm secret PUBLICCODE must be set with the url to the raw publiccode.yaml, like: https://github.com/Huwelijksplanner/ReviewRegister/main/publiccode.yaml

If its properly set you can run the following command in a PHP pod:

bin/console app:load-publiccodes

The console should show if the API has been loaded successfully, and then you can make API requests to yourdomain/api.

(Unit) Testing the API

On every commit github launches a action that generates a postman collection and tests the API. Its results can be viewed under Actions on the github page.

Make sure that in your OAS definition there is a localhost server defined like:

servers:
 - url: localhost/api

About

The review registers provides an API for reviews conform https://schema.org/Review and business logic for the calculation of review scores. It is aimed at providing reviews for the google/bing store and product review mechanism.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages