Notes on commands and configs to manage NuGet packages
📁Blip.Api.Template
📁content
📁.template.config
📃template.json
Swashbuckle
and XML Comments to document your API in an almost effort-less mannerASP.NET Core
Setup
ASP.NET Framework
Setup (Coming soon)
As BLiP's integration with Firebase is not working (?) right now, I have found this workaround. Note: all tests were done using a mockup Kotlin app on Android 7.1.1 and 8.0
// on app level gradle
dependencies{
[...]
implementation 'com.google.firebase:firebase-core:16.0.1'
Create a Firebase account
Go to your Console and create a new project
Open your newly created project and click on Grow->Cloud Messaging
Click on the Android Logo in the top banner and follow the steps indicated there. They are:
applicationId
in your app-level build.gradle
filegoogle-services.json
.gradle
file:Suppose you have a chatbot on BLiP and you want to migrate it's flow to another one, either to update your production environment with your beta one, or to create a beta using your production alltogether. With BLiP's versioning feature it is quite simple.
If you haven't already, create a bot that is going to receive the updated source flow. It works just as creating any bot. Ideally you would want to name it as '[BETA] BotName' or anything like that just to flag it as an obvious non-production version.
The versioning tool works for the Builder's flow. The rest of the configuration you must do by hand. Thankfully they remain simple and you can copy-paste some of them, if it is not a problem for you (e.g: a beta and production bot can share the same Watson credentials. Note that any intents, entities and any other configuration is not credential-bound and you need to re-enter those).
After installing the package, you'll need to tell your API to use this scheme in the Startup.cs
file. The simplest way is using the extension method provided with the package:
public void ConfigureServices(IServiceCollection services)
{
// ...
// If only a single bot is authorized
services.UseBotAuthentication("bot authorization key");
// If multiple bots
services.UseBotAuthentication(authorizationKeyEnumerable); // pass any enumerable containing your keys
public class Bird
{
// whatever properties do birds have
public BirdType Type { get; set; }
}
public enum BirdType
{
African,
public class Bird
{
// whatever properties do birds have
public BirdType Type { get; set; }
public double GetSpeed()
{
switch(Type)
{
public enum BirdType
{
African,
American,
European,
Asian // new type
}