https://github.com/siddheshk02/go-cache-api
https://github.com/siddheshk02/go-cache-api
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/siddheshk02/go-cache-api
- Owner: Siddheshk02
- License: mit
- Created: 2023-03-21T09:13:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T08:45:34.000Z (over 2 years ago)
- Last Synced: 2025-02-07T09:18:02.988Z (5 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 :
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 :

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 :

You'll get some data like this.