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.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Aug 18, 2019
2 parents b5d6d9f + 2f5ff90 commit 4c9837b
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 38 deletions.
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.4"
version: "0.0.5"
githubName: "HPI-de/hpi-cloud-apis"
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]


## [0.0.5] - 2019-08-18
### BREAKING CHANGES
- **course:** make CourseSeries more strict
- **course:** make CourseDetail teletask + description optional
- **food:** add details to substitution
- **food:** support different prices for different customers
- **news:** rename Source, Category, Tag name to title
- **news:** make Article.view_count nullable
- **news:** rename remaining site occurrences to source
- **news:** make Semester.year an int32

### Added
- **common:** add Image.aspect_ratio
- **myhpi:** add Action.icon

### Documentation
- **myhpi:** document that Action.Text.content can be HTML
- **food:** remove unnecessary optional comments

## [0.0.4] - 2019-08-12
### Added
- add documentation on how to generate Dart code
Expand All @@ -42,7 +61,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.4...dev
[Unreleased]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.5...dev
[0.0.5]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.4...0.0.5
[0.0.4]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.3...0.0.4
[0.0.3]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/HPI-de/hpi-cloud-apis/compare/0.0.1...0.0.2
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.4"
libraryVersion = "0.0.5"
}

task sourcesJar(type: Jar, dependsOn: classes) {
Expand Down
9 changes: 4 additions & 5 deletions hpi/cloud/common/v1test/image.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ option java_package = "de.hpi.cloud.common.v1test";

// An image including source and alt-text for accessibility.
message Image {
// Required.
//
// The source (URL) of this image.
// Required. The source (URL) of this image.
string source = 1;

// Optional.
//
// Alternative text describing the contents of this image.
string alt = 2;

// The aspect ratio. Useful for showing a placeholder with the correct size.
float aspect_ratio = 3;
}
14 changes: 7 additions & 7 deletions hpi/cloud/course/v1test/course.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ message CourseSeries {
// Required. Whether it's mandatory to particiapte in a course of this series.
bool mandatory = 7;

// The language courses of this series are taught in. Must be a valid [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag.
// Required. The language courses of this series are taught in. Must be a valid [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag.
string language = 8;

enum Type {
Expand All @@ -41,7 +41,7 @@ message CourseSeries {
EXERCISE = 3;
}

// Types of this course series.
// Types of this course series. Must contain at least one value.
repeated Type types = 9;
}

Expand All @@ -59,7 +59,7 @@ message Semester {
Term term = 2;

// Required. The year.
sint64 year = 3;
int32 year = 3;
}

// A course.
Expand All @@ -76,10 +76,10 @@ message Course {
// Required. The lecturer.
string lecturer = 4;

// Optional. The assistants.
// The assistants.
repeated string assistants = 5;

// Optional. A website that contains more information about the course.
// A website that contains more information about the course.
string website = 6;
}

Expand All @@ -88,7 +88,7 @@ message CourseDetail {
// Required. The unique ID of course these details belong to.
string course_id = 1;

// Required. A link to the course on teletask.
// A link to the course on teletask.
string teletask = 2;

message ProgramList {
Expand All @@ -98,7 +98,7 @@ message CourseDetail {
// Required. Programs this course can be graded in.
map<string, ProgramList> programs = 3;

// Required. A description (HTML).
// A description (HTML).
string description = 4;

// Requirements to participate in this course (HTML).
Expand Down
24 changes: 15 additions & 9 deletions hpi/cloud/food/v1test/restaurant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,26 @@ message MenuItem {
// Required. The date of when this menu was/will be served.
google.type.Date date = 3;

// The counter where this item is served.
string counter = 4;

// Required. The price to pay for this item, depending on the customer (e.g. student, guest, default ...).
map<string, google.type.Money> prices = 5;

// Required. The title.
string title = 4;
string title = 6;

// Optional. An optional substitution that's offered to the hungry consumer.
string substitution = 5;
// IDs of the labels of the item.
repeated string label_ids = 7;

// Required. The price to pay for this item.
google.type.Money price = 6;
message Substitution {
string title = 1;

// Optional. The counter where this item is served.
string counter = 7;
repeated string label_ids = 2;
}

// Optional. IDs of the labels of the item.
repeated string label_ids = 8;
// An optional substitution that's offered to the hungry consumer.
Substitution substitution = 8;
}

// A label on a menu item.
Expand Down
11 changes: 7 additions & 4 deletions hpi/cloud/myhpi/v1test/info_bit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ message InfoBit {
// Required. The description.
string description = 3;

// Optional. IDs of the actions of this info bit.
// IDs of the actions of this info bit.
repeated string action_ids = 4;
}

Expand All @@ -29,18 +29,21 @@ message Action {
// Required. The title.
string title = 2;

// The URL pointing to an icon.
string icon = 3;

message Link {
// Required. The URL.
string url = 1;
}

message Text {
// Required. The text to show.
// Required. The text to show (HTML).
string content = 1;
}

oneof type {
Link link = 3;
Text text = 4;
Link link = 4;
Text text = 5;
}
}
17 changes: 9 additions & 8 deletions hpi/cloud/news/v1test/article.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package hpi.cloud.news.v1test;

import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "hpi/cloud/common/v1test/image.proto";

option java_multiple_files = true;
Expand All @@ -12,7 +13,7 @@ option java_package = "de.hpi.cloud.news.v1test";

// A news article, e.g. from HPI News and HPImgzn.
message Article {
// Required, output only. The unique ID (across sites) of this article.
// Required, output only. The unique ID (across sources) of this article.
string id = 1;

// Required. ID of the original source of this article.
Expand Down Expand Up @@ -46,16 +47,16 @@ message Article {
repeated Tag tags = 11;

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

// An article source, e.g. HPI News or HPImgzn.
message Source {
// Required, output only. The unique ID of this source.
string id = 1;

// Required. The name of this source.
string name = 2;
// Required. The title of this source.
string title = 2;

// Required. The url of this source.
string link = 3;
Expand All @@ -66,17 +67,17 @@ message Category {
// Required, output only. The unique ID of this category.
string id = 1;

// Required. The name of this category.
string name = 2;
// Required. The title of this category.
string title = 2;
}

// A tag by which articles can be organized and filtered.
message Tag {
// Required, output only. The unique ID of this tag.
string id = 1;

// Required. The name of this tag.
string name = 2;
// Required. The title of this tag.
string title = 2;

// Required. The number of articles tagged with this tag.
uint32 article_count = 3;
Expand Down
4 changes: 2 additions & 2 deletions hpi/cloud/news/v1test/news_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ service NewsService {

// Request message for listing articles using [ListArticles][hpi.cloud.news.v1test.NewsService.ListArticles].
message ListArticlesRequest {
// If specified, only articles from this site are returned.
string site_id = 1;
// If specified, only articles from this source are returned.
string source_id = 1;

// If specified, only articles from this category are returned.
string category_id = 2;
Expand Down

0 comments on commit 4c9837b

Please sign in to comment.