Git Product home page Git Product logo

app-service-api-dotnet-todo-list's Introduction

services platforms author
app-service\api
dotnet
bradygaster

To Do List Azure API App Sample

This is a simple example that demonstrates how to build and consume API apps in Azure App Service. This example application uses a Web API middle tier API app, a Web API data tier API app, and an AngularJS client web app front end.

This sample is used in the getting-started series of tutorials for API apps. These tutorials show how to use API metadata, how to configure CORS, how to configure user authentication, and how to handle internal access using an Azure Active Directory service account.

To deploy the application to your Azure subscription without following the tutorial, use the Deploy to Azure button.

Deploy to Azure

app-service-api-dotnet-todo-list's People

Contributors

acomsmpbot avatar bradygaster avatar buck0228 avatar tdykstra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-service-api-dotnet-todo-list's Issues

Unable to use Add REST API client

After reading this page, when trying to use this option to Xamarin portable app client (from a swagger json file), I get the following message:

Generating client code and adding to project started
Generate client code for REST API with following parameters:
REST API Name: MyProject API info, Base namespace: MyProject.App, Metadata file path: C:\Users\weitz\OneDrive\Documents\Visual Studio 2015\Projects\MyProject\src\MyProject\swagger.json
Exception: Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
Generating client code and adding to project failed
Adding REST API client for failed

Steps to reproduce:

  • Create VS 2015 ASP.NET Core API app and add swagger with its UI and configure it
  • Run the app and save the swagger.json file (link appears on the header)
  • Add a portable Xamarin or Prism project
  • Add Newtonsoft.Json package via nuget
  • Right click the client project -> Add -> REST API client
  • Choose Select an existing Swagger metadata file and browse to the saved file
  • The following error shows up (text copied above):

url key change required debugging

Hello,

Thank you for the tutorial. As I was going through the tutorial I was naming my resources differently because I plan to build on top of this. I'm probably not the only one doing that. For the most part, there was enough coverage in the tutorial for me to do this without breaking anything. However, there was just one point where I broke it and that was by renaming the url key (#3 under "Configure the middle tier to call the data tier").

The behaviour I was getting was that I was getting 500 response codes after trying to call the api.

The fix was that I updated the string on line 42 to the correct key.

Cheers!
Ethan

CORS setting does not work?

I've been attempting to implement CORS configuration via arm templates.

I have used this template as a guide, specifically this section.

{
          "apiVersion": "2015-04-01",
          "name": "web",
          "type": "config",
          "dependsOn": [
            "[resourceId('Microsoft.Web/Sites', variables('apiSiteName'))]"
          ],
          "properties": {
            "cors": {
              "allowedOrigins": [
                "[concat('https://', parameters('siteName'), '.azurewebsites.net')]"
              ]
            }
          }
},

I've attached this resource within the resources array of an existing Microsoft.Web/Sites object.

The template deploys successfully. No errors are returned.

The CORS configuration is not updated however, the entry does not appear in the Azure Portal either?

Is this really a valid way of setting CORS configurations?

https://schema.management.azure.com/schemas/2016-08-01/Microsoft.Web.json#/resourceDefinitions/sites_config suggests it is correct.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.