Skip to content

Commit 1b30a22

Browse files
committed
feat(Services):Implement post service
1 parent 3bdbac7 commit 1b30a22

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/services/posts.services.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import CrudService from "./crud.service";
2+
3+
class PostsServices extends CrudService {
4+
/**
5+
* Service url
6+
*
7+
* @returns {String}
8+
*/
9+
static get URL() {
10+
return "posts";
11+
}
12+
13+
/**
14+
* Get default item
15+
*
16+
* @returns {Object}
17+
*/
18+
static getDefault() {
19+
return {
20+
userId: undefined,
21+
id: undefined,
22+
title: undefined,
23+
body: undefined,
24+
};
25+
}
26+
}
27+
28+
export default PostsServices;

0 commit comments

Comments
 (0)