https://github.com/piotrjustyna/haskell-yesod-rest
Sample Haskell & Yesod application demonstrating a basic REST API. It could serve as a starting point for a toy project.
https://github.com/piotrjustyna/haskell-yesod-rest
Last synced: 7 months ago
JSON representation
Sample Haskell & Yesod application demonstrating a basic REST API. It could serve as a starting point for a toy project.
- Host: GitHub
- URL: https://github.com/piotrjustyna/haskell-yesod-rest
- Owner: PiotrJustyna
- License: bsd-3-clause
- Created: 2018-04-13T09:51:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T11:31:44.000Z (over 6 years ago)
- Last Synced: 2025-01-11T16:38:55.003Z (9 months ago)
- Language: Haskell
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# FOA - Feedback On Anything
Collection of Postman requests:
```json
{
"variables": [],
"info": {
"name": "foa",
"_postman_id": "8d15c6fe-8fd5-4f95-1040-51255030baa2",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "home",
"request": {
"url": "http://localhost:3000/",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "all feedback",
"request": {
"url": "http://localhost:3000/feedback",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "feedback",
"request": {
"url": "http://localhost:3000/feedback/70c57beb-ce8e-4ea1-83e0-4e26da086280",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "new feedback",
"request": {
"url": "http://localhost:3000/feedback",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"target\": \"5749CF55-CB73-4B0C-A222-1959BBD6038A\",\n\t\"targetOwner\": \"3DE0188A-CEDE-4305-8C73-2D643F0A6ED9\",\n\t\"feedbackGiver\": \"CBC041D9-F503-4053-AEA4-EC23C057CE50\",\n\t\"experience\": \"c\",\n\t\"comment\": \"d\"\n}"
},
"description": ""
},
"response": []
},
{
"name": "update feedback",
"request": {
"url": "http://localhost:3000/feedback/70c57beb-ce8e-4ea1-83e0-4e26da086280",
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"target\": \"5749CF55-CB73-4B0C-A222-1959BBD6038A\",\n\t\"targetOwner\": \"3DE0188A-CEDE-4305-8C73-2D643F0A6ED9\",\n\t\"feedbackGiver\": \"CBC041D9-F503-4053-AEA4-EC23C057CE50\",\n\t\"experience\": \"e\",\n\t\"comment\": \"f\"\n}"
},
"description": ""
},
"response": []
},
{
"name": "delete feedback",
"request": {
"url": "http://localhost:3000/feedback/70c57beb-ce8e-4ea1-83e0-4e26da086280",
"method": "DELETE",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": ""
},
"description": ""
},
"response": []
}
]
}
```