Skip to content
Snippets Groups Projects
Commit 0fb8f6fd authored by damjan's avatar damjan
Browse files

[TASK] Readme update after table split

parent 3a0dc64c
No related branches found
No related tags found
No related merge requests found
......@@ -96,21 +96,26 @@ Execute mySql INSERT command. Example of adding new category named "Functions":
#### See list of all REST API routs
php app/console route:debug | grep api
php app/console debug:router | grep api
This should print something like this:
api_get_attribute GET ANY ANY /api/attributes/{id}.{_format}
api_get_type GET ANY ANY /api/types/{urlName}.{_format}
api_get_attribute_children GET ANY ANY /api/attributes/{id}/children.{_format}
api_get_attribute_properties GET ANY ANY /api/attributes/{id}/properties.{_format}
api_get_attributes GET ANY ANY /api/attributes.{_format}
api_post_attribute POST ANY ANY /api/attributes.{_format}
api_put_attribute PUT ANY ANY /api/attributes/{id}.{_format}
api_delete_attribute DELETE ANY ANY /api/attributes/{id}.{_format}
api_patch_attribute PATCH ANY ANY /api/attributes/{id}.{_format}
api_get_tsref GET ANY ANY /api/tsref.{_format}
api_get_categories GET ANY ANY /api/categories.{_format}
api_get_type GET ANY ANY /api/types/{id}.{_format}
api_get_type_byurlname GET ANY ANY /api/types/{urlName}/byurlname.{_format}
api_get_types GET ANY ANY /api/types.{_format}
api_post_type POST ANY ANY /api/types.{_format}
api_put_type PUT ANY ANY /api/types/{id}.{_format}
api_delete_type DELETE ANY ANY /api/types/{id}.{_format}
api_patch_type PATCH ANY ANY /api/types/{id}.{_format}
api_get_property GET ANY ANY /api/properties/{id}.{_format}
api_get_properties_byparenttype GET ANY ANY /api/properties/{id}/byparenttype.{_format}
api_get_properties GET ANY ANY /api/properties.{_format}
api_post_property POST ANY ANY /api/properties.{_format}
api_put_property PUT ANY ANY /api/properties/{id}.{_format}
api_delete_property DELETE ANY ANY /api/properties/{id}.{_format}
api_patch_property PATCH ANY ANY /api/properties/{id}.{_format}
api_get_tsref GET ANY ANY /api/tsref.{_format}
api_get_categories GET ANY ANY /api/categories.{_format}
#### Test with Postman
......@@ -121,11 +126,11 @@ For testing with Postman, you need to have a server running:
Example of full REST API address on localhost:
http://127.0.0.1:8000/api/attributes/1
http://127.0.0.1:8000/api/types/1
For post/put/patch methods use data examples from AttributeControllerTest. Example:
{"name":"testName","description":"Testing POST.","minVersion":"6.0","typo3Group":2,"isType":false,"deleted":false}
{"name":"testName","description":"Testing POST.","minVersion":"6.0","typo3Group":2,"deleted":false}
#### Run phpUnit tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment