GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Change to use List<string> add [Description] attribute · ServiceStackApps/StackApis@05fee1d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • StackApis.ServiceInterface
      • MyServices.cs
    • StackApis.ServiceModel
      • Answers.cs
      • Questions.cs
    • StackApis.Tests
      • UnitTests.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/StackApis.ServiceInterface/MyServices.cs‎

Copy file name to clipboardExpand all lines: src/StackApis.ServiceInterface/MyServices.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public object Get(SearchQuestions request)
1212
{
1313
var query = Db.From<Question>();
1414

15-
if (request.Tags != null && request.Tags.Length > 0)
15+
if (request.Tags != null && request.Tags.Count > 0)
1616
{
1717
query.Join<QuestionTag>((q, t) => q.QuestionId == t.QuestionId)
1818
.Where<QuestionTag>(x => Sql.In(x.Tag, request.Tags));
Collapse file

‎src/StackApis.ServiceModel/Answers.cs‎

Copy file name to clipboardExpand all lines: src/StackApis.ServiceModel/Answers.cs
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using System.Collections.Generic;
22
using ServiceStack;
3+
using ServiceStack.DataAnnotations;
34
using StackApis.ServiceModel.Types;
45

56
namespace StackApis.ServiceModel
67
{
8+
[Description("Get a list of Answers for a Question")]
79
[Route("/getanswer/{QuestionId}")]
810
public class GetAnswers : IReturn<GetAnswersResponse>
911
{
Collapse file

‎src/StackApis.ServiceModel/Questions.cs‎

Copy file name to clipboardExpand all lines: src/StackApis.ServiceModel/Questions.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace StackApis.ServiceModel
77
[Route("/questions/search")]
88
public class SearchQuestions : IReturn<SearchQuestionsResponse>
99
{
10-
public string[] Tags { get; set; }
10+
public List<string> Tags { get; set; }
1111
public string UserId { get; set; }
1212
}
1313

Collapse file

‎src/StackApis.Tests/UnitTests.cs‎

Copy file name to clipboardExpand all lines: src/StackApis.Tests/UnitTests.cs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using ServiceStack.Text;
1414
using ServiceStack.Web;
1515
using StackApis.ServiceInterface;
16+
using StackApis.ServiceModel;
1617
using StackApis.ServiceModel.Types;
1718

1819
namespace StackApis.Tests

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.