Multiple GET will cause "Add Azure API App Client" to fail

Hi,
I'm just playing around with the new Azure App Service API Apps. I've followed the documentation and created the contact list API. I've added to that and created a second GET method with an integer parameter. This works well on the local machine and when
deployed to Azure. However, when I try to add an App Client I get an enormous error. The important bit, I think, is the message 'Invalid swagger: the operation \"Contacts_Get\" is defined multiple times.' If I remove the second GET message and republish
then adding an App Client works again.
Is this a bug or is it a limitation of Swagger. The Swagger UI seems to cope with it effectively.
Cheers,
W

It has to do with how Swashbuckle is auto-generating the operation ids that appear in swagger. The Logic App designer only wants to have 1 operation for each operation id -- it doesn't like ambiguity.
I built out a library to help cope with this and other issues
over here, if you use that you can provide a unique "friendly name" for each action (which will then generate a title cased operation id for each).
In the alternative, you could write a custom operation filter to feed to Swashbuckle to override the operation ids that it is generating for you in the background. You can see how to do that
over here.

Similar Messages

  • Will apple add the Preview app for iOS?

    Given that the iBooks App is available on OS X and iOS... and is great for EPUB files but not for PDFs...
    Will apple add the Preview app for iOS for editing PDFs and Allow Features like highlighting and cropping???...
    any info?
    or can someone tell me how to send a feedback to apple about the preview app on mac???...
    thanks

    Apple has not stated what they will or won't do.
    or can someone tell me how to send a feedback to apple about the preview app on mac???...
    Aren't you asking to put Preview for iOS?
    -> http://www.apple.com/feedback/
    Plenty of apps to view/ceate/edit PDFs.

  • Azure API App - Versioning

    I have created an API App and I wanted to test the versioning ability. I clicked on the update button on the top ribbon and it asked for confirmation to update. When I clicked yes, nothing has happened. I tried couple of times but no fruitful result. Could
    you please assist me in learning/testing this versioning feature that has been introduced with the API App services.

    Thanks for reporting this. We do see issue about the update button. We'll remove it soon. The update feature only works with packaged API Apps from the Marketplace. So if you are developing your own API app, it doesn't really apply. For your own API app,
    you can use all the deployment options include continuous deployment provided by web app, which is a great way to update your code.
    Very soon, we are going to enable you as a 3rd party developer publishing to Marketplace. Then update will apply to your packaged API app as well.

  • Open API App (Windows based) fails to open FMB on Unix file system

    My Open API, Windows based app, can successfully open and 'get' properties of FMBs stored in the Windows file system. However, it fails to load the FMB when the FMB resides on a networked Unix server. The same FMBs on Unix can be opened by the Windows based FormBuilder (over the network). I can copy the FMB down to Windows and without re-compiling the FMB, my Open API app can 'load' the FMB and 'get' all the properties. What suggestions can you give for debugging / resolving this? I need to be able to 'Load' the FMBs (through the Open API), that reside in the Unix file system, from Windows.
    JJ

    Generally, this is why we will tell you that accessing net shares is not supported and in places where it might even be supported, we would still suggest that it is not recommended. Accessing via net shares (especially through Windows) is often problematic. There are various performance and connectivity issues that, unfortunately fool you into believing that the product you are using is flawed when the problem is really a connection issue with the share.
    In your case, because you are not exactly using an Oracle product (initially), Oracle can't offer much anyway, but I would recommend against using shares whenever possible. If you need to access a file, copy it locally first, perform whatever task on it, then return the updated file to its origin. This method protects you from things like net failure and instability as well as the performance issues associated with accessing files remotely.

  • Azure App Service API app triggers feedback

    Hi
    I am kinda new to this and when I tried to build a trigger as defined in the article
    http://azure.microsoft.com/en-us/documentation/articles/app-service-api-dotnet-triggers/ I simply do not seem to know what I am doing wrong.
    I get a lot of compilation errors just using the code in a ASP Net Web Applicaton project, using the Azure API App template. I tried to place the code in a controller but then I get complation errors on a couple of places. The most noticable:
    return
    this.Request.EventTriggered(new{
    files = touchedFiles });
    The EventTrigger extension method does not seem to exist. What am I doing wrong?
    //Mikael Sand - <a href="http://mikaelsand.se"> Blog</a> Enfo Zystems Sweden

    Hey Mikael!
    I actually was struggling through pretty much the same things at the same time that you were.
    The EventTriggered extension is actually in the Microsoft.Azure.AppService.ApiApps.Service namespace, so without a using directive for that it will not be happy.
    I created a library to help with the metadata generation required for Triggers, and did a write-up on exactly what it takes to create both a polling and push trigger (with a few more samples) here: https://github.com/nihaue/TRex#building-a-polling-trigger-api-app
    Hopefully having that combined with
    the official docs, and also
    Sameer's sample can get you on the right track.
    Hope that helps!

  • I am using the same Apple id for my iPhone and iPad! Does this cause a problem with apps?

    I Was told I should use a whole different I'd with my iPad because if I have both my phone and iPad with the same Apple id it will cause conflict with the apps on each of them. Does this happen?

    No. I've been using the same Apple ID on my iPhone and iPad for years without problems. If fact, if both devices are yours and you use both devices having the same Apple ID on each of them is preferable.

  • Welcome to the Azure App Service API Apps Preview Forum!

    Welcome to the forum! This forum is for support of our customers who are using API Apps. Feel free to post any questions you have related to API Apps.
    The Azure App Service API Apps Team
    Jim Cheshire | Microsoft

    Hey Mikael!
    I actually was struggling through pretty much the same things at the same time that you were.
    The EventTriggered extension is actually in the Microsoft.Azure.AppService.ApiApps.Service namespace, so without a using directive for that it will not be happy.
    I created a library to help with the metadata generation required for Triggers, and did a write-up on exactly what it takes to create both a polling and push trigger (with a few more samples) here: https://github.com/nihaue/TRex#building-a-polling-trigger-api-app
    Hopefully having that combined with
    the official docs, and also
    Sameer's sample can get you on the right track.
    Hope that helps!

  • How can I create a simple app that will automatically add folder script

    Hi! I hope I can get a little help on this.  I tried searching online and haven't found anything.
    Is there away I can make a simple "application" that will automatically add a folder script to a users folder?
    Basically I need a folder script to run but I don't want to explaint o a user how they'd have to do it in automator.
    I'd like to be able to create an application they double click.  The app tells them to select a folder then automatically runs the script.
    Does anyone have any ideas of how'd I'd do this?

    Oh I get it. Yeah I read you post on one of the other pages and didn't quite understand, but not that you say that your're makeing this for another user, it makes sence.
    So what you want to do is have the computer automatically install a script on a customer's computer, right?
    (I'm using "custumer" loosly; i.e. just another user)
    If that's what you'd like to do, then you'll probably have to write an actual program in Xcode, since I imagine automiticlly installing folder action scrips will be highly discuraged by Apple because it would cause a huge security hole in the OS. (You wouldn't want some random person sending you a folder action installer disgused as a regular app LOL.)
    But I will actually suggest the following, which I think will work great for your users:
    Make a regular Automator app, and drag it to your Dock. Now, have the user click and drag a bunch of photos to the application icon, and it will run the app automatically on those files.
    You could try a work flow like this:
    ask the user Are you sure?
    convert pictures
    save pictures to ConvertedPics folder
    pop up a confirmation message saying that everything was resized
    Hope this helps

  • Logic App does not get Swagger Data from API App

    I'm following the tutorial here: http://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/
    I successfully added the API app, but when I add it to a Logic App, it gives the error: "Error fetching swagger api definition. Please try again."
    What is going on? I know the swagger is working properly, because I'm able to consume it from the API app.
    Thanks,

    I have the same issue. Those links don't help and you really have not answered the question.
    I'm using the basic WebApi service that is created by visual studio (plain vanilla string inputs/outputs for all the Http Verbs). The swagger works correctly, but when I deploy to my logic app I get:
    If I browse to the Api App itself I can see the swagger definitions working correctly but there is indeed a red validation warning. If I click the link, however, the validator returns Http 500 Internal Server Error.
    There is some talk on stackoverflow that this is to do with the https certificate that MS is using, and sure enough, if I download the swagger output from the Api App and upload it to a plain http url on another site, it validates correctly.
    So: this seems insoluble. The swagger is correct, but is failing validation, and the Api App cannot be consumed by the logic app.
    Here is the Api App endpoint showing the error: https://microsoft-apiapp4b8b7674e41e4a8f905a2d8b1e4a745b.azurewebsites.net/swagger/ui/index
    And here is the swagger from https://microsoft-apiapp4b8b7674e41e4a8f905a2d8b1e4a745b.azurewebsites.net:443/swagger/docs/v1 
    {"swagger":"2.0","info":{"version":"v1","title":"PE-Services-Idml"},"host":"microsoft-apiapp4b8b7674e41e4a8f905a2d8b1e4a745b.azurewebsites.net:443","schemes":["https"],"paths":{"/api/ToEpl":{"get":{"tags":["ToEpl"],"operationId":"ToEpl_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"responses":{"200":{"description":"OK","schema":{"type":"array","items":{"type":"string"}}}},"deprecated":false},"post":{"tags":["ToEpl"],"operationId":"ToEpl_Post","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":[],"parameters":[{"name":"value","in":"body","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No
    Content"}},"deprecated":false}},"/api/ToEpl/{id}":{"get":{"tags":["ToEpl"],"operationId":"ToEpl_Get","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"}],"responses":{"200":{"description":"OK","schema":{"type":"string"}}},"deprecated":false},"put":{"tags":["ToEpl"],"operationId":"ToEpl_Put","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":[],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"},{"name":"value","in":"body","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No
    Content"}},"deprecated":false},"delete":{"tags":["ToEpl"],"operationId":"ToEpl_Delete","consumes":[],"produces":[],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","format":"int32"}],"responses":{"204":{"description":"No
    Content"}},"deprecated":false}}},"definitions":{}}

  • I have created my apple id.Now when I m downloading any app it is asking my credit card details again forget that I hv made multiple payments while trying to download the app but the app is not getting downloaded.It is sowing the msg cant connect to itune

    I have created my apple Id.Now when i m downloading any app it is asking my credit card details.I have made multiple payments while trying to download the app.But the app is not getting downloaded,it is showing the message cannot connect to the i tune store.What should i do to download the applications.

    Ok, first of all don't keep purchasing the application, and if you've purchased it multiple times, contact iTunes billing department immediately.  They SHOULD only send one actual confirmation in and the rest of the "pending" charges will drop off (how long that takes is up to your credit card company, not iTunes), but you should be sure.
    Second, sometimes when they are uploading a lot of new stuff at certain times it can cause the store to screw up, or any number of other reasons could be a factor why you can't connect to the iTunes store, be it on their end or on your end even.  Wait a little bit and try again via "Check for available downloads" or via your "Purchased" option on the iTunes store main page.
    IF the app you purchased isn't there and you are sure your credit card was charged, then you will need to contact iTunes to find out why you can't download the app.

  • Getting ERROR "Sorry something wnt wrong" when i try to add an Access App...

    Hi 
    Iam struggling with an error when i try to add Access App to the Site / Web Application...
    I have tried to delte the Access Services and re-created it without any luck, and iam SharePoint Administrator, and siite collection admin to.
    But still iam not able to add an Access App...
    Is it any further configuration to set this up, or am i missing something here?

    how you trying to add the access app.
    also check the ULS logs for more information...from technical details you will get a correlation id.
    run the Merge-SPLogFile -correlation to get the complete trace of the error.
    also make sure your account not display as system account:
    Before a user can add an app for SharePoint, a member of the Farm Administrators group must configure the environment to support apps for SharePoint. For more information, see Configure
    an environment for apps for SharePoint (SharePoint 2013).
    A user must have the Manage Web site and Create Subsites permissions to add an app for SharePoint. By default, these permissions are available only to users who have the Full Control permission
    level or who are in the site Owners group.
    When a user adds an app for SharePoint, the app requests permissions that it needs to function (for example, access to Search, or to create a list). Users who do not have those permissions
    are informed that they do not have sufficient permissions and the app cannot be added. The user can contact a site or farm administrator to see if the administrator can add the app.
    A user logged in to a site as the system account cannot install an app. The system account cannot import app licenses because that could result in performance problems.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How can I get my music in my itunes library on my ipad? If I sync the itunes library will I lose all my apps on my ipad?

    how can I get my music in my itunes library on my ipad? If I sync the itunes library will I lose all my apps on my ipad?

    Media was moved via external hard disk, and I think I moved the iTunes Media folder after consolidating it.

  • HT4993 i am trying to install msnbc app from the app store and keep getting an error message.  The app will not install.  What can i do?

    i am trying to install msnbc app from the app store and keep getting an error message.  The app will not install.  What can i do?

    This is asked and answered many times each day.  The forum search bar is on the right side of this page.
    Disable your firewall/security software and try again.

  • Links to web page in any mail message will cause Mail app to hang, and won't open Safari.

    Repeatable problem on iPhone or iPad.
    Any link to a web page will cause Mail to lock up and become unresponsive, and won't open the web page in Safari.
    The only way out of this is to back out to the home screen, double-click on the home button, then select the Mail app icon, holding it until I can "close" it. I can then relaunch Mail and look at any message I want just like normal.  But if select any link, whether a text link or a picture in an email, the whole thing happens again.
    Occurs on both my iPhone 5 and my iPad both running iOS 6.0.1.
    Any suggestions that will allow me to go directly from a mail msg to a linked web page embedded within?

    You ran a defective third-party "utility" that purports to "clean up" "junk" files. What it really does is to corrupt the operating system and many applications.   
    The first thing you need to do is remove that software according to the developer's instructions. Never install it, or anything like it, again. Then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • I have logged in to my itunes account on a different computer and none of my purchased music is showing up. I also have plugged my iphone in to get updates but it says I will lose all media and apps if I don't update on the computer where  I sync everythi

    I have logged in to my itunes account on a different computer and none of my purchased music is showing up. I also have plugged my iphone in to get updates but it says I will lose all media and apps if I don't update on the computer where  I sync everything. I have authorized this new computer so I don't know what the problem is. I can't get on my old computer with my itunes account because the computer is broken. Not sure what to do

    "I have logged in to my itunes account on a different computer and none of my purchased music is showing up."
    Correct.  it does not magially appear in other places.  It will only be where you put it.
    "I also have plugged my iphone in to get updates but it says I will lose all media and apps if I don't update on the computer where  I sync everything. "
    Correct as well.  Iphone will sync with one computer at a time.  Syncing to another will erase the current content.
    You need to copy everything ( itunes library/contacts/pics/calendars/files/docs) from the old computer, or your backup copy of the old one, to the new one.

Maybe you are looking for

  • My iTunes wont sync from my phone to my new laptop.

    I purchased a new macbook pro but my iPhone 5s won't allow me to copy over all my music. Purchased items will copy and i can access my music when its plugged in through the on this phone tab, yet i can't copy it over entirely to my laptop. Also i hav

  • MOVED: A75MA-G55 UEFI boot entries disappear

    This topic has been moved to Linux/Unix. https://forum-en.msi.com/index.php?topic=153411.0

  • Printing a PO on a single Page.

    Hello All, Could you please help me in finding out the solution for below issue. " We have a requirement to print a PO from a HP laserJet printer. This has to come in Landscape. For that we have copied a device type HPLJ4 and a formato type as Z_LEGA

  • Problem with STMS_QA

    Hi, After releasing the transport requests in SE01, I have to approve these requests in STMS_QA, but these requests not appear in STMS_QA. Can any one help me? regards, prabhu

  • Simple CQL query error - Invalid statement: select one from inputChannel

    Hi, I am new to oracle cep, I wrote a simple query.... "select * from inputChannel RETAIN 5 EVENTS" but some how it shows the error as . Invalid statement: "select one from >>inputChannel RETAIN<< 5 EVENTS" Cause: generic syntax error Action: The syn