Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/0.0.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Dec 18, 2019
2 parents 450018f + d50ba48 commit a7e08b1
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 25 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: java
dist: trusty
install: true

services:
Expand Down
2 changes: 1 addition & 1 deletion .unicornfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ description: "This repository contains the original interface definitions of pub
\ definitions can provide a better understanding of HPI Cloud APIs and help you\
\ to utilize them more efficiently. You can also use these definitions with open\
\ source tools to generate client libraries, documentation, and other artifacts."
version: "0.0.11"
version: "0.0.12"
githubName: "HPI-de/hpi-cloud-apis"
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.0.12] - 2019-12-18
### BREAKING CHANGES
- **common, course, myhpi, news:** support different content types
- **news:** normalize Article.categories, tags to IDs (repeated strings)

## [0.0.11] - 2019-10-06
### BREAKING CHANGES
- **course:** add Course.attendance, enrollment_deadline; make CourseSeries.mandatory an enum
Expand Down Expand Up @@ -94,7 +99,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
Initial release with NewsService.


[Unreleased]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.11...dev
[Unreleased]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.12...dev
[0.0.12]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.11...0.0.12
[0.0.11]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.10...0.0.11
[0.0.10]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.9...0.0.10
[0.0.9]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.8...0.0.9
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ext {
githubReleaseNotes = 'CHANGELOG.md'
allLicenses = ["Apache-2.0"]

libraryVersion = "0.0.11"
libraryVersion = "0.0.12"
}

task sourcesJar(type: Jar, dependsOn: classes) {
Expand Down
18 changes: 18 additions & 0 deletions hpi/cloud/common/v1test/markup_content.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

package hpi.cloud.common.v1test;

option java_multiple_files = true;
option java_outer_classname = "MarkupContentProto";
option java_package = "de.hpi.cloud.common.v1test";


// Text in a markup format.
message MarkupContent {
// Required. A MIME-type describing the content. Clients should support
// text/html and text/markdown.
string type = 1;

// Required. The actual content.
string content = 2;
}
25 changes: 13 additions & 12 deletions hpi/cloud/course/v1test/course.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package hpi.cloud.course.v1test;

import "google/protobuf/wrappers.proto";
import "google/type/date.proto";
import "hpi/cloud/common/v1test/markup_content.proto";

option java_multiple_files = true;
option java_outer_classname = "CourseProto";
Expand Down Expand Up @@ -114,21 +115,21 @@ message CourseDetail {
// Required. Programs this course can be graded in.
map<string, ProgramList> programs = 3;

// A description (HTML).
string description = 4;
// A description.
hpi.cloud.common.v1test.MarkupContent description = 4;

// Requirements to participate in this course (HTML).
string requirements = 5;
// Requirements to participate in this course.
hpi.cloud.common.v1test.MarkupContent requirements = 5;

// What you'll learn by participating in this course (HTML).
string learning = 6;
// What you'll learn by participating in this course.
hpi.cloud.common.v1test.MarkupContent learning = 6;

// Which and how many exams take place (HTML).
string examination = 7;
// Which and how many exams take place.
hpi.cloud.common.v1test.MarkupContent examination = 7;

// When the course takes place (HTML).
string dates = 8;
// When the course takes place.
hpi.cloud.common.v1test.MarkupContent dates = 8;

// Additional literature for this course (HTML).
string literature = 9;
// Additional literature for this course.
hpi.cloud.common.v1test.MarkupContent literature = 9;
}
9 changes: 5 additions & 4 deletions hpi/cloud/myhpi/v1test/info_bit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package hpi.cloud.myhpi.v1test;

import "hpi/cloud/common/v1test/image.proto";
import "hpi/cloud/common/v1test/markup_content.proto";

option java_multiple_files = true;
option java_outer_classname = "InfoBitProto";
Expand All @@ -28,8 +29,8 @@ message InfoBit {
// Required. A short description.
string description = 6;

// HTML-formatted content that can be set in addition to the description.
string content = 10;
// Content that can be set in addition to the description.
hpi.cloud.common.v1test.MarkupContent content = 10;

// Different ways children are displayed within this info bit.
enum ChildDisplay {
Expand Down Expand Up @@ -81,6 +82,6 @@ message LinkAction {
}

message TextAction {
// Required. The text to show (HTML).
string content = 1;
// Required. The text to show.
hpi.cloud.common.v1test.MarkupContent content = 1;
}
13 changes: 7 additions & 6 deletions hpi/cloud/news/v1test/article.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package hpi.cloud.news.v1test;
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "hpi/cloud/common/v1test/image.proto";
import "hpi/cloud/common/v1test/markup_content.proto";

option java_multiple_files = true;
option java_outer_classname = "ArticleProto";
Expand Down Expand Up @@ -37,14 +38,14 @@ message Article {
// Required. A short text summarizing this article. Recommended for a preview.
string teaser = 8;

// Required. The actual HTML-content of this article.
string content = 9;
// Required. The actual content of this article.
hpi.cloud.common.v1test.MarkupContent content = 9;

// Categories of this article.
repeated Category categories = 10;
// IDs of categories of this article.
repeated string category_ids = 10;

// Tags of this article.
repeated Tag tags = 11;
// IDS of tags of this article.
repeated string tag_ids = 11;

// The number of times this article was viewed.
google.protobuf.UInt32Value view_count = 12;
Expand Down

0 comments on commit a7e08b1

Please sign in to comment.