This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from klrmn/env_api
CRUD APIs for Profile, Category, and Element Looks good to me!
- Loading branch information
Showing
22 changed files
with
751 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,42 @@ | ||
Tags API | ||
============= | ||
======== | ||
|
||
Tag | ||
-------- | ||
--- | ||
|
||
.. http:get:: /api/v1/tag | ||
.. http:post:: /api/v1/suite | ||
.. http:delete:: /api/v1/suite/<id> | ||
.. http:put:: /api/v1/suite/<id> | ||
Filtering | ||
^^^^^^^^^ | ||
|
||
:name: The name of the tag. | ||
:product: The id of the product. | ||
:product__name: The name of the product | ||
:name: The Tag ``name`` to filter on. | ||
:product: The Product ``id`` to filter on. | ||
:product__name: The Product ``name`` to filter on. | ||
|
||
**Example request**: | ||
|
||
.. sourcecode:: http | ||
|
||
GET /api/v1/tag/?format=json | ||
|
||
.. http:get:: /api/v1/tag/<id> | ||
.. http:post:: /api/v1/suite | ||
Required Fields | ||
^^^^^^^^^^^^^^^ | ||
|
||
:name: A string name for the Tag. | ||
:product: A resource uri to a Product. | ||
|
||
Optional Fields | ||
^^^^^^^^^^^^^^^ | ||
|
||
:description: A string description for the Tag. | ||
|
||
.. http:delete:: /api/v1/suite/<id> | ||
.. http:put:: /api/v1/suite/<id> | ||
.. note:: | ||
|
||
The Tag's Product may not be changed unless the tag is not in use, the | ||
product is being set to None, or the product matches the existing cases." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.