Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siddheshk02/go-cache-api
https://github.com/siddheshk02/go-cache-api
Last synced: about 23 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/siddheshk02/go-cache-api
- Owner: Siddheshk02
- License: mit
- Created: 2023-03-21T09:13:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T08:45:34.000Z (almost 2 years ago)
- Last Synced: 2024-11-17T17:56:16.646Z (about 2 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-Cache-API
## 1. Pull the docker image :
```
docker pull siddheshk02/api-dev
```## 2. Run the image :
```
docker run -p 8000:8000 api-dev
```
## Output :
![image](https://user-images.githubusercontent.com/90148705/226841504-9994a2b5-eead-4f6a-9393-a9486153bfbd.png)3. Now head over to ``` http://127.0.0.1:8000/ ``` on your browser, You'll see ``` Hello, World 👋! ```.
4. ``` /posts/:id ``` : Go to url ``` http://127.0.0.1:8000//posts/1 ```
Note : you can try with any ``` id ```.
Output :
![image](https://user-images.githubusercontent.com/90148705/226843122-f2af5b41-6e57-4e75-9b02-d1953f80047b.png)
You'll get some data like this.5. ``` /todos/:id ``` : Go to url ``` http://127.0.0.1:8000//todos/1 ```
Note : you can try with any ``` id ```.
Output :
![image](https://user-images.githubusercontent.com/90148705/226843854-01a53ce0-1845-420b-b6fd-1fcf78c83c17.png)
You'll get some data like this.