Back to problems

Design an API for Pascal Triangle

Object-Oriented Programming · Faire · Medium

API Design: Pascal’s Triangle Generator Endpoint The endpoint is idempotent and safe, so it uses GET. The result depends only on the requested height and contains no server-side state. Request Parameters Parameter Type Required Description height integer yes Number of rows to generate. Must be between 1 and 50, inclusive. Example request: The client may also send standard headers such as Accept: application/json, but no additional query parameters are required or accepted.…

Checking your access…