{"openapi":"3.1.1","info":{"title":"API Explorer demo","description":"Welcome to this demo of Bump.sh new API Explorer. This is a simple example of an OpenAPI 3.1 file,\nallowing you to test the API Explorer by playing with a simple CRUD API.\n\nLet us know what you think about it, and how we can improve it: do not hesitate to reach out to us at\nhello@bump.sh.","version":"1.0.11"},"servers":[{"url":"https://reqres.in/api"}],"tags":[{"name":"Users"}],"paths":{"/users":{"post":{"tags":["Users"],"summary":"Create a new user","description":"Creates a new user with a full name, list of jobs, and address.","operationId":"addUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/userRequest"}}},"required":true},"responses":{"201":{"description":"User successfully created.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/userServerFields"},{"$ref":"#/components/schemas/userRequest"}]}}}}}},"get":{"tags":["Users"],"summary":"Return a list of users","description":"Returns the list of all users, sorted by creation date. You can use the `page` parameter to select the portion of records you want back.","operationId":"getUsers","parameters":[{"name":"page","in":"query","description":"Select the portion of records you want back.","required":false,"schema":{"type":"integer","example":1}}],"responses":{"200":{"description":"Successful operation, returns the list of users.","content":{"application/json":{"schema":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/userServerFields"},{"$ref":"#/components/schemas/userRequest"}]}}}}}}}}},"components":{"schemas":{"userServerFields":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the user."},"createdAt":{"type":"string","format":"date-time","description":"Creation date and time."}}},"userRequest":{"type":"object","properties":{"full_name":{"type":"string","description":"First and last name of the user.","example":"John Doe"},"jobs":{"type":"array","description":"List of jobs the user has had.","items":{"type":"object","properties":{"title":{"type":"string","description":"Title of the job.","example":"Software Engineer"},"company":{"type":"string","description":"Name of the company where the user worked.","example":"Bump.sh"},"year":{"type":"integer","description":"Year when the user worked at the company.","example":"2020"}}}},"address":{"oneOf":[{"$ref":"#/components/schemas/personalAddress"},{"$ref":"#/components/schemas/companyAddress"}]}}},"personalAddress":{"type":"object","description":"Personal address of the user if the user doesn't work at a company.","properties":{"full_address":{"type":"string","description":"Full address of the user including number, street, postal code and city.","example":"25 rue Lenepveu, 49100 Angers"},"country":{"$ref":"#/components/schemas/country"}}},"companyAddress":{"allOf":[{"type":"object","properties":{"company_name":{"type":"string","description":"Company name.","example":"Bump.sh"}}},{"$ref":"#/components/schemas/personalAddress"}]},"country":{"type":"string","default":"France","enum":["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Congo-Brazzaville)","Costa Rica","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini (fmr. \"Swaziland\")","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea (North)","Korea (South)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar (formerly Burma)","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Vatican City","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"]}}}}