-
Notifications
You must be signed in to change notification settings - Fork 16
/
crosswordconstructor.com.yaml
1 lines (1 loc) · 1.47 KB
/
crosswordconstructor.com.yaml
1
{"info":{"contact":{"email":"devin@crosswordconstructor.com","name":"Devin Atkin","url":"https://crosswordconstructor.com/legal"},"description":"This is an application for generating crosswords from words with hints.","termsOfService":"https://crosswordconstructor.com/termsofservice","title":"Crossword Generator","version":"1.0.1"},"openapi":"3.0.0","paths":{"/generate_crossword":{"post":{"description":"Generates an image of a crossword from a set of words and clues provided as a json package. The package may also include a grid_size variable to adjust the output size for larger crosswords.","operationId":"generateCrossword","requestBody":{"content":{"application/json":{"schema":{"properties":{"clues":{"description":"An associated array of clues","items":{"type":"string"},"type":"array"},"grid_size":{"description":"The size of the desired crossword square. Larger grid sizes will allow more words.","type":"integer"},"words":{"description":"An array of words","items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"hints":{"description":"crossword hints","items":{"type":"string"},"type":"array"},"image_url":{"description":"publicly accessable image URL","type":"string"}},"type":"object"}}},"description":"OK"},"400":{"content":{"text/html":{"schema":{"type":"string"}}},"description":"Bad Request"}}}}},"servers":[{"description":"Google Cloud Run 1","url":"https://crosswordconstructor.com"}]}