Does ReadyAPI support RAML specification import? - raml

I am trying to explore if the ReadyAPI product by SmartBear supports the import of API definitions written in the RAML specification.
After installing ReadyAPI v. 3.42.2 locally, there is no option to import RAML API definitions. If I select the "determine automatically" dropdown option during import (as shows on the image below), it results in an error.
I found some posts in the SmartBear community indicating that RAML import is possible with help of some plugins, but the post is quite old and the URLs mentioned are giving 404 now.

Related

Step file property mapping

When I load a STEP model into inventor, during the import processing these is the opportunity to perform property mapping. In my case, specifically "material" property.
Is there similar functionality available when loading Step models into Forge?
Thanks
No, unfortunately, only the options listed in the documentation are available:
https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/job-POST/
If the mapping can be automated using the Inventor API (not sure), then perhaps you could use the Design Automation API to import the STEP file into an Inventor document and then translate that to SVF which then could be displayed in the Viewer

Automatically generate TypeScript client code for ASP.NET Core controllers

I'm searching for a way to automatically generate the TypesScript client code from a ASP.NET Core Web-Application (Currently using Visual Studio 2017RC and webpack).
Are there any existing tools to generate the TypeScript client either in the build pipeline from visual studio or with webpack? I tried to use swagger middleware and then generate to client from the swagger URL, but I'm not sure if the intermediate swagger generation is the right tool for the job. Also the disconnectedness from the build tools is not ideal.
Both NSwag and Swashbuckle/swagger-codegen are awesome.
Typewriter is another awesome option.
So, here is how I would take the decision:
Need to generate TypeScript Models as per the C# models, go for TypeWriter
Need to generate complete client side code with command line that you can add as a build or publish step go for Swagger Code Gen
Need to play with the generated Swagger Spec or Generated Code to add your customizations - go for NSwag
Need to show Client inline code snippets in Swagger UI, use SwaggerUI-snippets
You can add Swashbuckle to your ASP.NET Core webapp and then generate Swagger/OpenAPI spec.
With the Swagger/OpenAPI spec, you can then use Swagger Codegen to generate not only TypeScript API clients (Node, Angular, Angular2, Fetch), but also API clients in C#, Java, JS, Swift, etc as well as API documentation.
The easiest way to try Swagger Codegen is to use https://editor.swagger.io by importing your spec and then select the target API client/server you want to generate. (https://editor.swagger.io leverages https://generator.swagger.io to generate code and generator.swagger.io is powered by Swagger Codegen)
Swagger Codegen can also generate server stubs in C# Nancyfx or ASP.NET core so you may consider following the contract-first approach by writing the spec using https://editor.swagger.io and then generating both API clients and server stubs.
UPDATE: On May 2018, about 50 top contributors and template creators of Swagger Codegen decided to fork Swagger Codegen to maintain a community-driven version called OpenAPI Generator. Please refer to the Q&A for more information.
Another option is NSwag which can generate Swagger specs from your ASP.NET (Core) controllers and TypeScript clients from this Swagger spec (for Angular, AngularJS, Fetch, etc.). The integration is very simple and it supports many advanced features (inheritance, named enums, code extensions, etc).
http://NSwag.org
Using the NSwagStudio UI it is very simple to get started and then you can automate everything with NPM package (i.e. running the config file in the cmd line).
I'm one of the authors of the project.
If you need to generate DTOs and API clients, then your options are
NSwag. The most popular tool for the job. But it generates everything in one file that makes it hard to maintain/debug.
Swagger Codegen or its fork with more features OpenAPI Generator. A Java-based option producing separate files, but with limited customisation.
AutoRest. A npm solution for packing up API clients in npm packages.
WebApiClientGen. A solution mentioned by the author below in this thread.
TypeWriter. VS extension, where you can craft your own implementation.
If you need DTOs only, then I'd look towards
Reinforced.Typings
TypeGen
More on these tools in this post - 6+ ways to marry C# with TypeScript.
You can also take a look at autorest.typescript client code generator. It provides good interfaces for all the model definitions, accurately defines readonly properties and enums. It supports a bunch of custom extensions that can be useful to improve the user experience of the generated client. You can take a look at some generated sample clients.
Bonus: The generated typescript client works in node.js and also in the browser.
If your TypeScript clients are with jQuery or Angular 2+, an alternative ASP.NET Web API Client Generators may be more handy, less overhead than swagger toolchain during SDLC.
And it supports .NET Core in addition to .NET Framework and .NET Standard.
Yet another option where you have full control over generated code is NTypewriter, which is basically Typewriter clone, but it uses Scriban syntax for templates.

Mulesoft API Designer auto load RAML file

I can see how you can import/export zip files containing RAML files using API Designer.
I would like to give the URL of the API Designer to someone to view a RAML file that I have created.
Is there any way to automatically import a zip file (perhaps from a URL) into API Designer rather than having to send them a zip file and have them import it?
currently there is no way to expose your RAML directly from the API Designer for someone to consume - that said, you need to expose it by yourself somewhere. Unfortunately, there isn't a way to import the RAML from a URL either, but that is a really good idea. I will file an issue for you.
https://github.com/mulesoft/api-designer/issues/366
If you are using Anypoint online instead of a local API Designer you can expose the RAML via a public or private API Portal.
By Anypoint studio online you can expose your RAML as public API portal and RAML resources can access from there, also able to download your raml as zip from there.

How to re-import yammer notes to different group/network?

After export of the yammer notes (by verified administrator), how to bulk import them again if needed - to another network/group - with names, labels and content (preferably, interlinked)?
It isn't possible to do this as there isn't a supported API available for notes. The purpose of the data export is provide access to data in a raw format which can be supported by eDiscovery tools, but re-importing content isn't a supported scenario. There is a message API for Yammer, but even this isn't designed to support import of content exported from another network since there is no way to back date the content.

Magento Import Entity Type

i would like to import a CSV file into a custom table from a local magento extension.
In order to do so, I would like to create a new "Entity Type" in the import/export module.
But it seems like this is not that easy, or at least I didn't find a tutorial or documentation while searching the web for some hours now.
Maybe it isn't even necessary to create a new entity type, but i thought it would be a good starting point.
As I am currently using magmi (sourceforge.net/projects/magmi/) to import products, I would also take a solution to import data into custom tables with that.
Thanks in advance for every hint you got for me!
Best regards!
You can do this by setting up a custom Dataflow profile. (System > Import/Export > Dataflow - Advanced Profiles)
There's a fairly simple example tutorial i've linked below which explains both the necessary Profile Actions XML, and also shows a simple example of writing your own dataflow adapter to handle the saving each row in your CSV.
http://blog.baobaz.com/en/blog/customizing-magento-dataflow-import-of-custom-data

Resources