openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 3.49 kB
JSON
{"openapi":"3.0.0","info":{"description":"Below is the documentation for the API calls. You can try them out right here. \n","title":"Random Lottery Number generator API","version":"1.5","x-apisguru-categories":["text"],"x-origin":[{"format":"swagger","url":"https://fungenerators.com/yaml/lottery.yaml","version":"2.0"}],"x-providerName":"fungenerators.com","x-serviceName":"lottery"},"tags":[{"description":"Random Lottery number generation API","externalDocs":{"description":"Find out more","url":"http://fungenerators.com/api/lottery"},"name":"Lottery"}],"paths":{"/lottery/countries":{"get":{"description":"Get the complete list of countries supported in the number generation API.","responses":{"200":{"description":"200 response","content":{"application/json":{"examples":{"response":{"value":"{ \n \"success\":\n {\"total\":76},\n \"contents\": {\n \"countries\":\n [\n \"Anguilla\",\n \"Antigua and Barbuda\",\n \"Australia\",\n \"Austria\",\n \"...\"\n ]\n }\n}"}}}}},"401":{"description":"401 response","content":{"application/json":{"examples":{"response":{"value":"{\n \"error\": {\n \"code\": 401,\n \"message\": \"Unauthorized\"\n }\n}"}}}}}},"security":[{"X-Fungenerators-Api-Secret":[]}],"tags":["Lottery"]}},"/lottery/draw":{"get":{"description":"Generate random draw for a given lottery game.","parameters":[{"description":"Lottery Game Name","in":"query","name":"game","required":true,"schema":{"type":"string","format":"string"}},{"description":"Number of draws (max 5 per request)","in":"query","name":"count","required":false,"schema":{"type":"integer","format":"integer"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"examples":{"response":{"value":"{\n \"success\": {\n \"total\": 1\n },\n \"contents\": \n {\n \"numbers\":\n [\n {\"draw\":[[21,10,6,44,17,5]]}\n ]\n }\n}"}}}}},"401":{"description":"401 response","content":{"application/json":{"examples":{"response":{"value":"{\n \"error\": {\n \"code\": 401,\n \"message\": \"Unauthorized\"\n }\n}"}}}}}},"security":[{"X-Fungenerators-Api-Secret":[]}],"tags":["Lottery"]}},"/lottery/supported":{"get":{"description":"Get the list of supported lottery games supported in the given country.","parameters":[{"description":"Country Name","in":"query","name":"country","required":true,"schema":{"type":"string","format":"string"}}],"responses":{"200":{"description":"200 response","content":{"application/json":{"examples":{"response":{"value":"{\n \"success\": {\n \"total\":4\n \n },\n \"contents\": {\n \"country\" : \"India\",\n \"games\" :\n [\n \"india-playwin-easy-lotto\",\n \"india-playwin-fast-digit-lottery\",\n \"india-playwin-super-lotto\",\n \"india-playwin-thunderball\"\n ]\n }\n} "}}}}},"401":{"description":"401 response","content":{"application/json":{"examples":{"response":{"value":"{\n \"error\": {\n \"code\": 401,\n \"message\": \"Unauthorized\"\n }\n}"}}}}}},"security":[{"X-Fungenerators-Api-Secret":[]}],"tags":["Lottery"]}}},"servers":[{"url":"https://api.fungenerators.com"},{"url":"http://api.fungenerators.com"}],"components":{"securitySchemes":{"X-Fungenerators-Api-Secret":{"in":"header","name":"X-Fungenerators-Api-Secret","type":"apiKey"}}}}