Skip to content
Snippets Groups Projects
Commit e771253e authored by Eric Eastwood's avatar Eric Eastwood
Browse files

Add tags to routes for prettier docs

parent 40eed7ed
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -2,7 +2,16 @@ swagger: "2.0"
info:
version: 1.0.0
title: Swagger API Lab
description: API mocks for use with GitLab
description:
API mocks for use with GitLab
See https://gitlab.com/gitlab-org/apilab
host: apilab.gitlab.com
schemes:
- https
 
consumes:
- application/x-www-form-urlencoded
Loading
Loading
@@ -10,6 +19,15 @@ consumes:
produces:
- application/json
 
tags:
- name: Pets
description: Everything about your Pets
- name: Users
description: Interact with and retrive data about a user
definitions:
user:
required:
Loading
Loading
@@ -93,6 +111,8 @@ paths:
/users:
post:
description: Creates a new user in the store
tags:
- Users
operationId: addUser
parameters:
- name: user
Loading
Loading
@@ -117,6 +137,8 @@ paths:
 
get:
description: Returns a user by user ID
tags:
- Users
operationId: findUserByUserId
responses:
default:
Loading
Loading
@@ -126,6 +148,8 @@ paths:
 
patch:
description: Updates a user by user ID
tags:
- Users
parameters:
- name: user
in: body
Loading
Loading
@@ -145,6 +169,8 @@ paths:
 
post:
description: Creates a new snippet in the store
tags:
- Users
operationId: addSnippetUnderUser
parameters:
- name: snippet
Loading
Loading
@@ -174,6 +200,8 @@ paths:
 
get:
description: Returns a snippet by ID
tags:
- Users
operationId: findSnippetUnderUserById
responses:
default:
Loading
Loading
@@ -183,6 +211,8 @@ paths:
 
patch:
description: Updates a snippet by ID
tags:
- Users
parameters:
- name: snippet
in: body
Loading
Loading
@@ -200,6 +230,8 @@ paths:
/pets:
get:
description: Returns all pets, optionally filtered by one or more criteria
tags:
- Pets
operationId: findPets
parameters: &petFilters
- name: tags
Loading
Loading
@@ -247,6 +279,8 @@ paths:
 
delete:
description: Deletes all pets, optionally filtered by one or more criteria
tags:
- Pets
operationId: deletePets
parameters: *petFilters
responses:
Loading
Loading
@@ -259,6 +293,8 @@ paths:
 
post:
description: Creates a new pet in the store
tags:
- Pets
operationId: addPet
parameters:
- name: pet
Loading
Loading
@@ -283,6 +319,8 @@ paths:
 
get:
description: Returns a pet by name
tags:
- Pets
operationId: findPetByName
responses:
default:
Loading
Loading
@@ -296,6 +334,8 @@ paths:
 
delete:
description: Deletes a single pet based on the name supplied
tags:
- Pets
operationId: deletePet
responses:
default:
Loading
Loading
@@ -305,6 +345,8 @@ paths:
 
patch:
description: Updates a pet by name
tags:
- Pets
parameters:
- name: pet
in: body
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment