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

allow publicationId 0 for GetContentByUrl and GetLastPublishedDateByU… #6

Merged
merged 1 commit into from
Oct 29, 2015
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
4 changes: 0 additions & 4 deletions source/DD4T.RestService.WebApi/Controllers/PageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public PageController(IPageProvider pageProvider, ILogger logger)
public IHttpActionResult GetContentByUrl(int publicationId, string extension, string url)
{
Logger.Debug("PageController.GetContentByUrl publicationId={0}, Url={1}, extension={2}", publicationId, url, extension);
if (publicationId == 0)
return BadRequest(Messages.EmptyPublicationId);

PageProvider.PublicationId = publicationId;
var content = PageProvider.GetContentByUrl(url.GetUrl(extension));
Expand Down Expand Up @@ -68,8 +66,6 @@ public IHttpActionResult GetContentByUri(int publicationId, int id)
public IHttpActionResult GetLastPublishedDateByUrl(int publicationId, string extension, string url)
{
Logger.Debug("PageController.GetLastPublishedDateByUrl publicationId={0}, Url={1}, Extension={2}", publicationId, url, extension);
if (publicationId == 0)
return BadRequest(Messages.EmptyPublicationId);

PageProvider.PublicationId = publicationId;
var content = PageProvider.GetLastPublishedDateByUrl(url.GetUrl(extension));
Expand Down
6 changes: 3 additions & 3 deletions source/DD4T.RestService.WebApi/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0-alpha1")]
[assembly: AssemblyVersion("2.0.5.0")]
[assembly: AssemblyFileVersion("2.0.5.0")]
[assembly: AssemblyInformationalVersion("2.0.5-alpha1")]