Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinutoLenon #55

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4449cfb
Add files via upload
lenon51 Dec 1, 2018
63b9af2
Merge pull request #1 from lenon51/lenon51-patch-1
lenon51 Dec 1, 2018
d06dc5b
Add files via upload
lenon51 Dec 11, 2018
dd35ae2
Add files via upload
lenon51 Dec 13, 2018
ac9b66f
Add files via upload
lenon51 Dec 13, 2018
a295c86
Add files via upload
lenon51 Dec 13, 2018
0060208
Delete ArtigoController.cs
lenon51 Dec 13, 2018
93a4a9c
Delete ValuesController.cs
lenon51 Dec 13, 2018
2e1b762
Delete Artigo.cs
lenon51 Dec 13, 2018
9763a67
Delete MinutaApi.csproj
lenon51 Dec 13, 2018
774dea1
Delete Util.cs
lenon51 Dec 13, 2018
82b1e13
Delete Program.cs
lenon51 Dec 13, 2018
7132454
Delete Resources.Designer.cs
lenon51 Dec 13, 2018
e7a96c9
Delete Resources.resx
lenon51 Dec 13, 2018
a289554
Delete launchSettings.json
lenon51 Dec 13, 2018
d36a1be
Delete Startup.cs
lenon51 Dec 13, 2018
77fc63b
Delete appsettings.Development.json
lenon51 Dec 13, 2018
d9cda65
Delete appsettings.json
lenon51 Dec 13, 2018
dd7780f
Delete MinutaApi.deps.json
lenon51 Dec 13, 2018
24d01e7
Delete MinutaApi.runtimeconfig.dev.json
lenon51 Dec 13, 2018
3bab58f
Delete MinutaApi.runtimeconfig.json
lenon51 Dec 13, 2018
a3ccda2
Delete MinutaApi.AssemblyInfo.cs
lenon51 Dec 13, 2018
f990c69
Delete CoreCompileInputs.cache
lenon51 Dec 13, 2018
fbdd6c8
Delete MinutaApi.csproj.FileListAbsolute.txt
lenon51 Dec 13, 2018
eefd66c
Delete MinutaApi.csproj.nuget.g.props
lenon51 Dec 13, 2018
24c45c2
Delete MinutaApi.csproj.nuget.g.targets
lenon51 Dec 13, 2018
6542d45
Delete project.assets.json
lenon51 Dec 13, 2018
d4aad31
Delete MinutoSegurosLenon.sln
lenon51 Dec 13, 2018
c304049
Add files via upload
lenon51 Dec 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
31 changes: 31 additions & 0 deletions MinutoSegurosLenon/Minuto.Api.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Minuto.Api", "Minuto.Api\Minuto.Api.csproj", "{4BCE8177-DEAA-4952-B907-D5976D29E6FC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Minuto.Entidade", "Minuto.Entidade\Minuto.Entidade.csproj", "{521A00A4-AFA8-492C-AC98-BFE3713526AE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4BCE8177-DEAA-4952-B907-D5976D29E6FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4BCE8177-DEAA-4952-B907-D5976D29E6FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4BCE8177-DEAA-4952-B907-D5976D29E6FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4BCE8177-DEAA-4952-B907-D5976D29E6FC}.Release|Any CPU.Build.0 = Release|Any CPU
{521A00A4-AFA8-492C-AC98-BFE3713526AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{521A00A4-AFA8-492C-AC98-BFE3713526AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{521A00A4-AFA8-492C-AC98-BFE3713526AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{521A00A4-AFA8-492C-AC98-BFE3713526AE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B61F342B-EC01-4231-9872-87DA7E21B2CF}
EndGlobalSection
EndGlobal
30 changes: 30 additions & 0 deletions MinutoSegurosLenon/Minuto.Api/Controllers/ArtigoController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using Minuto.Api.Negocio;
using Minuto.Entidade;
using Minuto.Interface;
using System.Collections.Generic;

namespace Minuto.Api.Controllers
{
[EnableCors("CorsPolicy")]
[Route("api/[controller]")]
public class ArtigoController : Controller
{

private IArtigoServico servico;

public ArtigoController()
{
servico = new ArtigoServico();
}

// GET api/values
[HttpGet]
[ActionName("consultarpalavra")]
public IList<Artigo> ConsultarPalavra()
{
return servico.ConsultarPalavra();
}
}
}
18 changes: 18 additions & 0 deletions MinutoSegurosLenon/Minuto.Api/Controllers/ValuesController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Microsoft.AspNetCore.Mvc;
using MinutoSegurosLenon.Entidade;
using MinutoSegurosLenon.Negocio;
using System.Collections.Generic;

namespace MinutaApi.Controllers
{
[Route("api/[controller]")]
public class ValuesController : Controller
{
// GET api/values
[HttpGet]
public IList<Artigo> ConsultarPalavra()
{
return new ArtigoServico().ConsultarPalavra();
}
}
}
42 changes: 42 additions & 0 deletions MinutoSegurosLenon/Minuto.Api/Minuto.Api.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AssemblyName>Minuto.Api</AssemblyName>
<RootNamespace>Minuto.Api</RootNamespace>
</PropertyGroup>

<ItemGroup>
<Compile Remove="Controllers\ValuesController.cs" />
</ItemGroup>

<ItemGroup>
<Folder Include="wwwroot\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.5.1" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Minuto.Entidade\Minuto.Entidade.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

</Project>
26 changes: 26 additions & 0 deletions MinutoSegurosLenon/Minuto.Api/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;

namespace Minuto.Api
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.UseApplicationInsights()
.Build();

host.Run();
}
}
}
99 changes: 99 additions & 0 deletions MinutoSegurosLenon/Minuto.Api/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

136 changes: 136 additions & 0 deletions MinutoSegurosLenon/Minuto.Api/Properties/Resources.resx
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

Version 2.0

The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.

Example:

... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>

There are any number of "resheader" rows that contain simple
name/value pairs.

Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.

The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:

Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.

mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Palavra" xml:space="preserve">
<value>( o )|( a )|( e )|( os )|( as )|( ao )|( aos )|( de )|( do )|( da )|( dos )|( das )|( em )|( no )|( na )|( nos )|( nas )|( por )|( pelo )| ( pela )|( pelos )|( pelas )|( um )|( uma )|( uns )|( umas )|( em )|( num )|( numa )|( nuns )|( numas )|( de )|( dum )|( duma )|( duns )|( dumas )|( entre )|( como )|[-:;!?()-]</value>
<comment>Lista de palavras a serem excluídas</comment>
</data>
<data name="Tag" xml:space="preserve">
<value>(posts)|(related)|[-:;!?()-_–]|( à )|( às )|( para )|( com )</value>
<comment>Outras palavras a serem retiradas</comment>
</data>
<data name="TagHtml" xml:space="preserve">
<value>&lt;.*?&gt;</value>
<comment>Tag html</comment>
</data>
<data name="UrlRss" xml:space="preserve">
<value>https://www.minutoseguros.com.br/blog/feed/</value>
<comment>Url do blog</comment>
</data>
</root>
Loading