Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
javab_20230928
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
javab_20230928
Commits
a73f2bff
Commit
a73f2bff
authored
Oct 19, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
poprawka text/plain
parent
1b5760bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BlogRestController.java
...ng/src/main/java/com/example/demo/BlogRestController.java
+3
-3
No files found.
PC26-Spring/src/main/java/com/example/demo/BlogRestController.java
View file @
a73f2bff
...
...
@@ -22,19 +22,19 @@ public class BlogRestController {
return
blogService
.
getTeksty
();
}
@GetMapping
(
path
=
"/{numer}"
,
produces
=
"
application/jso
n"
)
@GetMapping
(
path
=
"/{numer}"
,
produces
=
"
text/plai
n"
)
public
String
getTekst
(
@PathVariable
(
"numer"
)
int
i
)
{
return
blogService
.
getTekst
(
i
);
}
@PutMapping
(
path
=
"/{numer}"
,
consumes
=
{
"application/json"
,
"text/plain"
}
)
@PutMapping
(
path
=
"/{numer}"
,
consumes
=
"text/plain"
)
public
void
setTekst
(
@PathVariable
(
"numer"
)
int
i
,
@RequestBody
String
tekst
)
{
blogService
.
setTekst
(
i
,
tekst
);
}
@PostMapping
(
consumes
=
{
"application/json"
,
"text/plain"
}
)
@PostMapping
(
consumes
=
"text/plain"
)
public
void
addTekst
(
@RequestBody
String
tekst
)
{
blogService
.
addTekst
(
tekst
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment