Skip to content

Commit d72bafb

Browse files
committed
Rename get-<endpoint>-object to get-<endpoint>
1 parent 574b760 commit d72bafb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This will generate the following functions:
4545

4646
| Function Name | Arguments | Description |
4747
|---------------|-----------|-------------|
48-
| `get-profile-object` | (&key `query`) | Retrieve the profile object. |
48+
| `get-profile` | (&key `query`) | Retrieve the profile object. |
4949
| `update-profile` | (`content`) | Update the content of the profile object. |
5050

5151
### 📄 License

src/client.lisp

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@
9999

100100
(defmacro define-object-client (endpoint)
101101
(let ((str-endpoint (string-downcase (string endpoint)))
102-
(get-object (symbolicate 'get- endpoint '-object))
102+
(get (symbolicate 'get- endpoint))
103103
(update (symbolicate 'update- endpoint)))
104104
`(list
105-
(defun ,get-object (&key query)
105+
(defun ,get (&key query)
106106
(%request :get ,str-endpoint :query query))
107107
(defun ,update (content)
108108
(%request :patch ,str-endpoint :content content)))))

tests/client.lisp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@
4242

4343
(testing "define-object-client creates expected functions"
4444
(define-object-client config)
45-
(ok (fboundp 'get-config-object))
45+
(ok (fboundp 'get-config))
4646
(ok (fboundp 'update-config))))

0 commit comments

Comments
 (0)