Skip to content

Add movies-rest#678

Open
grego952 wants to merge 3 commits into
SAP-samples:mainfrom
grego952:add-movies-rest
Open

Add movies-rest#678
grego952 wants to merge 3 commits into
SAP-samples:mainfrom
grego952:add-movies-rest

Conversation

@grego952
Copy link
Copy Markdown
Contributor

Description

Changes proposed in this pull request:

  • Add movie-rest folder required for the Fast Prototyping tutorial

Related issue(s)

@ResponseStatus(HttpStatus.CREATED)
@Operation(summary = "Create a new movie")
public Movie create(@org.springframework.web.bind.annotation.RequestBody Movie movie) throws Exception {
Movie saved = movie.withId(String.valueOf(System.currentTimeMillis()));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly as in the cli repo I would change it to UUID.randomUUID().toString()

Comment thread movies-rest/README.md

```json
{
"id": "1714900000000",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the format of movie ID is changed then the example should also be updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants