Line 5: |
Line 5: |
| | | |
| <big>First of all, remember to do tests on https://world.openfoodfacts.net - login and password: off. | | <big>First of all, remember to do tests on https://world.openfoodfacts.net - login and password: off. |
| + | |
| + | <big>The new version of the documentation is available here: |
| + | * [https://openfoodfacts.github.io/openfoodfacts-server/reference/api/ API V2 - new OpenAPI documentation] - Work in Progress |
| + | * [https://openfoodfacts.github.io/openfoodfacts-server/reference/api-v3/ API V3 - new OpenAPI documentation] - Work in Progress |
| </big> | | </big> |
| | | |
Line 46: |
Line 50: |
| If you want to avoid coding the detection of password errors, login stuff… you can create a global account for all your users. | | If you want to avoid coding the detection of password errors, login stuff… you can create a global account for all your users. |
| | | |
− | You can create a global account to let the users of your app contribute. please name it YourApp_app or something like that, so that we can spot them easily. Better yet, introduce yourself on Slack :-) | + | You can create a global account to let the users of your app contribute. Please name it YourApp_app or something like that, so that we can spot it easily. Better yet, introduce yourself on Slack :-) |
| | | |
| == Manipulating photos for a product == | | == Manipulating photos for a product == |
Line 134: |
Line 138: |
| * <code>code</code>: the barcode | | * <code>code</code>: the barcode |
| * <code>imagefield</code>: (front | ingredients | nutrition) | | * <code>imagefield</code>: (front | ingredients | nutrition) |
| + | |
| + | Please refer to the more complete: [[API/Write/Photos]] |
| | | |
| ==== Add more pictures without selecting them ==== | | ==== Add more pictures without selecting them ==== |
Line 163: |
Line 169: |
| </pre> | | </pre> |
| | | |
− | This '''add''' a new value but '''doesn't delete the previous ones'''. Adding values doesn't need authentication but take it into account. Examples: | + | This '''adds''' a new value but '''doesn't delete the previous ones'''. Adding values doesn't need authentication but take it into account. Examples: |
| | | |
| * <code><nowiki>https://world.openfoodfacts.net/cgi/product_jqm2.pl?code=0048151621226&add_brands=Brand%202</nowiki></code> | | * <code><nowiki>https://world.openfoodfacts.net/cgi/product_jqm2.pl?code=0048151621226&add_brands=Brand%202</nowiki></code> |
Line 438: |
Line 444: |
| | | |
| 12% wine | | 12% wine |
− | <pre>nutriment_unit=%25%20vol&nutriment_alcohol=12</pre> | + | <pre>nutriment_alcohol_unit=%25%20vol&nutriment_alcohol=12</pre> |
| | | |
| ==== Adding the carbon footprint ==== | | ==== Adding the carbon footprint ==== |