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

Refactored service with local IIS deployment (to work around IIS Expr… #354

Merged
merged 1 commit into from
Aug 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ namespace MobileKidsId.PdfGenerationAppService.Controllers
{
public class JsonToPdfController : ApiController
{
/*Can test with local browser via http://localhost:[your locla IIS port]/api/JsonToPdf/GetMissingChildProfilePdf?missingChildJson=""*/
/*Can test with local browser via http://localhost:[your local IIS port]/api/JsonToPdf/GetMissingChildProfilePdf?missingChildJson=""*/
/* Not from GiveCamp 2019. This service works over a local IIS host when deployed using the Deploy Profile contained in settings. This is not ideal and will be replaced with a service Mock */
[System.Web.Http.HttpGet]
public ActionResult GetMissingChildProfilePdf(string missingChildJson)
{
if(!string.IsNullOrWhiteSpace(missingChildJson))
if(string.IsNullOrWhiteSpace(missingChildJson))
{
missingChildJson = @"{
'FirstName': 'Jane',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\MobileKidsIdPdfGenerationAppService20180805110039 - Web Deploy.pubxml" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
Expand All @@ -289,7 +290,7 @@
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>61795</DevelopmentServerPort>
<DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:61795/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\AndroidDownloader.cs" />
<Compile Include="Services\ContactPicker.cs" />
<Compile Include="Services\PhotoPicker.cs" />
<Compile Include="Services\WebViewContentHelper.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.HumanitarianToolbox.KidsIdKit" android:installLocation="auto">
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="27" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application android:label="Kids Id Kit"></application>
</manifest>
Loading