Haparlament-API is a simple API that spits out random unforgettable sentences from the Israeli comedy TV show, Haparlament / הפרלמנט.
The API is live for your convenience!
Get a random sentence by visiting https://haparlament.ofekasido.xyz/api/sentence (API was shutdown on the 31st of August)
METHOD | URL | RESPONSE |
---|---|---|
GET |
/api/sentence |
Random sentence |
GET |
/api/sentences/2 |
2 Random sentences |
/api/sentence
Code: 200 OK
Content Example: "תראה את הגג זה מכפות רגליים של כלבים"
/api/sentences/2
Code: 200 OK
Content Example: [ "בזה של הלחם חיפשת?", "מה שממכר זה המצית" ]
Missing amount of sentences (e.g: GET /api/sentences/
)
- Code:
422 UNPROCESSABLE ENTRY
Content:You need to specify an amount, e.g: /api/sentences/10
If you want to run this project on your own. Clone this project, cd
into it and;
yarn install && yarn build && yarn start
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.