Skip to content

Commit

Permalink
Merge pull request #4 from chompfoods/SWAGGERHUB
Browse files Browse the repository at this point in the history
Swaggerhub
  • Loading branch information
chompfoods authored Jan 31, 2020
2 parents 15d9272 + 226e01b commit 706c951
Show file tree
Hide file tree
Showing 81 changed files with 753 additions and 2,350 deletions.
10 changes: 5 additions & 5 deletions IO.Swagger.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{B7E6639F-057A-4736-B240-8AED98B1787C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{6F5361F5-6FED-42D3-949B-E24A401A3510}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B7E6639F-057A-4736-B240-8AED98B1787C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B7E6639F-057A-4736-B240-8AED98B1787C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7E6639F-057A-4736-B240-8AED98B1787C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B7E6639F-057A-4736-B240-8AED98B1787C}.Release|Any CPU.Build.0 = Release|Any CPU
{6F5361F5-6FED-42D3-949B-E24A401A3510}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6F5361F5-6FED-42D3-949B-E24A401A3510}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F5361F5-6FED-42D3-949B-E24A401A3510}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F5361F5-6FED-42D3-949B-E24A401A3510}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# IO.Swagger - the C# library for the Chomp Food Database API Documentation

## Important An **[API key](https://chompthis.com/api/)** is required for access to this API. Get yours at **[https://chompthis.com/api](https://chompthis.com/api/)**. ### Getting Started * **[Subscribe](https://chompthis.com/api/#pricing)** to the API. * Scroll down and click the \"**Authorize**\" button. * Enter your API key into the \"**value**\" input, click the \"**Authorize**\" button, then click the \"**Close**\" button. * Scroll down to the section titled \"**default**\" and click on the API endpoint you wish to use. * Click the \"**Try it out**\" button. * Enter the information the endpoint requires. * Click the \"**Execute**\" button. ### Example * Branded food response object: **[View example »](https://raw.githubusercontent.com/chompfoods/examples/master/branded-food-response-object.json)** * Ingredient response object: **[View example »](https://raw.githubusercontent.com/chompfoods/examples/master/ingredient-response-object.json)** ### How Do I Find My API Key? * Your API key was sent to the email address you used to create your subscription. * You will also find your API key in the **[Client Center](https://chompthis.com/api/manage.php)**. * Read **[this article](https://desk.zoho.com/portal/chompthis/kb/articles/how-do-i-find-my-api-key)** for more information. ||| | - -- -- -- | - -- -- -- - | | [Knowledge Base](https://desk.zoho.com/portal/chompthis/kb/chomp) | [Pricing](https://chompthis.com/api/) | | [Attribution](https://chompthis.com/api/docs/attribution.php) | [Cost Calculator](https://chompthis.com/api/cost-calculator.php) | | [Terms & License](https://chompthis.com/api/terms.php) | [Database Search](https://chompthis.com/api/lookup.php) | | [Support](https://chompthis.com/api/ticket-new.php) | [Query Builder](https://chompthis.com/api/build.php) | | [Client Center](https://chompthis.com/api/manage.php) | |
## Important An **[API key](https://chompthis.com/api/)** is required for access to this API. Get yours at **[https://chompthis.com/api](https://chompthis.com/api/)**. ### Getting Started * **[Subscribe](https://chompthis.com/api/#pricing)** to the API. * Scroll down and click the \"**Authorize**\" button. * Enter your API key into the \"**value**\" input, click the \"**Authorize**\" button, then click the \"**Close**\" button. * Scroll down to the section titled \"**default**\" and click on the API endpoint you wish to use. * Click the \"**Try it out**\" button. * Enter the information the endpoint requires. * Click the \"**Execute**\" button. ### Example * Branded food response object: **[View example »](https://raw.githubusercontent.com/chompfoods/examples/master/branded-food-response-object.json)** * Ingredient response object: **[View example »](https://raw.githubusercontent.com/chompfoods/examples/master/ingredient-response-object.json)** * Error response object: **[View example »](https://raw.githubusercontent.com/chompfoods/examples/master/error-response-object.json)** ### How Do I Find My API Key? * Your API key was sent to the email address you used to create your subscription. * You will also find your API key in the **[Client Center](https://chompthis.com/api/manage.php)**. * Read **[this article](https://desk.zoho.com/portal/chompthis/kb/articles/how-do-i-find-my-api-key)** for more information. ### Helpful Links * **Help & Support** * [Knowledge Base »](https://desk.zoho.com/portal/chompthis/kb/chomp) * [Support »](https://chompthis.com/api/ticket-new.php) * [Client Center »](https://chompthis.com/api/manage.php) * **Pricing** * [Subscription Options »](https://chompthis.com/api/) * [Cost Calculator »](https://chompthis.com/api/cost-calculator.php) * **Guidelines** * [Terms & License »](https://chompthis.com/api/terms.php) * [Attribution »](https://chompthis.com/api/docs/attribution.php)

This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

Expand Down Expand Up @@ -100,7 +100,6 @@ All URIs are relative to *https://chompthis.com/api/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**FoodBrandedBarcodePhpGet**](docs/DefaultApi.md#foodbrandedbarcodephpget) | **GET** /food/branded/barcode.php | Get a branded food item using a barcode
*DefaultApi* | [**FoodBrandedIdPhpGet**](docs/DefaultApi.md#foodbrandedidphpget) | **GET** /food/branded/id.php | Get a branded food item using an ID number
*DefaultApi* | [**FoodBrandedNamePhpGet**](docs/DefaultApi.md#foodbrandednamephpget) | **GET** /food/branded/name.php | Get a branded food item by name
*DefaultApi* | [**FoodBrandedSearchPhpGet**](docs/DefaultApi.md#foodbrandedsearchphpget) | **GET** /food/branded/search.php | Get data for branded food items using various search parameters
*DefaultApi* | [**FoodIngredientSearchPhpGet**](docs/DefaultApi.md#foodingredientsearchphpget) | **GET** /food/ingredient/search.php | Get raw/generic food ingredient item(s)
Expand All @@ -109,31 +108,26 @@ Class | Method | HTTP request | Description
## Documentation for Models

- [Model.BrandedFoodObject](docs/BrandedFoodObject.md)
- [Model.BrandedFoodObjectCalorieConversionFactor](docs/BrandedFoodObjectCalorieConversionFactor.md)
- [Model.BrandedFoodObjectComponents](docs/BrandedFoodObjectComponents.md)
- [Model.BrandedFoodObjectCountryDetails](docs/BrandedFoodObjectCountryDetails.md)
- [Model.BrandedFoodObjectDietFlags](docs/BrandedFoodObjectDietFlags.md)
- [Model.BrandedFoodObjectDietLabels](docs/BrandedFoodObjectDietLabels.md)
- [Model.BrandedFoodObjectDietLabelsGlutenFree](docs/BrandedFoodObjectDietLabelsGlutenFree.md)
- [Model.BrandedFoodObjectDietLabelsVegan](docs/BrandedFoodObjectDietLabelsVegan.md)
- [Model.BrandedFoodObjectDietLabelsVegetarian](docs/BrandedFoodObjectDietLabelsVegetarian.md)
- [Model.BrandedFoodObjectIngredients](docs/BrandedFoodObjectIngredients.md)
- [Model.BrandedFoodObjectItems](docs/BrandedFoodObjectItems.md)
- [Model.BrandedFoodObjectNutrients](docs/BrandedFoodObjectNutrients.md)
- [Model.BrandedFoodObjectNutrientsChomp](docs/BrandedFoodObjectNutrientsChomp.md)
- [Model.BrandedFoodObjectNutrientsUsda](docs/BrandedFoodObjectNutrientsUsda.md)
- [Model.BrandedFoodObjectPackage](docs/BrandedFoodObjectPackage.md)
- [Model.BrandedFoodObjectPackagingPhotos](docs/BrandedFoodObjectPackagingPhotos.md)
- [Model.BrandedFoodObjectPackagingPhotosFront](docs/BrandedFoodObjectPackagingPhotosFront.md)
- [Model.BrandedFoodObjectPackagingPhotosIngredients](docs/BrandedFoodObjectPackagingPhotosIngredients.md)
- [Model.BrandedFoodObjectPackagingPhotosNutrition](docs/BrandedFoodObjectPackagingPhotosNutrition.md)
- [Model.BrandedFoodObjectPortions](docs/BrandedFoodObjectPortions.md)
- [Model.BrandedFoodObjectServing](docs/BrandedFoodObjectServing.md)
- [Model.BrandedFoodObjectServingChomp](docs/BrandedFoodObjectServingChomp.md)
- [Model.BrandedFoodObjectServingUsda](docs/BrandedFoodObjectServingUsda.md)
- [Model.IngredientObject](docs/IngredientObject.md)
- [Model.IngredientObjectCalorieConversionFactor](docs/IngredientObjectCalorieConversionFactor.md)
- [Model.IngredientObjectComponents](docs/IngredientObjectComponents.md)
- [Model.IngredientObjectItems](docs/IngredientObjectItems.md)
- [Model.IngredientObjectNutrients](docs/IngredientObjectNutrients.md)
- [Model.IngredientObjectPortions](docs/IngredientObjectPortions.md)

<a name="documentation-for-authorization"></a>
## Documentation for Authorization
Expand Down
10 changes: 0 additions & 10 deletions docs/BrandedFoodObjectIngredients.md

This file was deleted.

10 changes: 2 additions & 8 deletions docs/BrandedFoodObjectItems.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ Name | Type | Description | Notes
**Barcode** | **string** | EAN/UPC barcode | [optional]
**Name** | **string** | Item name as provided by brand owner or as shown on packaging | [optional]
**Brand** | **string** | The brand name that owns this item | [optional]
**Ingredients** | [**BrandedFoodObjectIngredients**](BrandedFoodObjectIngredients.md) | | [optional]
**Ingredients** | **string** | This food item&#x27;s ingredients from greatest quantity to least | [optional]
**Package** | [**BrandedFoodObjectPackage**](BrandedFoodObjectPackage.md) | | [optional]
**Serving** | [**BrandedFoodObjectServing**](BrandedFoodObjectServing.md) | | [optional]
**Categories** | **List&lt;string&gt;** | | [optional]
**Nutrients** | [**BrandedFoodObjectNutrients**](BrandedFoodObjectNutrients.md) | | [optional]
**CalorieConversionFactor** | [**BrandedFoodObjectCalorieConversionFactor**](BrandedFoodObjectCalorieConversionFactor.md) | | [optional]
**ProteinConversionFactor** | [**decimal?**](BigDecimal.md) | The multiplication factor used to calculate protein from nitrogen | [optional]
**Nutrients** | [**List&lt;BrandedFoodObjectNutrients&gt;**](BrandedFoodObjectNutrients.md) | An array containing nutrient informatio objects for this food item | [optional]
**DietLabels** | [**BrandedFoodObjectDietLabels**](BrandedFoodObjectDietLabels.md) | | [optional]
**DietFlags** | [**List&lt;BrandedFoodObjectDietFlags&gt;**](BrandedFoodObjectDietFlags.md) | An array of ingredient objects that were flagged while grading this item for compatibility with each diet | [optional]
**PackagingPhotos** | [**BrandedFoodObjectPackagingPhotos**](BrandedFoodObjectPackagingPhotos.md) | | [optional]
**Components** | [**List&lt;BrandedFoodObjectComponents&gt;**](BrandedFoodObjectComponents.md) | An array of objects containing the constituent parts of a food (e.g. bone is a component of meat) | [optional]
**Portions** | [**List&lt;BrandedFoodObjectPortions&gt;**](BrandedFoodObjectPortions.md) | An array of objects containing information on discrete amounts of a food found in this item | [optional]
**Allergens** | **List&lt;string&gt;** | An array of ingredients in this item that may cause allergic reactions in people | [optional]
**BrandList** | **List&lt;string&gt;** | An array of brands we have associated with this item. Some items are sold by more than 1 brand. | [optional]
**Countries** | **List&lt;string&gt;** | An array of countries where this item is sold | [optional]
Expand All @@ -28,10 +24,8 @@ Name | Type | Description | Notes
**Minerals** | **List&lt;string&gt;** | An array of minerals that this item contains | [optional]
**Traces** | **List&lt;string&gt;** | An array of trace ingredients that may be found in this item | [optional]
**Vitamins** | **List&lt;string&gt;** | An array of vitamins that are found in this item | [optional]
**CommonNames** | **List&lt;string&gt;** | An array containing other names commonly associated with this item. These generally clarify what the item is (e.g. when the brand name is \&quot;BRAND&#x27;s Spicy Enchilada\&quot; a common name may be \&quot;Chicken enchilada\&quot;) | [optional]
**Description** | **string** | A description of this item | [optional]
**Keywords** | **List&lt;string&gt;** | An array of keywords that can be used to describe this item | [optional]
**Footnote** | **string** | Comments on any unusual aspects of this item. Examples might include unusual aspects of the food overall. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

8 changes: 6 additions & 2 deletions docs/BrandedFoodObjectNutrients.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Chomp** | [**List&lt;BrandedFoodObjectNutrientsChomp&gt;**](BrandedFoodObjectNutrientsChomp.md) | An array containing an object for each nutrient data point | [optional]
**Usda** | [**List&lt;BrandedFoodObjectNutrientsUsda&gt;**](BrandedFoodObjectNutrientsUsda.md) | An array containing an object for each nutrient data point as found in the USDA database | [optional]
**Name** | **string** | Nutrient name | [optional]
**Per100g** | [**decimal?**](BigDecimal.md) | Amount of the nutrient per 100g of food | [optional]
**MeasurementUnit** | **string** | The unit used for the measure of this nutrient | [optional]
**Rank** | **int?** | Nutrient rank | [optional]
**DataPoints** | **int?** | Number of observations on which the value is based | [optional]
**Description** | **string** | Description of the nutrient source | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

13 changes: 0 additions & 13 deletions docs/BrandedFoodObjectNutrientsChomp.md

This file was deleted.

19 changes: 0 additions & 19 deletions docs/BrandedFoodObjectNutrientsUsda.md

This file was deleted.

5 changes: 3 additions & 2 deletions docs/BrandedFoodObjectServing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Chomp** | [**BrandedFoodObjectServingChomp**](BrandedFoodObjectServingChomp.md) | | [optional]
**Usda** | [**BrandedFoodObjectServingUsda**](BrandedFoodObjectServingUsda.md) | | [optional]
**Size** | **string** | Serving size | [optional]
**MeasurementUnit** | **string** | Measurement unit for each serving (e.g. if measure is 3 tsp, the unit is tsp) | [optional]
**SizeFulltext** | **string** | Serving size description | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

9 changes: 0 additions & 9 deletions docs/BrandedFoodObjectServingChomp.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/BrandedFoodObjectServingUsda.md

This file was deleted.

Loading

0 comments on commit 706c951

Please sign in to comment.