Skip to content

It would be more restful and more useful to be able to API POST add product with a JSON body #510

Description

What

  • currently to add a product, we have to use query parameters
  • From the wiki (http://en.wiki.openfoodfacts.org/API#Posting_a_new_product)
    • http://world.openfoodfacts.net/cgi/product_jqm2.pl?code=0048151623426&product_name=Maryland%20Choc%20Chip&quantity=230g&nutriment_energy=450&nutriment_energy_unit=kJ&nutrition_data_per=serving&ingredients_text=Fortified%20wheat%20flour%2C%20Chocolate%20chips%20%2825%25%29%2C%20Sugar%2C%20Palm%20oil%2C%20Golden%20syrup%2C%20Whey%20and%20whey%20derivatives%20%28Milk%29%2C%20Raising%20agents%2C%20Salt%2C%20Flavouring&traces=Milk%2C+Soya%2C+Nuts%2C+Wheat
  • It would be more restful and more useful to be able to add product with a JSON body :-)

Part of

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

Metadata

Assignees

No one assigned

    Labels

    APIIssues related to the Open Food Facts API. More specific labels exist & should be used (API WRITE…)API Refactorrefactor

    Projects

    • Status

      To discuss and validate
    • Status

      To be triaged

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions