mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
fix news readme
This commit is contained in:
@@ -1,23 +1,5 @@
|
|||||||
|
Get the news
|
||||||
|
|
||||||
# News Service
|
# News Service
|
||||||
|
|
||||||
This is the News service
|
Get the latest news headlines from anywhere in the world
|
||||||
|
|
||||||
Generated with
|
|
||||||
|
|
||||||
```
|
|
||||||
micro new news
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Generate the proto code
|
|
||||||
|
|
||||||
```
|
|
||||||
make proto
|
|
||||||
```
|
|
||||||
|
|
||||||
Run the service
|
|
||||||
|
|
||||||
```
|
|
||||||
micro run .
|
|
||||||
```
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ message Article {
|
|||||||
string locale = 12;
|
string locale = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get the latest news headlines
|
||||||
message HeadlinesRequest {
|
message HeadlinesRequest {
|
||||||
// comma separated list of languages to retrieve in e.g en,es
|
// comma separated list of languages to retrieve in e.g en,es
|
||||||
string language = 1;
|
string language = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user